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