public AccessControlList Clone()
        {
            TestAccessControlList controlList = new TestAccessControlList
            {
                CheckedOutToUserID    = this.CheckedOutToUserID,
                CustomComponent       = this.CustomComponent.Clone(),
                HasCheckedOutToUserID = this.HasCheckedOutToUserID,
                IsFullyAuthoritative  = this.IsFullyAuthoritative
            };

            return(controlList);
        }
Esempio n. 2
0
 public TestObjectClass(xObjectClass oClass)
 {
     ACLForObjects          = new TestAccessControlList(oClass.ACLForObjects);
     AccessControlList      = new TestAccessControlList(oClass.AccessControlList);
     AssociatedPropertyDefs = new AssociatedPropertyDefs();
     foreach (xAssociatedPropertyDef associatedPropertyDef in oClass.AssociatedPropertyDefs)
     {
         AssociatedPropertyDefs.Add(-1, new TestAssociatedPropertyDef(associatedPropertyDef));
     }
     AutomaticPermissionsForObjects = new TestAutomaticPermissions(oClass.AutomaticPermissionsForObjects);
     ForceWorkflow   = oClass.ForceWorkflow;
     ID              = oClass.ID;
     Name            = oClass.Name;
     NamePropertyDef = oClass.NamePropertyDef;
     ObjectType      = oClass.ObjectType;
     Workflow        = oClass.Workflow;
 }
Esempio n. 3
0
 public TestWorkflowAdmin(xWorkflowAdmin wfa)
 {
     Description     = wfa.Description;
     Permissions     = new TestAccessControlList(wfa.Permissions);
     SemanticAliases = new SemanticAliases {
         Value = string.Join(";", wfa.SemanticAliases)
     };
     States = new StatesAdmin();
     foreach (xStateAdmin stateAdmin in wfa.States)
     {
         States.Add(-1, new TestStateAdmin(stateAdmin));
     }
     StateTransitions = new StateTransitions();
     foreach (xStateTransition transition in wfa.StateTransitions)
     {
         StateTransitions.Add(-1, new TestStateTransition(transition));
     }
     Workflow = new TestWorkflow(wfa.Workflow);
 }