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
ConstructorsModifierConstructorDescriptionprotected
ProcessFieldController
(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 fieldvoid
linkFieldToWorkflow
(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:IFieldController
Create a text field- Specified by:
createTextField
in 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:IFieldController
Create a multilingual text field- Specified by:
createMultilingualTextField
in 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:IFieldController
Create an integer field- Specified by:
createIntegerField
in 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:IFieldController
Create a double field- Specified by:
createDoubleField
in 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:IFieldController
Create a long field- Specified by:
createLongField
in 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:IFieldController
Create a float field- Specified by:
createFloatField
in 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:IFieldController
Create a boolean field- Specified by:
createBooleanField
in 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:IFieldController
Create a date field- Specified by:
createDateField
in 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:IFieldController
Create a period field- Specified by:
createPeriodField
in 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:IFieldController
Create an external element field- Specified by:
createExternalElementField
in 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:IFieldController
Create an attachment field (necessarily multiple)- Specified by:
createAttachmentField
in 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:IFieldController
Create a user field- Specified by:
createUserField
in 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:IFieldController
Create a group field- Specified by:
createGroupField
in 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:IFieldController
Create an organization field- Specified by:
createOrganizationField
in 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:IFieldController
Create a localization field- Specified by:
createLocalizationField
in 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:IFieldController
Link an existing field to the controller's definitionObject (mist be a workflow) The property must exist in the workflow's catalog !- Specified by:
linkFieldToWorkflow
in interfaceIFieldController
- Parameters:
context
- the execution contextproperty
- the field to link
-
retrieveField
Description copied from interface:IFieldController
Retrieve the field of the catalog/workflow/resource by its name- Specified by:
retrieveField
in interfaceIFieldController
- Parameters:
name
- the field's name- Returns:
- the field if it exists, null if not
-