public class DataDictionaryServiceImpl extends Object implements DataDictionaryService
Constructor and Description |
---|
DataDictionaryServiceImpl()
Default constructor.
|
DataDictionaryServiceImpl(DataDictionary dataDictionary) |
Modifier and Type | Method and Description |
---|---|
void |
addDataDictionaryLocation(String location) |
void |
addDataDictionaryLocations(List<String> locations) |
boolean |
containsDictionaryObject(String id)
Indicates whether the data dictionary contains a bean with the given id
|
Set<InactivationBlockingMetadata> |
getAllInactivationBlockingDefinitions(Class inactivationBlockedBusinessObjectClass)
Returns all of the inactivation blocks registered for a particular business object
|
ControlDefinition |
getAttributeControlDefinition(Class dataObjectClass,
String attributeName)
the html control type used to render the field
|
ControlDefinition |
getAttributeControlDefinition(String entryName,
String attributeName)
the html control type used to render the field
|
AttributeDefinition |
getAttributeDefinition(String entryName,
String attributeName)
AttributeDefinition associated with the given attributeName within the given entry
|
String |
getAttributeDescription(Class dataObjectClass,
String attributeName)
detailed help text for attribute
|
String |
getAttributeDescription(String entryName,
String attributeName)
detailed help text for attribute
|
String |
getAttributeErrorLabel(Class dataObjectClass,
String attributeName)
the "label (short label)" used for displaying error messages
|
String |
getAttributeErrorLabel(String entryName,
String attributeName)
the "label (short label)" used for displaying error messages
|
String |
getAttributeExclusiveMin(String entryName,
String attributeName) |
Boolean |
getAttributeForceUppercase(Class dataObjectClass,
String attributeName)
indicates whether or not to force input text into uppercase
|
Boolean |
getAttributeForceUppercase(String entryName,
String attributeName)
indicates whether or not to force input text into uppercase
|
Class<? extends Formatter> |
getAttributeFormatter(Class dataObjectClass,
String attributeName)
the formatter class used to format the attribute value
|
Class<? extends Formatter> |
getAttributeFormatter(String entryName,
String attributeName)
the formatter class used to format the attribute value
|
String |
getAttributeInclusiveMax(String entryName,
String attributeName) |
String |
getAttributeLabel(Class dataObjectClass,
String attributeName)
the label to be used for displaying the attribute.
|
String |
getAttributeLabel(String entryName,
String attributeName)
the label to be used for displaying the attribute.
|
Integer |
getAttributeMaxLength(Class dataObjectClass,
String attributeName)
the max length defined for the given attribute name.
|
Integer |
getAttributeMaxLength(String entryName,
String attributeName)
the max length defined for the given attribute name.
|
Integer |
getAttributeMinLength(String entryName,
String attributeName)
the min length defined for the given attribute name.
|
AttributeSecurity |
getAttributeSecurity(String entryName,
String attributeName)
the AttributeSecurity object defined for the attribute's data value
|
String |
getAttributeShortLabel(Class dataObjectClass,
String attributeName)
the short label to be used for displaying the attribute.
|
String |
getAttributeShortLabel(String entryName,
String attributeName)
the short label to be used for displaying the attribute.
|
Integer |
getAttributeSize(Class dataObjectClass,
String attributeName)
the display size of the field if text control
|
Integer |
getAttributeSize(String entryName,
String attributeName)
the display size of the field if text control
|
String |
getAttributeSummary(Class dataObjectClass,
String attributeName)
short help text for attribute
|
String |
getAttributeSummary(String entryName,
String attributeName)
short help text for attribute
|
String |
getAttributeValidatingErrorMessageKey(String entryName,
String attributeName) |
String[] |
getAttributeValidatingErrorMessageParameters(String entryName,
String attributeName) |
Pattern |
getAttributeValidatingExpression(Class dataObjectClass,
String attributeName)
the regular expression defined to validate the given attribute name.
|
Pattern |
getAttributeValidatingExpression(String entryName,
String attributeName)
the regular expression defined to validate the given attribute name.
|
Class |
getAttributeValuesFinderClass(Class dataObjectClass,
String attributeName)
the Class that returns a values list for this attribute
|
Class<? extends KeyValuesFinder> |
getAttributeValuesFinderClass(String entryName,
String attributeName)
the Class that returns a values list for this attribute
|
String |
getCollectionDescription(Class dataObjectClass,
String collectionName)
detailed help text for collection
|
String |
getCollectionDescription(String entryName,
String collectionName)
detailed help text for collection
|
String |
getCollectionElementLabel(String entryName,
String collectionName,
Class dataObjectClass)
the element label to be used for displaying the collection.
|
String |
getCollectionLabel(Class dataObjectClass,
String collectionName)
the label to be used for displaying the collection.
|
String |
getCollectionLabel(String entryName,
String collectionName)
the label to be used for displaying the collection.
|
String |
getCollectionShortLabel(Class dataObjectClass,
String collectionName)
the short label to be used for displaying the collection.
|
String |
getCollectionShortLabel(String entryName,
String collectionName)
the short label to be used for displaying the collection.
|
String |
getCollectionSummary(Class dataObjectClass,
String collectionName)
short help text for collection
|
String |
getCollectionSummary(String entryName,
String collectionName)
short help text for collection
|
DataDictionary |
getDataDictionary() |
Object |
getDictionaryObject(String id)
Returns an object from the dictionary by its spring bean name or id
|
Class<? extends Document> |
getDocumentClassByTypeName(String documentTypeName)
Returns the document class declared in the dd for the given document type
name.
|
String |
getDocumentLabelByClass(Class documentOrBusinessObjectClass)
This method returns the user friendly label based on the document or business object class
|
String |
getDocumentLabelByTypeName(String documentTypeName)
This method returns the user friendly label based on the workflow doc type name
|
String |
getDocumentTypeNameByClass(Class documentClass)
Returns the document type name declared in the dd for the given document
class.
|
DocumentTypeService |
getDocumentTypeService() |
List<String> |
getGroupByAttributesForEffectiveDating(Class dataObjectClass)
Returns the list of attributes that should be used for grouping when determining the current
status of a business object that implements InactivateableFromTo
|
ConfigurationService |
getKualiConfigurationService() |
KualiModuleService |
getKualiModuleService() |
Map<String,String> |
getRelationshipAttributeMap(String entryName,
String relationshipName)
returns a Map that specifies the attributes of the relationship
|
List<String> |
getRelationshipEntriesForSourceAttribute(String entryName,
String sourceAttributeName)
returns a list of names for all entries whose source parameter matches the parameter
|
List<String> |
getRelationshipEntriesForTargetAttribute(String entryName,
String targetAttributeName)
returns a list of names for all entries whose source parameter matches the parameter
|
List<String> |
getRelationshipNames(String entryName)
Returns all of the relationships defined for a BO in the DD
|
List<String> |
getRelationshipSourceAttributes(String entryName,
String relationshipName) |
Class<? extends BusinessObject> |
getRelationshipSourceClass(String entryName,
String relationshipName) |
List<String> |
getRelationshipTargetAttributes(String entryName,
String relationshipName) |
Class<? extends BusinessObject> |
getRelationshipTargetClass(String entryName,
String relationshipName) |
Class<? extends Document> |
getValidDocumentClassByTypeName(String documentTypeName)
Returns the document class declared in the dd for the given document type
name.
|
String |
getValidDocumentTypeNameByClass(Class documentClass)
Returns the document type name declared in the dd for the given document
class.
|
View |
getViewById(String viewId)
Returns the View entry identified by the given id
|
View |
getViewByTypeIndex(UifConstants.ViewType viewTypeName,
Map<String,String> indexKey)
Returns View instance identified by the view type name and index
|
boolean |
hasRelationship(String entryName,
String relationshipName)
Determines whether there is a relationship defined for the given entry with the given name
|
Boolean |
isAttributeDefined(Class dataObjectClass,
String attributeName)
indicates whether or not the named attribute is defined in the business object xml
|
Boolean |
isAttributeDefined(String entryName,
String attributeName)
indicates whether or not the named attribute is defined in the business object xml
|
Boolean |
isAttributeRequired(Class dataObjectClass,
String attributeName)
indicates whether or not the named attribute is required
|
Boolean |
isAttributeRequired(String entryName,
String attributeName)
indicates whether or not the named attribute is required
|
void |
setBaselinePackages(List baselinePackages)
Sequentially adds each package named (as a String) in the given List as a source of unique entries to the DataDictionary
being constructed.
|
void |
setKualiConfigurationService(ConfigurationService kualiConfigurationService) |
void |
setKualiModuleService(KualiModuleService kualiModuleService) |
public DataDictionaryServiceImpl()
public DataDictionaryServiceImpl(DataDictionary dataDictionary)
public void setBaselinePackages(List baselinePackages) throws IOException
DataDictionaryService
setBaselinePackages
in interface DataDictionaryService
IOException
org.kuali.rice.krad.service.DataDictionaryService#setBaselinePackages(java.lang.String)
public DataDictionary getDataDictionary()
getDataDictionary
in interface DataDictionaryService
DataDictionaryService.getDataDictionary()
public ControlDefinition getAttributeControlDefinition(String entryName, String attributeName)
DataDictionaryService
getAttributeControlDefinition
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeControlDefinition(java.lang.String)
public Integer getAttributeSize(String entryName, String attributeName)
DataDictionaryService
getAttributeSize
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeSize(java.lang.String)
public Integer getAttributeMinLength(String entryName, String attributeName)
DataDictionaryService
getAttributeMinLength
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeMinLength(java.lang.String)
public Integer getAttributeMaxLength(String entryName, String attributeName)
DataDictionaryService
getAttributeMaxLength
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeMaxLength(java.lang.String)
public String getAttributeExclusiveMin(String entryName, String attributeName)
getAttributeExclusiveMin
in interface DataDictionaryService
null
if none.DataDictionaryService.getAttributeExclusiveMin(java.lang.String, java.lang.String)
public String getAttributeInclusiveMax(String entryName, String attributeName)
getAttributeInclusiveMax
in interface DataDictionaryService
null
if none.DataDictionaryService.getAttributeInclusiveMax(java.lang.String, java.lang.String)
public Pattern getAttributeValidatingExpression(String entryName, String attributeName)
DataDictionaryService
getAttributeValidatingExpression
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeValidatingExpression(java.lang.String)
public String getAttributeLabel(String entryName, String attributeName)
DataDictionaryService
getAttributeLabel
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeLabel(java.lang.String)
public String getAttributeShortLabel(String entryName, String attributeName)
DataDictionaryService
getAttributeShortLabel
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeShortLabel(java.lang.String)
public String getAttributeErrorLabel(String entryName, String attributeName)
DataDictionaryService
getAttributeErrorLabel
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeErrorLabel(java.lang.String)
public Class<? extends Formatter> getAttributeFormatter(String entryName, String attributeName)
DataDictionaryService
getAttributeFormatter
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeFormatter(java.lang.String)
public Boolean getAttributeForceUppercase(String entryName, String attributeName) throws UnknownBusinessClassAttributeException
DataDictionaryService
getAttributeForceUppercase
in interface DataDictionaryService
UnknownBusinessClassAttributeException
org.kuali.rice.krad.service.DataDictionaryService#getAttributeForceUppercase(java.lang.String)
public AttributeSecurity getAttributeSecurity(String entryName, String attributeName)
DataDictionaryService
getAttributeSecurity
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeDisplayMask(java.lang.String, java.lang.String)
public String getAttributeSummary(String entryName, String attributeName)
DataDictionaryService
getAttributeSummary
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeSummary(java.lang.String)
public String getAttributeDescription(String entryName, String attributeName)
DataDictionaryService
getAttributeDescription
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeDescription(java.lang.String)
public Boolean isAttributeRequired(String entryName, String attributeName)
DataDictionaryService
isAttributeRequired
in interface DataDictionaryService
DataDictionaryService.isAttributeRequired(java.lang.Class, java.lang.String)
public Boolean isAttributeDefined(String entryName, String attributeName)
DataDictionaryService
isAttributeDefined
in interface DataDictionaryService
DataDictionaryService.isAttributeDefined(java.lang.Class, java.lang.String)
public Class<? extends KeyValuesFinder> getAttributeValuesFinderClass(String entryName, String attributeName)
DataDictionaryService
getAttributeValuesFinderClass
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getAttributeValuesScopeId(java.lang.Class,
java.lang.String)
public String getCollectionLabel(String entryName, String collectionName)
DataDictionaryService
getCollectionLabel
in interface DataDictionaryService
DataDictionaryService.getCollectionLabel(java.lang.Class, java.lang.String)
public String getCollectionShortLabel(String entryName, String collectionName)
DataDictionaryService
getCollectionShortLabel
in interface DataDictionaryService
DataDictionaryService.getCollectionShortLabel(java.lang.Class, java.lang.String)
public String getCollectionElementLabel(String entryName, String collectionName, Class dataObjectClass)
DataDictionaryService
getCollectionElementLabel
in interface DataDictionaryService
org.kuali.rice.krad.service.DataDictionaryService#getCollectionElementLabel(java.lang.Class,
java.lang.String)
public String getCollectionSummary(String entryName, String collectionName)
DataDictionaryService
getCollectionSummary
in interface DataDictionaryService
DataDictionaryService.getCollectionSummary(java.lang.Class, java.lang.String)
public String getCollectionDescription(String entryName, String collectionName)
DataDictionaryService
getCollectionDescription
in interface DataDictionaryService
DataDictionaryService.getCollectionDescription(java.lang.Class,
java.lang.String)
public Class<? extends BusinessObject> getRelationshipSourceClass(String entryName, String relationshipName)
getRelationshipSourceClass
in interface DataDictionaryService
public Class<? extends BusinessObject> getRelationshipTargetClass(String entryName, String relationshipName)
getRelationshipTargetClass
in interface DataDictionaryService
public List<String> getRelationshipSourceAttributes(String entryName, String relationshipName)
getRelationshipSourceAttributes
in interface DataDictionaryService
public List<String> getRelationshipTargetAttributes(String entryName, String relationshipName)
getRelationshipTargetAttributes
in interface DataDictionaryService
public List<String> getRelationshipEntriesForSourceAttribute(String entryName, String sourceAttributeName)
DataDictionaryService
getRelationshipEntriesForSourceAttribute
in interface DataDictionaryService
entryName
- Name of the Business Object entrysourceAttributeName
- name of the source attributepublic List<String> getRelationshipEntriesForTargetAttribute(String entryName, String targetAttributeName)
DataDictionaryService
getRelationshipEntriesForTargetAttribute
in interface DataDictionaryService
entryName
- Name of the Business Object entrytargetAttributeName
- name of the target attributepublic AttributeDefinition getAttributeDefinition(String entryName, String attributeName)
DataDictionaryService
getAttributeDefinition
in interface DataDictionaryService
objectClass
- attributeName
- IllegalArgumentException
- if the given Class is null or is not a BusinessObject classpublic Map<String,String> getRelationshipAttributeMap(String entryName, String relationshipName)
DataDictionaryService
getRelationshipAttributeMap
in interface DataDictionaryService
entryName
- - Name of the Business Object entryrelationshipName
- - Name of the relationshipDataDictionaryService.getRelationshipAttributeMap(java.lang.String, java.lang.String)
public boolean hasRelationship(String entryName, String relationshipName)
DataDictionaryService
hasRelationship
in interface DataDictionaryService
entryName
- name of the BO entryrelationshipName
- name of the relationship for the entrypublic List<String> getRelationshipNames(String entryName)
DataDictionaryService
getRelationshipNames
in interface DataDictionaryService
public ControlDefinition getAttributeControlDefinition(Class dataObjectClass, String attributeName)
DataDictionaryService
getAttributeControlDefinition
in interface DataDictionaryService
DataDictionaryService.getAttributeControlDefinition(java.lang.String, java.lang.String)
public String getAttributeDescription(Class dataObjectClass, String attributeName)
DataDictionaryService
getAttributeDescription
in interface DataDictionaryService
DataDictionaryService.getAttributeDescription(java.lang.String, java.lang.String)
public Boolean getAttributeForceUppercase(Class dataObjectClass, String attributeName)
DataDictionaryService
getAttributeForceUppercase
in interface DataDictionaryService
DataDictionaryService.getAttributeForceUppercase(java.lang.String, java.lang.String)
public Class<? extends Formatter> getAttributeFormatter(Class dataObjectClass, String attributeName)
DataDictionaryService
getAttributeFormatter
in interface DataDictionaryService
DataDictionaryService.getAttributeFormatter(java.lang.String, java.lang.String)
public String getAttributeLabel(Class dataObjectClass, String attributeName)
DataDictionaryService
getAttributeLabel
in interface DataDictionaryService
DataDictionaryService.getAttributeLabel(java.lang.String, java.lang.String)
public Integer getAttributeMaxLength(Class dataObjectClass, String attributeName)
DataDictionaryService
getAttributeMaxLength
in interface DataDictionaryService
DataDictionaryService.getAttributeMaxLength(java.lang.String, java.lang.String)
public String getAttributeShortLabel(Class dataObjectClass, String attributeName)
DataDictionaryService
getAttributeShortLabel
in interface DataDictionaryService
DataDictionaryService.getAttributeShortLabel(java.lang.String, java.lang.String)
public String getAttributeErrorLabel(Class dataObjectClass, String attributeName)
DataDictionaryService
getAttributeErrorLabel
in interface DataDictionaryService
DataDictionaryService.getAttributeErrorLabel(java.lang.String, java.lang.String)
public Integer getAttributeSize(Class dataObjectClass, String attributeName)
DataDictionaryService
getAttributeSize
in interface DataDictionaryService
DataDictionaryService.getAttributeSize(java.lang.String, java.lang.String)
public String getAttributeSummary(Class dataObjectClass, String attributeName)
DataDictionaryService
getAttributeSummary
in interface DataDictionaryService
DataDictionaryService.getAttributeSummary(java.lang.String, java.lang.String)
public Pattern getAttributeValidatingExpression(Class dataObjectClass, String attributeName)
DataDictionaryService
getAttributeValidatingExpression
in interface DataDictionaryService
DataDictionaryService.getAttributeValidatingExpression(java.lang.String, java.lang.String)
public Class getAttributeValuesFinderClass(Class dataObjectClass, String attributeName)
DataDictionaryService
getAttributeValuesFinderClass
in interface DataDictionaryService
DataDictionaryService.getAttributeValuesFinderClass(java.lang.String, java.lang.String)
public String getAttributeValidatingErrorMessageKey(String entryName, String attributeName)
getAttributeValidatingErrorMessageKey
in interface DataDictionaryService
DataDictionaryService.getAttributeValidatingErrorMessageKey(java.lang.String, java.lang.String)
public String[] getAttributeValidatingErrorMessageParameters(String entryName, String attributeName)
public String getCollectionDescription(Class dataObjectClass, String collectionName)
DataDictionaryService
getCollectionDescription
in interface DataDictionaryService
DataDictionaryService.getCollectionDescription(java.lang.String, java.lang.String)
public String getCollectionLabel(Class dataObjectClass, String collectionName)
DataDictionaryService
getCollectionLabel
in interface DataDictionaryService
DataDictionaryService.getCollectionLabel(java.lang.String, java.lang.String)
public String getCollectionShortLabel(Class dataObjectClass, String collectionName)
DataDictionaryService
getCollectionShortLabel
in interface DataDictionaryService
DataDictionaryService.getCollectionShortLabel(java.lang.String, java.lang.String)
public String getCollectionSummary(Class dataObjectClass, String collectionName)
DataDictionaryService
getCollectionSummary
in interface DataDictionaryService
DataDictionaryService.getCollectionSummary(java.lang.String, java.lang.String)
public Boolean isAttributeDefined(Class dataObjectClass, String attributeName)
DataDictionaryService
isAttributeDefined
in interface DataDictionaryService
DataDictionaryService.isAttributeDefined(java.lang.String, java.lang.String)
public Boolean isAttributeRequired(Class dataObjectClass, String attributeName)
DataDictionaryService
isAttributeRequired
in interface DataDictionaryService
DataDictionaryService.isAttributeRequired(java.lang.String, java.lang.String)
public String getDocumentLabelByClass(Class documentOrBusinessObjectClass)
DataDictionaryService
getDocumentLabelByClass
in interface DataDictionaryService
DataDictionaryService.getDocumentLabelByClass(java.lang.Class)
public String getDocumentLabelByTypeName(String documentTypeName)
DataDictionaryService
getDocumentLabelByTypeName
in interface DataDictionaryService
DataDictionaryService.getDocumentLabelByTypeName(java.lang.String)
public String getDocumentTypeNameByClass(Class documentClass)
DataDictionaryService
getDocumentTypeNameByClass
in interface DataDictionaryService
DataDictionaryService.getDocumentTypeNameByClass(java.lang.Class)
public String getValidDocumentTypeNameByClass(Class documentClass)
DataDictionaryService
UnknownDocumentTypeException
is thrown.getValidDocumentTypeNameByClass
in interface DataDictionaryService
DataDictionaryService.getValidDocumentTypeNameByClass(java.lang.Class)
public Class<? extends Document> getDocumentClassByTypeName(String documentTypeName)
DataDictionaryService
getDocumentClassByTypeName
in interface DataDictionaryService
DataDictionaryService.getDocumentClassByTypeName(java.lang.String)
public Class<? extends Document> getValidDocumentClassByTypeName(String documentTypeName)
DataDictionaryService
UnknownDocumentTypeException
will be thrown.getValidDocumentClassByTypeName
in interface DataDictionaryService
DataDictionaryService.getValidDocumentClassByTypeName(java.lang.String)
public View getViewById(String viewId)
DataDictionaryService
getViewById
in interface DataDictionaryService
viewId
- - unique id for viewDataDictionaryService.getViewById(java.lang.String)
public Object getDictionaryObject(String id)
DataDictionaryService
getDictionaryObject
in interface DataDictionaryService
id
- - id or name for the bean definitionDataDictionaryService.getDictionaryObject(java.lang.String)
public boolean containsDictionaryObject(String id)
DataDictionaryService
containsDictionaryObject
in interface DataDictionaryService
id
- - id of the bean to check forDataDictionaryService.containsDictionaryObject(java.lang.String)
public View getViewByTypeIndex(UifConstants.ViewType viewTypeName, Map<String,String> indexKey)
DataDictionaryService
getViewByTypeIndex
in interface DataDictionaryService
viewTypeName
- - type name for the viewindexKey
- - Map of index key parameters, these are the parameters the
indexer used to index the view initially and needs to identify
an unique view instanceorg.kuali.rice.krad.service.DataDictionaryService#getViewByTypeIndex(java.lang.String,
java.util.Map)
public void addDataDictionaryLocation(String location) throws IOException
IOException
public void addDataDictionaryLocations(List<String> locations) throws IOException
addDataDictionaryLocations
in interface DataDictionaryService
IOException
public List<String> getGroupByAttributesForEffectiveDating(Class dataObjectClass)
DataDictionaryService
getGroupByAttributesForEffectiveDating
in interface DataDictionaryService
dataObjectClass
- - business object class to get configured list forDataDictionaryService.getGroupByAttributesForEffectiveDating(java.lang.Class)
public Set<InactivationBlockingMetadata> getAllInactivationBlockingDefinitions(Class inactivationBlockedBusinessObjectClass)
getAllInactivationBlockingDefinitions
in interface DataDictionaryService
DataDictionaryService.getAllInactivationBlockingDefinitions(java.lang.Class)
public DocumentTypeService getDocumentTypeService()
public void setKualiConfigurationService(ConfigurationService kualiConfigurationService)
public ConfigurationService getKualiConfigurationService()
public KualiModuleService getKualiModuleService()
public void setKualiModuleService(KualiModuleService kualiModuleService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.