Click or drag to resize

ContentType Class

Represents the definition of a content in an application, becoming a PFContentType once installed in Packflow.
Inheritance Hierarchy

Namespace:  Packflow.Modeling
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public class ContentType : ModelingObject_Extended, 
	IContentType, IModelContentTypeInfo, IModelInfo, IObjectNotes

The ContentType type exposes the following members.

Constructors
  NameDescription
Public methodContentType
Initializes a new instance of the ContentType class.
Top
Properties
  NameDescription
Public propertyActivities
Gets the activities.
Public propertyAuthorizeGarbageCollection
Gets or sets a value indicating whether the garbage cleaner job is authorized to erase deleted items of this content-type.

Default value: True.

Public propertyBaseType
Gets or sets the base type.
Public propertyClassName
Gets the class name representing the content-type. Prefixed with "ContentType_".
Public propertyColumns
Gets the columns.
Public propertyCreateTasksOnFirstStateInstance
Gets or sets a value indicating whether tasks can be created on an item creation.

Default value: False.

Public propertyCSharpName
Gets the name for CSharp. Dots are replaced by underscores.
Public propertyCtForms
Gets all forms.
Public propertyCustomPrintForm
Gets or sets a value indicating whether an alternative form is designed for the print mode.

Default value: False.

Public propertyDeletedItemsTimeOut
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.
Public propertyDescription
Gets or sets the description.
Public propertyDescriptionRes
Gets or sets the resource containing translations for the Description property.
Public propertyDisplayName
Gets or sets the display name.
Public propertyDisplayNameRes
Gets or sets the resource containing translations for the DisplayName property.
Public propertyEnableComments
Gets or sets a value indicating whether comments can be added items.

Default value: True.

Public propertyEnableVersionMerge
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.

Public propertyFakeStates
Gets the fake states.
Public propertyFakeTransitions
Gets the fake transitions.
Public propertyGenerateViewClasses
Gets or sets a value indicating whether specific classes for this content-type's views should be generated.
Public propertyGuid
Gets the GUID identifying this object.
(Inherited from ModelingObject.)
Public propertyIconColor_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.
Public propertyIconColor_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.
Public propertyId
Gets the id identifying this object.
(Inherited from ModelingObject.)
Public propertyInitialStatus
Gets or sets the initial status.
Public propertyInitialStatusRes
Gets or sets the resource containing translations for the InitialStatus property.
Public propertyInstanceGuid
Gets a guid, unique for this object instance.
(Inherited from ModelingObject.)
Public propertyInstanceLanguage
Gets or sets the instance language (two letters format).
(Inherited from ModelingObject.)
Public propertyIsExtended
Gets a value indicating whether this object is Extended (ModelingObject_Extended) or not, allowing to avoid an "is" verification.
(Inherited from ModelingObject_Extended.)
Public propertyItems
Gets the modeled items.
Public propertyItemsPFRelationClassName
Gets the class name representing the relation of the content-type with its items. Prefixed with "ContentTypeItems_".
Public propertyItemsSync_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.

Public propertyItemsSync_NameColumn
Gets or sets the column representing the modeled items. Used in the generated Enums.
Public propertyItemsSync_NameLanguage
Gets or sets the language code used to obtain the Enum names of modeled items.
Public propertyItemsSyncMode
Gets or sets value indicating how the modeling items are synchronized with Packflow.
Public propertyKeepModifiedFieldsBeforeSaveValues
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.

Public propertyLabels
Gets the labels.
Public propertyLogSaveEvents
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.

Public propertyMessages
Gets the messages.
Public propertyModel
Gets the model hosting this object. The Model is the root object of the modeling tree.
(Overrides ModelingObjectModel.)
Public propertyName
Gets the name of this object.
(Inherited from ModelingObject.)
Public propertyNotifications
Gets the notifications.
Public propertyObjectNotes
Gets or sets design notes.
Public propertyObsoletePermissionContexts
For retro-compatibility. Do not use.
Public propertyOrder
Gets or sets a number used to sort the application's content-types.
Public propertyParent
Gets the parent object in the modeling tree.
(Inherited from ModelingObject.)
Public propertyParentType
Gets the type of the parent object in the modeling tree.
(Inherited from ModelingObject.)
Public propertyPermissionContext
Gets or sets the permission context.
Public propertyPermissionsAdvancedView
Gets or sets a value indicating whether the designer should show the advanced UI to design the permissions.

Default value: True.

Public propertyPrintForm
Gets or sets the print form. Used if CustomPrintForm is set to True.
Public propertySecondary
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.

Public propertySendDefaultTaskNotification
Gets or sets a value indicating whether the default notification of a task assignment should be sent.

Default value: True.

Public propertyShowNewButtonInNavigation
Gets or sets a value indicating whether the "New" button must be shown in the navigation.

Default value: True.

Public propertyStartState
Gets or sets the start state's id, set by default on created items.
Public propertyStates
Gets the states.
Public propertySteps
Gets the steps.
Public propertyTaskCtId
Gets or sets the task content-type's id.
Public propertyTaskViewId
Gets or sets the default task view's id.
Public propertyValuesEnumName
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".
Public propertyViewOrder
Gets or sets the sort direction of views.
Public propertyViewOrderType
Gets or sets a value indicating how the views are sorted.
Public propertyViews
Gets the views.
Public propertyWorkForm
Gets or sets the work form.
Top
Methods
  NameDescription
