Model Class |
Namespace: Packflow.Modeling
public class Model : ModelingObject_Extended, IXmlDeserializableRoot, IModelVersionInfo, IModelInfo
The Model type exposes the following members.
| Name | Description | |
|---|---|---|
| ApplicationItemClassName |
Gets the name of the class from which all PFItem classes are inherited in the project.
| |
| ApplicationTaskClassName |
Gets the name of the class from which all PFTask classes are inherited in the project.
| |
| AssemblyFullName |
Gets the assembly full name (with version, culture and public key token) of the generated project.
| |
| AssemblyName |
Gets the assembly name of the generated project.
The name is prefixed with "MicaSystems.Packflow.".
| |
| AssemblyNamespace |
Gets the assembly namespace of the generated project.
The name is prefixed with "Packflow.".
| |
| AssemblyPocoNamespace |
Gets the namespace of the POCO generated objects.
| |
| BackupChange |
Gets or sets the content of the last backup. Not persisted.
| |
| Cache_ChoiceFieldsReferences |
Gets or sets the cache containing the list of fields referenced by choice fields, by content-type name.
| |
| ClassName |
Gets the class name representing the application. Prefixed with "Application_".
| |
| ContentTypes |
Gets the content-types.
| |
| ContentTypesOrder |
Gets or sets a value indicating how content-types are ordered.
| |
| CSharpName | Obsolete.
Gets the model name for CSharp. Dots are replaced by underscores.
| |
| CustomPrivileges |
Gets the privileges specific to this model.
| |
| DateBuild |
Gets or sets the date of the last build.
| |
| DateCreated |
Gets or sets the date of creation.
| |
| DatePublish |
Gets or sets the date of the last publication.
| |
| Description |
Gets or sets the description.
| |
| Diagrams |
Gets the diagrams.
| |
| DisplayName |
Gets or sets the display name.
| |
| DisplayNameRes |
Gets or sets the resource containing translations for the DisplayName property.
| |
| EditorVersion |
Gets or sets the last version of Packflow.Designer having saved this model.
| |
| EnabledLanguages |
Gets or sets the list languages available for translations (descriptions, display names, ...)
in this model. Only two-letters ISO language codes are accepted.
Note: never returns a null or empty list,
but in that case returns the default list containing the default language.
| |
| Guid |
Gets the GUID identifying this object.
(Inherited from ModelingObject.) | |
| History |
Gets or sets the model version history. Not persisted.
| |
| IconColor |
Gets or sets the color of the icon representing this application
in the waffle menu from the Packflow site's header.
| |
| IconCustomColor |
Gets or sets the custom color of the application's icon.
Only used if IconColor=Custom.
| |
| IconName |
Gets or sets the name of the icon representing this application
in the waffle menu from the Packflow site's header.
| |
| Id |
Gets the id identifying this object.
(Inherited from ModelingObject.) | |
| InstanceGuid |
Gets a guid, unique for this object instance.
(Inherited from ModelingObject.) | |
| InstanceLanguage |
Gets or sets the instance language (two letters format).
(Inherited from ModelingObject.) | |
| IsExtended |
Gets a value indicating whether this object is Extended (ModelingObject_Extended) or not,
allowing to avoid an "is" verification.
(Inherited from ModelingObject_Extended.) | |
| LastContextualLanguageCode |
Gets or sets the last language code used for design.
| |
| LinkedModels |
Gets the models linked to this one. These models's objects can then be selected in relations.
| |
| MapLinks |
Gets the list of links shown in the application sub menu of the header waffle.
| |
| Model |
Gets the model hosting this object. The Model is the root object of the modeling tree.
(Inherited from ModelingObject.) | |
| Name |
Gets the name of this object.
(Inherited from ModelingObject.) | |
| PageParts |
Gets the page parts. These will be available as customizable ASPX files in the generated project.
| |
| Parent |
Gets the parent object in the modeling tree.
(Inherited from ModelingObject.) | |
| ParentType |
Gets the type of the parent object in the modeling tree.
(Inherited from ModelingObject.) | |
| PublicKeyToken |
Gets or sets the public key token of the assembly.
Note: updated during the project generation from Packflow Designer.
| |
| Relations |
Gets the relations between content-types.
| |
| ReleaseNotes |
Gets or sets the release notes.
| |
| Roles |
Gets the roles. Roles are being instantiated as Packflow groups for each application context.
| |
| SettingsClassName |
Gets the class name settings of the application. Prefixed with "ApplicationSettings_".
| |
| StandardAdminsRole |
Gets or sets the standard admins role id. Used by the GetAdminsRole method.
| |
| StandardMembersRole |
Gets or sets the standard members role id. Used by the GetMembersRole method.
| |
| StandardMembersRoleDisabled |
Gets or sets a value indicating whether the standard role Members has been disabled.
If this flag is raised, the Visitors role will not be ensured again.
| |
| StandardVisitorsRole |
Gets or sets the standard visitors role id. Used by the GetVisitorsRole method.
| |
| StandardVisitorsRoleDisabled |
Gets or sets a value indicating whether the standard role Visitors has been disabled.
If this flag is raised, the Visitors role will not be ensured again.
| |
| TempGuid |
Gets or sets the temporary GUID, different each time the model is deserialized. Not persisted.
| |
| UseValueHelpers |
Gets or sets a value indicating whether the objects' generated properties
should use the helper class (when available) instead of the classic value class.
| |
| Version |
Gets or sets the version of the model.
| |
| XmlPath |
Gets or sets the XML path, last location of this model's file. Not persisted.
|
| Name | Description | |
|---|---|---|
| AddContentType |
Adds a new content-type.
| |
| AddCustomPrivilege |
Adds a new custom privilege.
| |
| AddCustomPrivilege(String) |
Adds a new custom privilege.
| |
| AddDiagram |
Adds a new diagram.
| |
| AddDiagram(String) |
Adds a new diagram.
| |
| AddDiagram(ModelDiagram) |
Adds the specified diagram.
| |
| AddLinkedModel |
Adds a linked model.
| |
| AddLinkedModel(Guid) |
Adds a linked model.
| |
| AddMapLink |
Adds a new link to the application map.
| |
| AddPagePart |
Adds a new page part.
| |
| AddPagePart(String) |
Adds a new page part.
| |
| AddRelation |
Adds a new relation.
| |
| AddRole |
Adds a new role.
| |
| AddRole(String) |
Adds a new role.
| |
| Backup |
Adds a backup of this model in the History with the specified note.
| |
| CheckContentTypeName |
Checks the uniqueness of a name of the content-type.
| |
| CheckForModification |
Checks if a modification has occurred since the last load. Based on XmlPath value.
Compares this model instance with the XML at the last known location.
| |
| CheckForModification(String) |
Checks if a modification has occurred since the last load.
Compares this model instance with the XML at the last known location.
| |
| Children |
Returns all children objects.
(Inherited from ModelingObject.) | |
| ContainsFields |
Determines whether any content-type of the model contains at least one column.
| |
| DeleteContentType |
Deletes the specified content-type.
| |
| DeleteCustomPrivilege(Int32) |
Deletes the custom privilege with the specified id.
| |
| DeleteCustomPrivilege(OrgItemPrivilege) |
Deletes the specified custom privilege.
| |
| DeleteDiagram(Int32) |
Deletes the diagram with the specified id.
| |
| DeleteDiagram(ModelDiagram) |
Deletes the specified diagram.
| |
| DeleteLinkedModel(Int32) |
Deletes the linked model with the specified id.
| |
| DeleteLinkedModel(LinkedModel) |
Deletes the specified linked model.
| |
| DeleteMapLink(Int32) |
Deletes the map link with the specified id.
| |
| DeleteMapLink(ApplicationMapLink) |
Deletes the specified map link.
| |
| DeletePagePart(Int32) |
Deletes the page part with the specified id.
| |
| DeletePagePart(PagePart) |
Deletes the specified page part.
| |
| DeleteRelation(Int32) |
Deletes the relation with the specified id.
| |
| DeleteRelation(ContentRelation) |
Deletes the specified relation.
| |
| DeleteRole(Int32) |
Deletes the role with the specified id.
| |
| DeleteRole(OrgRole) |
Deletes the specified role.
| |
| Deserialized |
Method called after a deserialization done by MicaSystems.Utils_Xml.
| |
| EnsureConsistency |
Ensures the consistency of the model.
| |
| EnsureStandardRoles |
Ensures that the standard roles exists in the model.
Note: disabled roles (see corresponding flags) will not be ensured.
| |
| GetAdminsRole |
Gets the standard role Admins.
| |
| GetAllForms |
Gets the form of all content-types.
| |
| GetAllLinkedContentTypes |
Gets the content-types of all linked models.
| |
| GetApplicationIconColor |
Gets the hexadecimal color code for the application icon.
Returns null if branding color.
| |
| GetApplicationIconColor(ApplicationIconColor) |
Gets the hexadecimal color code for an application icon color.
Returns null if branding color.
| |
| GetColumn |
Gets a column by its id.
| |
| GetContentType(Guid) |
Gets a content-type by its guid.
| |
| GetContentType(Int32) |
Gets a content-type by its id.
| |
| GetContentType(String) |
Gets a content-type by its name.
| |
| GetContentType(ContentColumn) |
Gets a content type of the specified column.
| |
| GetCopy |
Gets a instance copy of this model.
| |
| GetCustomPrivilege(Int32) |
Gets a custom privilege by its id.
| |
| GetCustomPrivilege(String) |
Gets a custom privilege by its name.
| |
| GetCustomPrivilegeByKey |
Gets a custom privilege by its key.
| |
| GetDataSetSchemaAppCentric |
Gets a data set schema NOT centered on a content.
[not up to date with newer requirements]
| |
| GetDataSetSchemaItemCentric |
Gets a data set schema centered on a content.
| |
| GetDiagram(Int32) |
Gets a diagram by its id.
| |
| GetDiagram(String) |
Gets a diagram by its name.
| |
| GetFormUniqueName(String) |
Gets a form unique name from a name.
| |
| GetFormUniqueName(String, Int32) |
Gets a form unique name from a name.
The specified id allows to ignore a form for duplicated name.
| |
| GetGuid |
Gets the Guid.
(Inherited from ModelingObject.) | |
| GetLinkedContentType |
Gets a linked model by its GUID.
| |
| GetLinkedModel(Guid) |
Gets a linked model by its GUID.
| |
| GetLinkedModel(Int32) |
Gets a linked model by its id.
| |
| GetLinkedModel(String) |
Gets a linked model by its name.
| |
| GetListItem |
Gets a text representing this object using Id and Name.
(Inherited from ModelingObject.) | |
| GetMapLink |
Gets a link from the application map by its id.
| |
| GetMembersRole |
Gets the standard role Members.
| |
| GetMessage |
Gets a message of the specified content-type by its id.
| |
| GetName |
Gets the name.
(Inherited from ModelingObject.) | |
| GetNextChange |
Gets an XML containing the next model version.
| |
| GetNextObjectIdTModelingObject |
Gets the next id of a type of ModelingObject.
DO NOT CALL THIS METHOD BEFORE MODEL IS FULLY LOADED.
| |
| GetPagePart(Int32) |
Gets a page part by its id.
| |
| GetPagePart(String) |
Gets a page part by its name.
| |
| GetParentParentType |
Returns the first parent of a given type in the modeling tree.
Returns null if not found.
(Inherited from ModelingObject.) | |
| GetPreviousChange |
Gets an XML containing the previous model version.
| |
| GetRelation(Guid) |
Gets a relation by its GUID.
| |
| GetRelation(Int32) |
Gets a relation by its id.
| |
| GetRelation(String) |
Gets a relation by its name.
| |
| GetRelationsLinkedTo |
Gets relations linking the specified content-type.
| |
| GetRole(Int32) |
Gets a role by its id.
| |
| GetRole(String) |
Gets a role by its name.
| |
| GetStandardRoles |
Gets the standard roles (Visitors, Members, Admins).
| |
| GetVersionString |
Gets the version in a X.X.X.X format.
| |
| GetView |
Gets a view by its id.
| |
| GetVisitorsRole |
Gets the standard role Visitors.
| |
| HasNext |
Determines whether at least one next version of the model is available.
| |
| HasPrevious |
Determines whether at least one previous version of the model is available.
| |
| MakeAllGuidsUnique |
Will change all content's model GUIDs.
This feature allows to duplicate a model, eg. to split applications without conflicting models.
| |
| Save(String) |
Saves the model as XML at the specified path.
| |
| Save(String, String) |
Saves the model as XML at the specified path.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| UpdateInstanceLanguage |
Updates the instance language.
|
| Name | Description | |
|---|---|---|
| AdminsRoleName |
Name of the standard role Admins.
| |
| DefaultLanguage |
Default language used by Packflow models.
| |
| MembersRoleName |
Name of the standard role Members.
| |
| VisitorsRoleName |
Name of the standard role Visitors.
|
| Name | Description | |
|---|---|---|
| AsT |
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.) | |
| EqualsAll |
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.) | |
| EqualsAny |
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.) | |
| GetString |
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.) | |
| IsGenericList | Overloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.) | |
| IsGenericList(Type) | Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.) | |
| Serialize | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
| Serialize(String) | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
| SerializeJson | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
| SerializeJson(ListType) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
| SerializeJson(DataContractJsonSerializerSettings) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |