ContentType Class |
Namespace: Packflow.Modeling
public class ContentType : ModelingObject_Extended, IContentType, IModelContentTypeInfo, IModelInfo, IObjectNotes
The ContentType type exposes the following members.
Name | Description | |
---|---|---|
ContentType |
Initializes a new instance of the ContentType class.
|
Name | Description | |
---|---|---|
Activities |
Gets the activities.
| |
AuthorizeGarbageCollection |
Gets or sets a value indicating whether the garbage cleaner job is authorized to erase
deleted items of this content-type.
Default value: True. | |
BaseType |
Gets or sets the base type.
| |
ClassName |
Gets the class name representing the content-type. Prefixed with "ContentType_".
| |
Columns |
Gets the columns.
| |
CreateTasksOnFirstStateInstance |
Gets or sets a value indicating whether tasks can be created on an item creation.
Default value: False. | |
CSharpName |
Gets the name for CSharp. Dots are replaced by underscores.
| |
CtForms |
Gets all forms.
| |
CustomPrintForm |
Gets or sets a value indicating whether an alternative form is designed for the print mode.
Default value: False. | |
DeletedItemsTimeOut |
Gets or sets the protection time of a (flagged) deleted item against the final deletion.
In days, tells the garbage cleaner job how many days to wait before a deleted item gets erased from db.
| |
Description |
Gets or sets the description.
| |
DescriptionRes |
Gets or sets the resource containing translations for the Description property.
| |
DisplayName |
Gets or sets the display name.
| |
DisplayNameRes |
Gets or sets the resource containing translations for the DisplayName property.
| |
EnableComments |
Gets or sets a value indicating whether comments can be added items.
Default value: True. | |
EnableVersionMerge |
Gets or sets a value indicating whether merging versions is enabled.
This feature is used to merge two versions of an item being modified by a MVC cycle
while another save occurred server-side.
Default value: True. | |
FakeStates |
Gets the fake states.
| |
FakeTransitions |
Gets the fake transitions.
| |
GenerateViewClasses |
Gets or sets a value indicating whether specific classes for this content-type's views should be generated.
| |
Guid |
Gets the GUID identifying this object.
(Inherited from ModelingObject.) | |
IconColor_Back |
Gets or sets the background color of the content-type's icon.
This icon is used in the user navigation panel and in items' forms.
| |
IconColor_Font |
Gets or sets the font color of the content-type's icon.
This icon is used in the user navigation panel and in items' forms.
| |
Id |
Gets the id identifying this object.
(Inherited from ModelingObject.) | |
InitialStatus |
Gets or sets the initial status.
| |
InitialStatusRes |
Gets or sets the resource containing translations for the InitialStatus property.
| |
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.) | |
Items |
Gets the modeled items.
| |
ItemsPFRelationClassName |
Gets the class name representing the relation of the content-type with its items.
Prefixed with "ContentTypeItems_".
| |
ItemsSync_ForceSave |
Gets or sets a value indicating whether synchronized items should be saved
on each installation, even if no modification has been detected.
Default value: False. | |
ItemsSync_NameColumn |
Gets or sets the column representing the modeled items. Used in the generated Enums.
| |
ItemsSync_NameLanguage |
Gets or sets the language code used to obtain the Enum names of modeled items.
| |
ItemsSyncMode |
Gets or sets value indicating how the modeling items are synchronized with Packflow.
| |
KeepModifiedFieldsBeforeSaveValues |
Gets or sets a value indicating whether (by default) saving an item should keep
a collection of the modified fields previous values.
Default value: False. | |
Labels |
Gets the labels.
| |
LogSaveEvents |
Gets or sets a value indicating whether each save must be logged.
Every time an item is saved (except for creation), an event will be created.
This event will optionally contain informations about changed values (if corresponding option is enabled on the column). Default value: False. | |
Messages |
Gets the messages.
| |
Model |
Gets the model hosting this object. The Model is the root object of the modeling tree.
(Overrides ModelingObjectModel.) | |
Name |
Gets the name of this object.
(Inherited from ModelingObject.) | |
Notifications |
Gets the notifications.
| |
ObjectNotes |
Gets or sets design notes.
| |
ObsoletePermissionContexts |
For retro-compatibility. Do not use.
| |
Order |
Gets or sets a number used to sort the application's content-types.
| |
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.) | |
PermissionContext |
Gets or sets the permission context.
| |
PermissionsAdvancedView |
Gets or sets a value indicating whether the designer should show the advanced UI to
design the permissions.
Default value: True. | |
PrintForm |
Gets or sets the print form.
Used if CustomPrintForm is set to True.
| |
Secondary |
Gets or sets a value indicating whether this ContentType is secondary.
A secondary content-type is not shown by default in the navigation.
Default value: False. | |
SendDefaultTaskNotification |
Gets or sets a value indicating whether the default notification of a task assignment should be sent.
Default value: True. | |
ShowNewButtonInNavigation |
Gets or sets a value indicating whether the "New" button must be shown in the navigation.
Default value: True. | |
StartState |
Gets or sets the start state's id, set by default on created items.
| |
States |
Gets the states.
| |
Steps |
Gets the steps.
| |
TaskCtId |
Gets or sets the task content-type's id.
| |
TaskViewId |
Gets or sets the default task view's id.
| |
ValuesEnumName |
Gets the enum name containing the values (modeling items) of the content-type.
Only used when the ItemsSyncMode is set to FullSync.
Postfixed with "_Value".
| |
ViewOrder |
Gets or sets the sort direction of views.
| |
ViewOrderType |
Gets or sets a value indicating how the views are sorted.
| |
Views |
Gets the views.
| |
WorkForm |
Gets or sets the work form.
|
Name | Description | |
---|---|---|
AddActivity(String) |
Adds a new activity.
| |
AddActivity(Activity) |
Adds the specified activity.
| |
AddColumn(String) |
Adds a new column.
| |
AddColumn(String, ContentColumnType) |
Adds a new column.
| |
AddColumn(String, String, ContentColumnType) |
Adds a new column.
| |
AddDefaultNotification |
Adds a default notification rule, sending notifications for all assigned tasks.
| |
AddFakeState |
Adds a new fake state.
| |
AddFakeState(Int32, Int32) |
Adds a new fake state.
| |
AddFakeTransition |
Adds a new fake transition.
| |
AddItem |
Adds a new modeled item.
| |
AddLabel |
Adds a new label.
| |
AddLabel(Int32, Int32) |
Adds a new label.
| |
AddMessage |
Adds a new message.
| |
AddMessage(ContentMessage) |
Adds the specified message.
| |
AddNotification |
Adds a new notification.
| |
AddNotification(Notification) |
Adds the specified notification.
| |
AddState(String) |
Adds a new state.
| |
AddState(State) |
Adds the specified state.
| |
AddStep(String) |
Adds a new step.
| |
AddStep(Step) |
Adds the specified step.
| |
AddView(String) |
Adds a new view.
| |
AddView(ContentView) |
Adds the specified view.
| |
CheckColumnName |
Verifies if the given column name is unique (except for the specified id).
| |
CheckFormName |
Verifies if the given name is unique (except for the specified id).
| |
Children |
Returns all children objects.
(Inherited from ModelingObject.) | |
ContainsColumn |
Determines whether the specified column id is in this content-type.
| |
DeleteActivity |
Deletes the specified activity.
| |
DeleteColumn(Int32) |
Deletes the column with the specified id.
| |
DeleteColumn(ContentColumn) |
Deletes the specified column.
| |
DeleteFakeState |
Deletes the specified fake state.
| |
DeleteFakeTransition |
Deletes the specified fake transition.
| |
DeleteItem |
Deletes the specified modeled item.
| |
DeleteLabel |
Deletes the specified label.
| |
DeleteMessage(Int32) |
Deletes the message with the specified id.
| |
DeleteMessage(ContentMessage) |
Deletes the specified message.
| |
DeleteNotification(Int32) |
Deletes the notification with the specified id.
| |
DeleteNotification(Notification) |
Deletes the specified notification.
| |
DeleteState |
Deletes the specified state.
| |
DeleteStep |
Deletes the specified step.
| |
DeleteView |
Deletes the specified view.
| |
EnsurePermissionContext |
Ensures that all entries (global/states by permissions/privileges).
On first ensure, also add the default permissions of standard roles.
| |
GetActivity(Guid) |
Gets an activity by its GUID.
| |
GetActivity(Int32) |
Gets an activity by its id.
| |
GetAllShapePositions |
Gets the positions of all states, fake states and labels of the workflow schema.
| |
GetAllTransitions |
Gets the transitions of all states.
| |
GetChoiceView |
Gets a view referenced by a choice column.
| |
GetColumn(Guid) |
Gets a column by its GUID.
| |
GetColumn(Int32) |
Gets a column by its id.
| |
GetColumn(String) |
Gets a column by its name.
| |
GetColumns |
Gets columns by their ids.
| |
GetContentTypeBaseType |
Gets the content-type's base type.
| |
GetContentTypeDisplayName |
Gets the content-type's display name.
| |
GetContentTypeGuid |
Gets the content-type's GUID.
| |
GetContentTypeId |
Gets the content-type's id.
| |
GetContentTypeName |
Gets the content-type's name.
| |
GetDisplayName |
Gets the display name of this content-type.
[IModelContentTypeInfo]
| |
GetFakeState |
Gets a fake state by its id.
| |
GetFakeTransition |
Gets a fake transition by its id.
| |
GetGuid |
Gets the Guid.
(Inherited from ModelingObject.) | |
GetIColumn |
Gets a column by its GUID.
| |
GetIColumns |
Gets all columns.
| |
GetInboundTransitions |
Get all transitions with the specified state as destination "To".
| |
GetIState |
Gets a state by its GUID.
| |
GetIStates |
Gets all states.
| |
GetItem |
Gets a modeled item by its GUID.
| |
GetIView |
Gets a view by its GUID.
| |
GetIViews |
Gets all views.
| |
GetKeyColumnName |
Gets the key column name of this content-type.
[IModelContentTypeInfo]
| |
GetListItem |
Gets a text representing this object using Id and Name.
(Inherited from ModelingObject.) | |
GetMessage(Int32) |
Gets a message by its id.
| |
GetMessage(String) |
Gets a message by its name.
| |
GetModelGuid |
Gets the guid of the parent model of this content-type.
[IModelContentTypeInfo]
| |
GetName |
Gets the name.
(Inherited from ModelingObject.) | |
GetNotification |
Gets a notification by its id.
| |
GetParentParentType |
Returns the first parent of a given type in the modeling tree.
Returns null if not found.
(Inherited from ModelingObject.) | |
GetStartState |
Gets the start state, set by default on created items.
| |
GetState(Guid) |
Gets a state by its GUID.
| |
GetState(Int32) |
Gets a state by its id.
| |
GetStep(Guid) |
Gets a step by its GUID.
| |
GetStep(Int32) |
Gets a step by its id.
| |
GetTransitionById |
Gets a transition by its id.
| |
GetView(Guid) |
Gets a view by its GUID.
| |
GetView(Int32) |
Gets a view by its id.
| |
GetView(String) |
Gets a view by its name.
| |
GetViewByGuid |
Gets a view by its temporary GUID.
| |
Init |
Initializes name and display name with a default value.
| |
IsLocalSecondary |
Determines whether the content-type is local and secondary.
| |
MoveTransition |
Moves a transition from its current parent state to another.
| |
ShouldSerializeObjectNotes |
Indicates whether the ObjectNotes property should be generated during the serialization.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UpdateWorkFormName |
Updates the name of the work form.
|
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.) |