Class DefaultMasterDataModel
java.lang.Object
com.flowable.dataobject.api.repository.BaseDataObjectModel
com.flowable.dataobject.api.repository.DefaultMasterDataModel
- All Implemented Interfaces:
DataObjectModel,MasterDataModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected List<MasterDataFilterParameter>protected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected booleanFields inherited from class com.flowable.dataobject.api.repository.BaseDataObjectModel
dataObjectType, description, externalId, key, name, sourceId, sourceSpecificAttributes, sourceType, subType, supportedCachingType, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the default locale used for resolving default entry names within this master data definition.Returns an optional list of filter parameters needed when looking up entries based on this master data definition.Returns the id field name that uniquely identifies the master data instanceReturns the key field name that references the master data instanceReturns a map containing the capabilities for a management tool defined for this master data definition.Returns the id of the source this master data definition and its entries is served from.Returns the name field name that can be used as a label for the master data instanceReturns the field name of each additional variable for the master data instancebooleanbooleanReturnstrueif this master data definition supports name filtering for master data entries orfalseif filtering for names should be done by theDataObjectRepositoryServiceinstead.voidsetDefaultLocale(String defaultLocale) voidsetFilterParameters(List<MasterDataFilterParameter> filterParameters) voidsetIdField(String idField) voidsetKeyField(String keyField) voidsetKeyFieldNumeric(boolean keyFieldNumeric) voidsetManagementCapabilities(Map<String, List<String>> managementCapabilities) voidsetMasterDataSourceId(String masterDataSourceId) voidsetNameField(String nameField) voidsetSupportsNameFiltering(boolean supportsNameFiltering) voidsetVariables(Map<String, String> variables) Methods inherited from class com.flowable.dataobject.api.repository.BaseDataObjectModel
getDataObjectType, getDescription, getExternalId, getKey, getName, getSourceId, getSourceSpecificAttributes, getSourceType, getSubType, getSupportedCachingType, getType, setDataObjectType, setDescription, setExternalId, setKey, setName, setSourceId, setSourceSpecificAttributes, setSourceType, setSubType, setSupportedCachingType, setTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.flowable.dataobject.api.repository.DataObjectModel
getDataObjectType, getDescription, getExternalId, getKey, getName, getSourceId, getSourceSpecificAttributes, getSourceType, getSubType, getSupportedCachingType, getType
-
Field Details
-
masterDataSourceId
-
managementCapabilities
-
filterParameters
-
defaultLocale
-
supportsNameFiltering
protected boolean supportsNameFiltering -
keyField
-
keyFieldNumeric
protected boolean keyFieldNumeric -
idField
-
nameField
-
variables
-
-
Constructor Details
-
DefaultMasterDataModel
public DefaultMasterDataModel()
-
-
Method Details
-
getMasterDataSourceId
Description copied from interface:MasterDataModelReturns the id of the source this master data definition and its entries is served from.- Specified by:
getMasterDataSourceIdin interfaceMasterDataModel- Returns:
- the id of the source for this master data
-
setMasterDataSourceId
-
getManagementCapabilities
Description copied from interface:MasterDataModelReturns a map containing the capabilities for a management tool defined for this master data definition. The map contains group keys as the key and the list of capability (also named as identity link type) for that group. The information provided by this model are then used to create identity links for this master definition.- Specified by:
getManagementCapabilitiesin interfaceMasterDataModel- Returns:
- the map containing the management capabilities of this master data definition mapped to groups
- See Also:
-
setManagementCapabilities
-
getFilterParameters
Description copied from interface:MasterDataModelReturns an optional list of filter parameters needed when looking up entries based on this master data definition.- Specified by:
getFilterParametersin interfaceMasterDataModel- Returns:
- the list of filter parameters available for this master data type or an empty list, if none available or needed
-
setFilterParameters
-
getDefaultLocale
Description copied from interface:MasterDataModelReturns the default locale used for resolving default entry names within this master data definition.- Specified by:
getDefaultLocalein interfaceMasterDataModel- Returns:
- the default locale for this master data definition
-
setDefaultLocale
-
isSupportsNameFiltering
public boolean isSupportsNameFiltering()Description copied from interface:MasterDataModelReturnstrueif this master data definition supports name filtering for master data entries orfalseif filtering for names should be done by theDataObjectRepositoryServiceinstead. If this is a master data definition using an external system as its source, it might not support name filtering thus the filtering must be done at service level and cannot be done within the source.- Specified by:
isSupportsNameFilteringin interfaceMasterDataModel- Returns:
trueif name filtering is supported by this definition,falseif filtering should take place on service level
-
setSupportsNameFiltering
public void setSupportsNameFiltering(boolean supportsNameFiltering) -
getKeyField
Description copied from interface:MasterDataModelReturns the key field name that references the master data instance- Specified by:
getKeyFieldin interfaceMasterDataModel
-
setKeyField
-
getIdField
Description copied from interface:MasterDataModelReturns the id field name that uniquely identifies the master data instance- Specified by:
getIdFieldin interfaceMasterDataModel
-
setIdField
-
getNameField
Description copied from interface:MasterDataModelReturns the name field name that can be used as a label for the master data instance- Specified by:
getNameFieldin interfaceMasterDataModel
-
setNameField
-
getVariables
Description copied from interface:MasterDataModelReturns the field name of each additional variable for the master data instance- Specified by:
getVariablesin interfaceMasterDataModel
-
setVariables
-
isKeyFieldNumeric
public boolean isKeyFieldNumeric()- Specified by:
isKeyFieldNumericin interfaceMasterDataModel- Returns:
trueif the key field should be returned as numeric value instead of a string value.
-
setKeyFieldNumeric
public void setKeyFieldNumeric(boolean keyFieldNumeric)
-