Class FieldUtils
java.lang.Object
org.alfresco.repo.forms.processor.node.FieldUtils
Utility class to assist in creating
Fields which represent PropertyDefinitions and AssociationDefinitions- Since:
- 3.4
- Author:
- Nick Smith
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldmakeAssociationField(AssociationDefinition assocDef, Object value, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates an asssociation field.makeAssociationFields(Collection<AssociationDefinition> assocDefs, Map<AssociationDefinition, Object> values, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a list of association fields with values.makeAssociationFields(Collection<AssociationDefinition> assocDefs, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a list of association fields without values.makeAssociationFields(Map<AssociationDefinition, Object> assocDefAndValue, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a list of association fields with values.static FieldmakePropertyField(PropertyDefinition propDef, Object value, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a property field.makePropertyFields(Collection<PropertyDefinition> propDefs, Map<PropertyDefinition, Object> values, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a list of property fields with values.makePropertyFields(Collection<PropertyDefinition> propDefs, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a list of property fields without values.makePropertyFields(Map<PropertyDefinition, Object> propDefAndValue, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a list of property fields with values.
-
Constructor Details
-
FieldUtils
public FieldUtils()
-
-
Method Details
-
makePropertyField
public static Field makePropertyField(PropertyDefinition propDef, Object value, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a property field.- Parameters:
propDef- The definition of the property to generatevalue- The value of the fieldgroup- The group the field belongs tonamespaceService- NamespaceService instance- Returns:
- The generated Field object
-
makePropertyFields
public static List<Field> makePropertyFields(Collection<PropertyDefinition> propDefs, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a list of property fields without values.- Parameters:
propDefs- List of property defintions to creategroup- The group the field belongs tonamespaceService- NamespaceService instance- Returns:
- List of generated Field objects
-
makePropertyFields
public static List<Field> makePropertyFields(Map<PropertyDefinition, Object> propDefAndValue, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a list of property fields with values.- Parameters:
propDefAndValue- Map of property definitions and corresponding valuesgroup- The group the field belongs tonamespaceService- NamespaceService instance- Returns:
- List of generated Field objects
-
makePropertyFields
public static List<Field> makePropertyFields(Collection<PropertyDefinition> propDefs, Map<PropertyDefinition, Object> values, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a list of property fields with values.- Parameters:
propDefs- List of property definitions to generatevalues- Map containing the values to use for each propertygroup- The group the field belongs tonamespaceService- NamespaceService instance- Returns:
- List of generated Field objects
-
makeAssociationField
public static Field makeAssociationField(AssociationDefinition assocDef, Object value, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates an asssociation field.- Parameters:
assocDef- The definition of the association to generatevalue- The value of the fieldgroup- The group the field belongs tonamespaceService- NamespaceService instance- Returns:
- The generated Field object
-
makeAssociationFields
public static List<Field> makeAssociationFields(Collection<AssociationDefinition> assocDefs, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a list of association fields without values.- Parameters:
assocDefs- List of association defintions to creategroup- The group the field belongs tonamespaceService- NamespaceService instance- Returns:
- List of generated Field objects
-
makeAssociationFields
public static List<Field> makeAssociationFields(Map<AssociationDefinition, Object> assocDefAndValue, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a list of association fields with values.- Parameters:
assocDefAndValue- Map of association definitions and corresponding valuesgroup- The group the field belongs tonamespaceService- NamespaceService instance- Returns:
- List of generated Field objects
-
makeAssociationFields
public static List<Field> makeAssociationFields(Collection<AssociationDefinition> assocDefs, Map<AssociationDefinition, Object> values, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService) Generates a list of association fields with values.- Parameters:
assocDefs- List of association definitions to generatevalues- Map containing the values to use for each propertygroup- The group the field belongs tonamespaceService- NamespaceService instance- Returns:
- List of generated Field objects
-