Exemplo n.º 1
0
        public TestObjectClass(ObjectClassAdmin oca)
        {
            xObjectClassAdmin oClass = new xObjectClassAdmin(oca);

            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;
        }
Exemplo n.º 2
0
 public TestObjectClassAdmin(xObjectClassAdmin ocAdmin)
 {
     this.AssociatedPropertyDefs = new AssociatedPropertyDefs();
     foreach (xAssociatedPropertyDef propertyDef in ocAdmin.AssociatedPropertyDefs)
     {
         this.AssociatedPropertyDefs.Add(-1, new TestAssociatedPropertyDef(propertyDef));
     }
     this.AutomaticPermissionsForObjects = new TestAutomaticPermissions(ocAdmin.AutomaticPermissionsForObjects);
     this.ForceWorkflow   = ocAdmin.ForceWorkflow;
     this.ID              = ocAdmin.ID;
     this.Name            = ocAdmin.Name;
     this.NamePropertyDef = ocAdmin.NamePropertyDef;
     this.ObjectType      = ocAdmin.ObjectType;
     this.Predefined      = ocAdmin.Predefined;
     this.SemanticAliases = new SemanticAliases {
         Value = string.Join(";", ocAdmin.SemanticAliases)
     };
     this.Workflow = ocAdmin.Workflow;
 }