Exemplo n.º 1
0
        public override IPolicyObject DeepCopy(bool readOnly, bool createNewId)
        {
            OfflineActionMatrixCell readOnlyCopy = new OfflineActionMatrixCell(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
        private void ReadOfflineActionMatrixCell(XmlNode actionMatrixCellNode, ActionMatrix actionMatrix, bool readOnly)
        {
            if ((null == actionMatrixCellNode) || (null == actionMatrix) || ("Offline" != actionMatrixCellNode.Name))
                return;

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

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

            ReadActionMatrixConditions(actionMatrixCellNode, actionMatrixCell, actionMatrixCellReadOnly);

            actionMatrix.Offline = actionMatrixCell.DeepCopy(actionMatrixCellReadOnly) as IActionMatrixCell;
        }
Exemplo n.º 3
0
 public OfflineActionMatrixCell(OfflineActionMatrixCell rhs)
     : base(rhs)
 {
 }