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, setTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataObjectType, getDescription, getExternalId, getKey, getName, getSourceId, getSourceSpecificAttributes, getSourceType, getSubType, getSupportedCachingType, getTypeprotected String masterDataSourceId
protected List<MasterDataFilterParameter> filterParameters
protected String defaultLocale
protected boolean supportsNameFiltering
protected String keyField
protected String idField
protected String nameField
public String getMasterDataSourceId()
MasterDataModelgetMasterDataSourceId in interface MasterDataModelpublic void setMasterDataSourceId(String masterDataSourceId)
public Map<String,List<String>> getManagementCapabilities()
MasterDataModelgetManagementCapabilities in interface MasterDataModelfor a list of available and supported typespublic void setManagementCapabilities(Map<String,List<String>> managementCapabilities)
public List<MasterDataFilterParameter> getFilterParameters()
MasterDataModelgetFilterParameters in interface MasterDataModelpublic void setFilterParameters(List<MasterDataFilterParameter> filterParameters)
public String getDefaultLocale()
MasterDataModelgetDefaultLocale in interface MasterDataModelpublic void setDefaultLocale(String defaultLocale)
public boolean isSupportsNameFiltering()
MasterDataModeltrue 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 MasterDataModeltrue if name filtering is supported by this definition, false if filtering should take place on service levelpublic void setSupportsNameFiltering(boolean supportsNameFiltering)
public String getKeyField()
MasterDataModelgetKeyField in interface MasterDataModelpublic void setKeyField(String keyField)
public String getIdField()
MasterDataModelgetIdField in interface MasterDataModelpublic void setIdField(String idField)
public String getNameField()
MasterDataModelgetNameField in interface MasterDataModelpublic void setNameField(String nameField)
public Map<String,String> getVariables()
MasterDataModelgetVariables in interface MasterDataModelCopyright © 2019. All rights reserved.