internal override void CommandOperation()
        {
            PSMContentModel cm = Project.TranslateComponent <PSMContentModel>(cmodelGuid);

            oldtype = cm.Type;
            cm.Type = newtype;
            Report  = new CommandReport(CommandReports.PSM_component_deleted, cm);
        }
 public void Set(Guid parentPSMAssociationMemberGuid, IEnumerable <Guid> psmAssociations, PSMContentModelType type, Guid newContentModelGuid, Guid newAssociationGuid)
 {
     ParentAssociationMemberGuid = parentPSMAssociationMemberGuid;
     Associations     = psmAssociations.ToList();
     Type             = type;
     ContentModelGuid = newContentModelGuid;
     AssociationGuid  = newAssociationGuid;
 }
Example #3
0
        internal override void CommandOperation()
        {
            PSMSchema       s  = Project.TranslateComponent <PSMSchema>(schemaGuid);
            PSMContentModel cm = Project.TranslateComponent <PSMContentModel>(cmodelGuid);

            type = cm.Type;

            rootIndex = s.Roots.Remove(cm);

            Project.TranslateComponent <PSMSchema>(schemaGuid).PSMContentModels.Remove(cm);
            Project.mappingDictionary.Remove(cm);
            Report = new CommandReport(CommandReports.PSM_component_deleted, cm);
        }
 public acmdUpdatePSMContentModel(Controller c, Guid psmContentModelGuid, PSMContentModelType type)
     : base(c)
 {
     cmodelGuid = psmContentModelGuid;
     newtype    = type;
 }
Example #5
0
 public static string EncodeValue(PSMContentModelType upper)
 {
     return(upper.ToString());
 }
Example #6
0
 public void Set(PSMContentModelType contentModelType, Guid psmSchemaGuid)
 {
     SchemaGuid = psmSchemaGuid;
     Type       = contentModelType;
 }
 public acmdNewPSMContentModel(Controller c, PSMContentModelType contentModelType, Guid psmSchemaGuid)
     : base(c)
 {
     schemaGuid = psmSchemaGuid;
     type       = contentModelType;
 }
 public void Set(Guid psmContentModelGuid, PSMContentModelType type)
 {
     CmodelGuid = psmContentModelGuid;
     Type       = type;
 }