Beispiel #1
0
        protected void RemoveAction(IElementAction action)
        {
            if (action == null)
            {
                throw new ArgumentNullException(nameof(action));
            }

            _actions.Remove(action);
        }
Beispiel #2
0
        public void AddAction(IElementAction action)
        {
            if (action == null)
            {
                throw new ArgumentNullException(nameof(action));
            }

            _actions.Add(action);
        }
Beispiel #3
0
        internal static ElementActionState Create(IElementAction elementAction)
        {
            if (elementAction == null)
            {
                throw new ArgumentNullException("elementAction");
            }
            var data = new ElementActionState(elementAction.Id)
            {
                ActionId  = elementAction.ActionId,
                ElementId = elementAction.ElementId,
                IsAllowed = elementAction.IsAllowed,
                IsAudit   = elementAction.IsAudit
            };

            return(data);
        }
Beispiel #4
0
 public StatePlanElementStrategy(IElementAction action)
 {
     _action = action;
 }
Beispiel #5
0
        protected void RemoveAction(IElementAction action)
        {
            if (action == null) throw new ArgumentNullException(nameof(action));

            _actions.Remove(action);
        }
Beispiel #6
0
        public void AddAction(IElementAction action)
        {
            if (action == null) throw new ArgumentNullException(nameof(action));

            _actions.Add(action);
        }