Public methodAddActivity(String)
Adds a new activity.
Public methodAddActivity(Activity)
Adds the specified activity.
Public methodAddColumn(String)
Adds a new column.
Public methodAddColumn(String, ContentColumnType)
Adds a new column.
Public methodAddColumn(String, String, ContentColumnType)
Adds a new column.
Public methodAddDefaultNotification
Adds a default notification rule, sending notifications for all assigned tasks.
Public methodAddFakeState
Adds a new fake state.
Public methodAddFakeState(Int32, Int32)
Adds a new fake state.
Public methodAddFakeTransition
Adds a new fake transition.
Public methodAddItem
Adds a new modeled item.
Public methodAddLabel
Adds a new label.
Public methodAddLabel(Int32, Int32)
Adds a new label.
Public methodAddMessage
Adds a new message.
Public methodAddMessage(ContentMessage)
Adds the specified message.
Public methodAddNotification
Adds a new notification.
Public methodAddNotification(Notification)
Adds the specified notification.
Public methodAddState(String)
Adds a new state.
Public methodAddState(State)
Adds the specified state.
Public methodAddStep(String)
Adds a new step.
Public methodAddStep(Step)
Adds the specified step.
Public methodAddView(String)
Adds a new view.
Public methodAddView(ContentView)
Adds the specified view.
Public methodCheckColumnName
Verifies if the given column name is unique (except for the specified id).
Public methodCheckFormName
Verifies if the given name is unique (except for the specified id).
Public methodChildren
Returns all children objects.
(Inherited from ModelingObject.)
Public methodContainsColumn
Determines whether the specified column id is in this content-type.
Public methodDeleteActivity
Deletes the specified activity.
Public methodDeleteColumn(Int32)
Deletes the column with the specified id.
Public methodDeleteColumn(ContentColumn)
Deletes the specified column.
Public methodDeleteFakeState
Deletes the specified fake state.
Public methodDeleteFakeTransition
Deletes the specified fake transition.
Public methodDeleteItem
Deletes the specified modeled item.
Public methodDeleteLabel
Deletes the specified label.
Public methodDeleteMessage(Int32)
Deletes the message with the specified id.
Public methodDeleteMessage(ContentMessage)
Deletes the specified message.
Public methodDeleteNotification(Int32)
Deletes the notification with the specified id.
Public methodDeleteNotification(Notification)
Deletes the specified notification.
Public methodDeleteState
Deletes the specified state.
Public methodDeleteStep
Deletes the specified step.
Public methodDeleteView
Deletes the specified view.
Public methodEnsurePermissionContext
Ensures that all entries (global/states by permissions/privileges). On first ensure, also add the default permissions of standard roles.
Public methodGetActivity(Guid)
Gets an activity by its GUID.
Public methodGetActivity(Int32)
Gets an activity by its id.
Public methodGetAllShapePositions
Gets the positions of all states, fake states and labels of the workflow schema.
Public methodGetAllTransitions
Gets the transitions of all states.
Public methodGetChoiceView
Gets a view referenced by a choice column.
Public methodGetColumn(Guid)
Gets a column by its GUID.
Public methodGetColumn(Int32)
Gets a column by its id.
Public methodGetColumn(String)
Gets a column by its name.
Public methodGetColumns
Gets columns by their ids.
Public methodGetContentTypeBaseType
Gets the content-type's base type.
Public methodGetContentTypeDisplayName
Gets the content-type's display name.
Public methodGetContentTypeGuid
Gets the content-type's GUID.
Public methodGetContentTypeId
Gets the content-type's id.
Public methodGetContentTypeName
Gets the content-type's name.
Public methodGetDisplayName
Gets the display name of this content-type. [IModelContentTypeInfo]
Public methodGetFakeState
Gets a fake state by its id.
Public methodGetFakeTransition
Gets a fake transition by its id.
Public methodGetGuid
Gets the Guid.
(Inherited from ModelingObject.)
Public methodGetIColumn
Gets a column by its GUID.
Public methodGetIColumns
Gets all columns.
Public methodGetInboundTransitions
Get all transitions with the specified state as destination "To".
Public methodGetIState
Gets a state by its GUID.
Public methodGetIStates
Gets all states.
Public methodGetItem
Gets a modeled item by its GUID.
Public methodGetIView
Gets a view by its GUID.
Public methodGetIViews
Gets all views.
Public methodGetKeyColumnName
Gets the key column name of this content-type. [IModelContentTypeInfo]
Public methodGetListItem
Gets a text representing this object using Id and Name.
(Inherited from ModelingObject.)
Public methodGetMessage(Int32)
Gets a message by its id.
Public methodGetMessage(String)
Gets a message by its name.
Public methodGetModelGuid
Gets the guid of the parent model of this content-type. [IModelContentTypeInfo]
Public methodGetName
Gets the name.
(Inherited from ModelingObject.)
Public methodGetNotification
Gets a notification by its id.
Public methodGetParentParentType
Returns the first parent of a given type in the modeling tree. Returns null if not found.
(Inherited from ModelingObject.)
Public methodGetStartState
Gets the start state, set by default on created items.
Public methodGetState(Guid)
Gets a state by its GUID.
Public methodGetState(Int32)
Gets a state by its id.
Public methodGetStep(Guid)
Gets a step by its GUID.
Public methodGetStep(Int32)
Gets a step by its id.
Public methodGetTransitionById
Gets a transition by its id.
Public methodGetView(Guid)
Gets a view by its GUID.
Public methodGetView(Int32)
Gets a view by its id.
Public methodGetView(String)
Gets a view by its name.
Public methodGetViewByGuid
Gets a view by its temporary GUID.
Public methodInit
Initializes name and display name with a default value.
Public methodIsLocalSecondary
Determines whether the content-type is local and secondary.
Public methodStatic memberMoveTransition
Moves a transition from its current parent state to another.
Public methodShouldSerializeObjectNotes
Indicates whether the ObjectNotes property should be generated during the serialization.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateWorkFormName
Updates the name of the work form.
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also