Exemplo n.º 1
0
        public override IPolicyObject DeepCopy(bool readOnly, bool createNewId)
        {
            ActionExceptionCell readOnlyCopy = new ActionExceptionCell(this);
            bool readOnlyActionGroups = m_actionGroups.IsReadOnly || readOnly;
            readOnlyCopy.m_actionGroups = CollectionConverter.ConvertReadOnly<IActionConditionGroup, ActionConditionGroup>(m_actionGroups, readOnlyActionGroups, createNewId);
            readOnlyCopy.m_readOnly = readOnly;

            return readOnlyCopy;
        }
Exemplo n.º 2
0
 public ActionExceptionCell(ActionExceptionCell rhs)
     : base(rhs)
 {
 }
Exemplo n.º 3
0
        private void ReadActionExceptionCell(XmlNode actionMatrixCellNode, ActionMatrix actionMatrix, bool readOnly)
        {
            if ((null == actionMatrixCellNode) || (null == actionMatrix) || ("ActionException" != actionMatrixCellNode.Name))
                return;

            bool actionMatrixCellReadOnly = PolicyUtilities.IsReadOnly(actionMatrixCellNode) || readOnly;

            PolicyCataloguesCache policyCataloguesCache = PolicyCataloguesCache.Instance();
            ActionExceptionCell actionMatrixCell = new ActionExceptionCell();

            ReadActionMatrixConditions(actionMatrixCellNode, actionMatrixCell, actionMatrixCellReadOnly);

            actionMatrix.ActionExceptionHandler = actionMatrixCell.DeepCopy(actionMatrixCellReadOnly) as IActionMatrixCell;
        }