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; }
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; }
public OfflineActionMatrixCell(OfflineActionMatrixCell rhs) : base(rhs) { }