public class FieldUtils extends Object
Fields which represent
PropertyDefinitions and
AssociationDefinitions| Constructor and Description |
|---|
FieldUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Field |
makeAssociationField(AssociationDefinition assocDef,
Object value,
FieldGroup group,
NamespaceService namespaceService,
DictionaryService dictionaryService)
Generates an asssociation field.
|
static List<Field> |
makeAssociationFields(Collection<AssociationDefinition> assocDefs,
FieldGroup group,
NamespaceService namespaceService,
DictionaryService dictionaryService)
Generates a list of association fields without values.
|
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.
|
static List<Field> |
makeAssociationFields(Map<AssociationDefinition,Object> assocDefAndValue,
FieldGroup group,
NamespaceService namespaceService,
DictionaryService dictionaryService)
Generates a list of association fields with values.
|
static Field |
makePropertyField(PropertyDefinition propDef,
Object value,
FieldGroup group,
NamespaceService namespaceService,
DictionaryService dictionaryService)
Generates a property field.
|
static List<Field> |
makePropertyFields(Collection<PropertyDefinition> propDefs,
FieldGroup group,
NamespaceService namespaceService,
DictionaryService dictionaryService)
Generates a list of property fields without values.
|
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.
|
static List<Field> |
makePropertyFields(Map<PropertyDefinition,Object> propDefAndValue,
FieldGroup group,
NamespaceService namespaceService,
DictionaryService dictionaryService)
Generates a list of property fields with values.
|
public static Field makePropertyField(PropertyDefinition propDef, Object value, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService)
propDef - The definition of the property to generatevalue - The value of the fieldgroup - The group the field belongs tonamespaceService - NamespaceService instancepublic static List<Field> makePropertyFields(Collection<PropertyDefinition> propDefs, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService)
propDefs - List of property defintions to creategroup - The group the field belongs tonamespaceService - NamespaceService instancepublic static List<Field> makePropertyFields(Map<PropertyDefinition,Object> propDefAndValue, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService)
propDefAndValue - Map of property definitions and corresponding valuesgroup - The group the field belongs tonamespaceService - NamespaceService instancepublic static List<Field> makePropertyFields(Collection<PropertyDefinition> propDefs, Map<PropertyDefinition,Object> values, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService)
propDefs - List of property definitions to generatevalues - Map containing the values to use for each propertygroup - The group the field belongs tonamespaceService - NamespaceService instancepublic static Field makeAssociationField(AssociationDefinition assocDef, Object value, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService)
assocDef - The definition of the association to generatevalue - The value of the fieldgroup - The group the field belongs tonamespaceService - NamespaceService instancepublic static List<Field> makeAssociationFields(Collection<AssociationDefinition> assocDefs, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService)
assocDefs - List of association defintions to creategroup - The group the field belongs tonamespaceService - NamespaceService instancepublic static List<Field> makeAssociationFields(Map<AssociationDefinition,Object> assocDefAndValue, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService)
assocDefAndValue - Map of association definitions and corresponding valuesgroup - The group the field belongs tonamespaceService - NamespaceService instancepublic static List<Field> makeAssociationFields(Collection<AssociationDefinition> assocDefs, Map<AssociationDefinition,Object> values, FieldGroup group, NamespaceService namespaceService, DictionaryService dictionaryService)
assocDefs - List of association definitions to generatevalues - Map containing the values to use for each propertygroup - The group the field belongs tonamespaceService - NamespaceService instanceCopyright © 2005–2021 Alfresco Software. All rights reserved.