public class DefaultMasterDataModel extends BaseDataObjectModel implements MasterDataModel
Modifier and Type | Field and Description |
---|---|
protected String |
defaultLocale |
protected List<MasterDataFilterParameter> |
filterParameters |
protected String |
idField |
protected String |
keyField |
protected Map<String,List<String>> |
managementCapabilities |
protected String |
masterDataSourceId |
protected String |
nameField |
protected boolean |
supportsNameFiltering |
protected Map<String,String> |
variables |
dataObjectType, description, externalId, key, name, sourceId, sourceSpecificAttributes, sourceType, subType, supportedCachingType, type
Constructor and Description |
---|
DefaultMasterDataModel() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultLocale()
Returns the default locale used for resolving default entry names within this master data definition.
|
List<MasterDataFilterParameter> |
getFilterParameters()
Returns an optional list of filter parameters needed when looking up entries based on this master data definition.
|
String |
getIdField()
Returns the id field name that uniquely identifies the master data instance
|
String |
getKeyField()
Returns the key field name that references the master data instance
|
Map<String,List<String>> |
getManagementCapabilities()
Returns a map containing the capabilities for a management tool defined for this master data definition.
|
String |
getMasterDataSourceId()
Returns the id of the source this master data definition and its entries is served from.
|
String |
getNameField()
Returns the name field name that can be used as a label for the master data instance
|
Map<String,String> |
getVariables()
Returns the field name of each additional variable for the master data instance
|
boolean |
isSupportsNameFiltering()
Returns
true if this master data definition supports name filtering for master data entries or false if filtering for names
should be done by the DataObjectRepositoryService instead. |
void |
setDefaultLocale(String defaultLocale) |
void |
setFilterParameters(List<MasterDataFilterParameter> filterParameters) |
void |
setIdField(String idField) |
void |
setKeyField(String keyField) |
void |
setManagementCapabilities(Map<String,List<String>> managementCapabilities) |
void |
setMasterDataSourceId(String masterDataSourceId) |
void |
setNameField(String nameField) |
void |
setSupportsNameFiltering(boolean supportsNameFiltering) |
void |
setVariables(Map<String,String> variables) |
getDataObjectType, getDescription, getExternalId, getKey, getName, getSourceId, getSourceSpecificAttributes, getSourceType, getSubType, getSupportedCachingType, getType, setDataObjectType, setDescription, setExternalId, setKey, setName, setSourceId, setSourceSpecificAttributes, setSourceType, setSubType, setSupportedCachingType, setType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataObjectType, getDescription, getExternalId, getKey, getName, getSourceId, getSourceSpecificAttributes, getSourceType, getSubType, getSupportedCachingType, getType
protected String masterDataSourceId
protected List<MasterDataFilterParameter> filterParameters
protected String defaultLocale
protected boolean supportsNameFiltering
protected String keyField
protected String idField
protected String nameField
public String getMasterDataSourceId()
MasterDataModel
getMasterDataSourceId
in interface MasterDataModel
public void setMasterDataSourceId(String masterDataSourceId)
public Map<String,List<String>> getManagementCapabilities()
MasterDataModel
getManagementCapabilities
in interface MasterDataModel
for a list of available and supported types
public void setManagementCapabilities(Map<String,List<String>> managementCapabilities)
public List<MasterDataFilterParameter> getFilterParameters()
MasterDataModel
getFilterParameters
in interface MasterDataModel
public void setFilterParameters(List<MasterDataFilterParameter> filterParameters)
public String getDefaultLocale()
MasterDataModel
getDefaultLocale
in interface MasterDataModel
public void setDefaultLocale(String defaultLocale)
public boolean isSupportsNameFiltering()
MasterDataModel
true
if this master data definition supports name filtering for master data entries or false
if filtering for names
should be done by the DataObjectRepositoryService
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.isSupportsNameFiltering
in interface MasterDataModel
true
if name filtering is supported by this definition, false
if filtering should take place on service levelpublic void setSupportsNameFiltering(boolean supportsNameFiltering)
public String getKeyField()
MasterDataModel
getKeyField
in interface MasterDataModel
public void setKeyField(String keyField)
public String getIdField()
MasterDataModel
getIdField
in interface MasterDataModel
public void setIdField(String idField)
public String getNameField()
MasterDataModel
getNameField
in interface MasterDataModel
public void setNameField(String nameField)
public Map<String,String> getVariables()
MasterDataModel
getVariables
in interface MasterDataModel