Class DefaultMasterDataModel
java.lang.Object
com.flowable.dataobject.api.repository.BaseDataObjectModel
com.flowable.dataobject.api.repository.DefaultMasterDataModel
- All Implemented Interfaces:
DataObjectModel
,MasterDataModel
public class DefaultMasterDataModel extends BaseDataObjectModel implements MasterDataModel
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
defaultLocale
protected java.util.List<MasterDataFilterParameter>
filterParameters
protected java.lang.String
idField
protected java.lang.String
keyField
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>>
managementCapabilities
protected java.lang.String
masterDataSourceId
protected java.lang.String
nameField
protected boolean
supportsNameFiltering
protected java.util.Map<java.lang.String,java.lang.String>
variables
Fields inherited from class com.flowable.dataobject.api.repository.BaseDataObjectModel
dataObjectType, description, externalId, key, name, sourceId, sourceSpecificAttributes, sourceType, subType, supportedCachingType, type
-
Constructor Summary
Constructors Constructor Description DefaultMasterDataModel()
-
Method Summary
Modifier and Type Method Description java.lang.String
getDefaultLocale()
Returns the default locale used for resolving default entry names within this master data definition.java.util.List<MasterDataFilterParameter>
getFilterParameters()
Returns an optional list of filter parameters needed when looking up entries based on this master data definition.java.lang.String
getIdField()
Returns the id field name that uniquely identifies the master data instancejava.lang.String
getKeyField()
Returns the key field name that references the master data instancejava.util.Map<java.lang.String,java.util.List<java.lang.String>>
getManagementCapabilities()
Returns a map containing the capabilities for a management tool defined for this master data definition.java.lang.String
getMasterDataSourceId()
Returns the id of the source this master data definition and its entries is served from.java.lang.String
getNameField()
Returns the name field name that can be used as a label for the master data instancejava.util.Map<java.lang.String,java.lang.String>
getVariables()
Returns the field name of each additional variable for the master data instanceboolean
isSupportsNameFiltering()
Returnstrue
if this master data definition supports name filtering for master data entries orfalse
if filtering for names should be done by theDataObjectRepositoryService
instead.void
setDefaultLocale(java.lang.String defaultLocale)
void
setFilterParameters(java.util.List<MasterDataFilterParameter> filterParameters)
void
setIdField(java.lang.String idField)
void
setKeyField(java.lang.String keyField)
void
setManagementCapabilities(java.util.Map<java.lang.String,java.util.List<java.lang.String>> managementCapabilities)
void
setMasterDataSourceId(java.lang.String masterDataSourceId)
void
setNameField(java.lang.String nameField)
void
setSupportsNameFiltering(boolean supportsNameFiltering)
void
setVariables(java.util.Map<java.lang.String,java.lang.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, setType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.dataobject.api.repository.DataObjectModel
getDataObjectType, getDescription, getExternalId, getKey, getName, getSourceId, getSourceSpecificAttributes, getSourceType, getSubType, getSupportedCachingType, getType
-
Field Details
-
masterDataSourceId
protected java.lang.String masterDataSourceId -
managementCapabilities
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> managementCapabilities -
filterParameters
-
defaultLocale
protected java.lang.String defaultLocale -
supportsNameFiltering
protected boolean supportsNameFiltering -
keyField
protected java.lang.String keyField -
idField
protected java.lang.String idField -
nameField
protected java.lang.String nameField -
variables
protected java.util.Map<java.lang.String,java.lang.String> variables
-
-
Constructor Details
-
DefaultMasterDataModel
public DefaultMasterDataModel()
-
-
Method Details
-
getMasterDataSourceId
public java.lang.String getMasterDataSourceId()Description copied from interface:MasterDataModel
Returns the id of the source this master data definition and its entries is served from.- Specified by:
getMasterDataSourceId
in interfaceMasterDataModel
- Returns:
- the id of the source for this master data
-
setMasterDataSourceId
public void setMasterDataSourceId(java.lang.String masterDataSourceId) -
getManagementCapabilities
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getManagementCapabilities()Description copied from interface:MasterDataModel
Returns 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:
getManagementCapabilities
in interfaceMasterDataModel
- Returns:
- the map containing the management capabilities of this master data definition mapped to groups
- See Also:
for a list of available and supported types
-
setManagementCapabilities
public void setManagementCapabilities(java.util.Map<java.lang.String,java.util.List<java.lang.String>> managementCapabilities) -
getFilterParameters
Description copied from interface:MasterDataModel
Returns an optional list of filter parameters needed when looking up entries based on this master data definition.- Specified by:
getFilterParameters
in interfaceMasterDataModel
- Returns:
- the list of filter parameters available for this master data type or an empty list, if none available or needed
-
setFilterParameters
-
getDefaultLocale
public java.lang.String getDefaultLocale()Description copied from interface:MasterDataModel
Returns the default locale used for resolving default entry names within this master data definition.- Specified by:
getDefaultLocale
in interfaceMasterDataModel
- Returns:
- the default locale for this master data definition
-
setDefaultLocale
public void setDefaultLocale(java.lang.String defaultLocale) -
isSupportsNameFiltering
public boolean isSupportsNameFiltering()Description copied from interface:MasterDataModel
Returnstrue
if this master data definition supports name filtering for master data entries orfalse
if filtering for names should be done by theDataObjectRepositoryService
instead. 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:
isSupportsNameFiltering
in interfaceMasterDataModel
- Returns:
true
if name filtering is supported by this definition,false
if filtering should take place on service level
-
setSupportsNameFiltering
public void setSupportsNameFiltering(boolean supportsNameFiltering) -
getKeyField
public java.lang.String getKeyField()Description copied from interface:MasterDataModel
Returns the key field name that references the master data instance- Specified by:
getKeyField
in interfaceMasterDataModel
-
setKeyField
public void setKeyField(java.lang.String keyField) -
getIdField
public java.lang.String getIdField()Description copied from interface:MasterDataModel
Returns the id field name that uniquely identifies the master data instance- Specified by:
getIdField
in interfaceMasterDataModel
-
setIdField
public void setIdField(java.lang.String idField) -
getNameField
public java.lang.String getNameField()Description copied from interface:MasterDataModel
Returns the name field name that can be used as a label for the master data instance- Specified by:
getNameField
in interfaceMasterDataModel
-
setNameField
public void setNameField(java.lang.String nameField) -
getVariables
public java.util.Map<java.lang.String,java.lang.String> getVariables()Description copied from interface:MasterDataModel
Returns the field name of each additional variable for the master data instance- Specified by:
getVariables
in interfaceMasterDataModel
-
setVariables
public void setVariables(java.util.Map<java.lang.String,java.lang.String> variables)
-