Package com.axemble.vdoc.sdk.impl
Class ProcessFieldController
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractElement
com.axemble.vdoc.sdk.impl.ProcessFieldController
- All Implemented Interfaces:
IController,IFieldController,Serializable
Manage fields in process (in workflows, data universe)
- See Also:
-
Field Summary
Fields inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
module -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProcessFieldController(IModule module, com.axemble.vdoc.core.domain.BaseDomain definitionObject) -
Method Summary
Modifier and TypeMethodDescriptionCreate an attachment field (necessarily multiple)createBooleanField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create a boolean fieldcreateDateField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create a date fieldcreateDoubleField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create a double fieldcreateExternalElementField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create an external element fieldcreateFloatField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create a float fieldcreateGroupField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create a group fieldcreateIntegerField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create an integer fieldcreateLocalizationField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create a localization fieldcreateLongField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create a long fieldcreateMultilingualTextField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create a multilingual text fieldcreateOrganizationField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create an organization fieldcreatePeriodField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create a period fieldcreateTextField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple, boolean createList) Create a text fieldcreateUserField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Create a user fieldvoidlinkFieldToWorkflow(IContext context, IProperty property) Link an existing field to the controller's definitionObject (mist be a workflow) The property must exist in the workflow's catalog !retrieveField(String name) Retrieve the field of the catalog/workflow/resource by its nameMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
getModule
-
Constructor Details
-
ProcessFieldController
protected ProcessFieldController(IModule module, com.axemble.vdoc.core.domain.BaseDomain definitionObject)
-
-
Method Details
-
createTextField
public IProperty createTextField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple, boolean createList) Description copied from interface:IFieldControllerCreate a text field- Specified by:
createTextFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of valuecreateList- true to create a list associated to the field (only if it is multiple)- Returns:
- the created field
-
createMultilingualTextField
public IProperty createMultilingualTextField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate a multilingual text field- Specified by:
createMultilingualTextFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
createIntegerField
public IProperty createIntegerField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate an integer field- Specified by:
createIntegerFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
createDoubleField
public IProperty createDoubleField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate a double field- Specified by:
createDoubleFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
createLongField
public IProperty createLongField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate a long field- Specified by:
createLongFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
createFloatField
public IProperty createFloatField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate a float field- Specified by:
createFloatFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
createBooleanField
public IProperty createBooleanField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate a boolean field- Specified by:
createBooleanFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
createDateField
public IProperty createDateField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate a date field- Specified by:
createDateFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
createPeriodField
public IProperty createPeriodField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate a period field- Specified by:
createPeriodFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
createExternalElementField
public IProperty createExternalElementField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate an external element field- Specified by:
createExternalElementFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
createAttachmentField
public IProperty createAttachmentField(Map<String, String> labels, Map<String, String> descriptions, String name) Description copied from interface:IFieldControllerCreate an attachment field (necessarily multiple)- Specified by:
createAttachmentFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field name- Returns:
- the created field
-
createUserField
public IProperty createUserField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate a user field- Specified by:
createUserFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
createGroupField
public IProperty createGroupField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate a group field- Specified by:
createGroupFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
createOrganizationField
public IProperty createOrganizationField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate an organization field- Specified by:
createOrganizationFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
createLocalizationField
public IProperty createLocalizationField(Map<String, String> labels, Map<String, String> descriptions, String name, boolean isMultiple) Description copied from interface:IFieldControllerCreate a localization field- Specified by:
createLocalizationFieldin interfaceIFieldController- Parameters:
labels- a map that contains the language in the key (fr, en, ...) and the label in the valuedescriptions- a map that contains the language in the key (fr, en, ...) and the description in the valuename- the field nameisMultiple- true if the field contains a collection of value- Returns:
- the created field
-
linkFieldToWorkflow
Description copied from interface:IFieldControllerLink an existing field to the controller's definitionObject (mist be a workflow) The property must exist in the workflow's catalog !- Specified by:
linkFieldToWorkflowin interfaceIFieldController- Parameters:
context- the execution contextproperty- the field to link
-
retrieveField
Description copied from interface:IFieldControllerRetrieve the field of the catalog/workflow/resource by its name- Specified by:
retrieveFieldin interfaceIFieldController- Parameters:
name- the field's name- Returns:
- the field if it exists, null if not
-