Class ProcessInstanceFieldTemplate
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.datarecord.ProcessInstanceFieldTemplate
-
- All Implemented Interfaces:
Serializable
,FieldTemplate
- Direct Known Subclasses:
ActionActorTemplate
,ActionDateTemplate
,ActionLabelTemplate
,ItemTemplate
,StateTemplate
,TitleTemplate
,UserInfoTemplate
public abstract class ProcessInstanceFieldTemplate extends Object implements FieldTemplate
A ProcessInstanceFieldTemplate describes a field of a process instance.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProcessInstanceFieldTemplate(String fieldName, String typeName, String displayerName, String label)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getDisplayerName()
Returns the name of the FieldDisplayer to display the described field.Field
getEmptyField()
Throws an illegal call exception, since an empty field can't be built from this template.Field
getEmptyField(int occurrence)
abstract Field
getField(ProcessInstance instance)
Returns a field built from this template and filled from the given process instance.String
getFieldName()
Returns the field name of the Field built on this template.String
getLabel()
Returns the default label of the described field.String
getLabel(String language)
Returns the local label of the described field.String[]
getLanguages()
Returns an empty array : this implementation use only a default local.int
getMaximumNumberOfOccurrences()
Map<String,String>
getParameters(String language)
Returns a Map (String -> String) of named parameters which can be used by the displayer (max-size, length ...).List<Parameter>
getParametersObj()
String
getTemplateName()
String
getTypeName()
Returns the type name of the described field.boolean
isDisabled()
Returns false.boolean
isHidden()
Returns false.boolean
isMandatory()
Returns false since a process instance field is read only.boolean
isReadOnly()
Returns true since a process instance field is read only.boolean
isRepeatable()
boolean
isSearchable()
boolean
isUsedAsFacet()
-
-
-
Method Detail
-
getFieldName
public String getFieldName()
Returns the field name of the Field built on this template.- Specified by:
getFieldName
in interfaceFieldTemplate
-
getTypeName
public String getTypeName()
Returns the type name of the described field.- Specified by:
getTypeName
in interfaceFieldTemplate
-
getDisplayerName
public String getDisplayerName()
Returns the name of the FieldDisplayer to display the described field.- Specified by:
getDisplayerName
in interfaceFieldTemplate
-
getLabel
public String getLabel()
Returns the default label of the described field.- Specified by:
getLabel
in interfaceFieldTemplate
-
getLabel
public String getLabel(String language)
Returns the local label of the described field.- Specified by:
getLabel
in interfaceFieldTemplate
-
getLanguages
public String[] getLanguages()
Returns an empty array : this implementation use only a default local.- Specified by:
getLanguages
in interfaceFieldTemplate
-
isMandatory
public boolean isMandatory()
Returns false since a process instance field is read only.- Specified by:
isMandatory
in interfaceFieldTemplate
-
isReadOnly
public boolean isReadOnly()
Returns true since a process instance field is read only.- Specified by:
isReadOnly
in interfaceFieldTemplate
-
isDisabled
public boolean isDisabled()
Returns false.- Specified by:
isDisabled
in interfaceFieldTemplate
-
isHidden
public boolean isHidden()
Returns false.- Specified by:
isHidden
in interfaceFieldTemplate
-
getParameters
public Map<String,String> getParameters(String language)
Returns a Map (String -> String) of named parameters which can be used by the displayer (max-size, length ...).- Specified by:
getParameters
in interfaceFieldTemplate
-
getParametersObj
public List<Parameter> getParametersObj()
- Specified by:
getParametersObj
in interfaceFieldTemplate
-
getEmptyField
public Field getEmptyField() throws FormException
Throws an illegal call exception, since an empty field can't be built from this template.- Specified by:
getEmptyField
in interfaceFieldTemplate
- Throws:
FormException
-
getEmptyField
public Field getEmptyField(int occurrence) throws FormException
- Specified by:
getEmptyField
in interfaceFieldTemplate
- Throws:
FormException
-
isSearchable
public boolean isSearchable()
- Specified by:
isSearchable
in interfaceFieldTemplate
-
getTemplateName
public String getTemplateName()
- Specified by:
getTemplateName
in interfaceFieldTemplate
-
isUsedAsFacet
public boolean isUsedAsFacet()
- Specified by:
isUsedAsFacet
in interfaceFieldTemplate
-
getMaximumNumberOfOccurrences
public int getMaximumNumberOfOccurrences()
- Specified by:
getMaximumNumberOfOccurrences
in interfaceFieldTemplate
-
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatable
in interfaceFieldTemplate
-
getField
public abstract Field getField(ProcessInstance instance) throws FormException
Returns a field built from this template and filled from the given process instance.- Throws:
FormException
-
-