|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataDictionaryService
Defines the API for interacting with the data dictionary
Method Summary | |
---|---|
void |
addDataDictionaryLocations(String namespaceCode,
List<String> locations)
Sequentially adds each package named (as a String) in the given List as a source of unique entries to the DataDictionary being constructed |
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<? extends KeyValuesFinder> |
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. |
List<String> |
getGroupByAttributesForEffectiveDating(Class businessObjectClass)
Returns the list of attributes that should be used for grouping when determining the current status of a business object that implements InactivateableFromTo |
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 |
String |
getViewIdByTypeIndex(UifConstants.ViewType viewTypeName,
Map<String,String> indexKey)
Returns the view id for the view that matches the given view type 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 |
setAdditionalDictionaryFiles(Map<String,List<String>> additionalDictionaryFiles)
Adds additional dictionary files to the data dictionary (files that will not be loaded through one of the module configurations) |
Method Detail |
---|
void setAdditionalDictionaryFiles(Map<String,List<String>> additionalDictionaryFiles) throws IOException
Additional files must be associated with a namespace thus a map is specified with the key giving the namespace the list of files should be associated with
Duplicate entries among any of the XML files in any of these packages will result in exceptions being thrown, hence service-initialization failure
additionalDictionaryFiles
- map where key is namespace and value is list of dictionary files that
should be added to that namespace
IOException
- if any of the given packages can't be locatedvoid addDataDictionaryLocations(String namespaceCode, List<String> locations) throws IOException
Duplicate entries among any of the XML files in any of these packages will result in exceptions being thrown, hence service-initialization failure
namespaceCode
- - namespace the beans loaded from the location should be associated withlocations
- - list of locations to add (either classpath entries or file/folder locations)
IOException
- if any of the given packages can't be locatedDataDictionary getDataDictionary()
ControlDefinition getAttributeControlDefinition(Class dataObjectClass, String attributeName)
Integer getAttributeSize(Class dataObjectClass, String attributeName)
Integer getAttributeMaxLength(Class dataObjectClass, String attributeName)
Pattern getAttributeValidatingExpression(Class dataObjectClass, String attributeName)
String getAttributeLabel(Class dataObjectClass, String attributeName)
String getAttributeShortLabel(Class dataObjectClass, String attributeName)
String getAttributeErrorLabel(Class dataObjectClass, String attributeName)
Class<? extends Formatter> getAttributeFormatter(Class dataObjectClass, String attributeName)
Boolean getAttributeForceUppercase(Class dataObjectClass, String attributeName)
String getAttributeSummary(Class dataObjectClass, String attributeName)
String getAttributeDescription(Class dataObjectClass, String attributeName)
Boolean isAttributeRequired(Class dataObjectClass, String attributeName)
Boolean isAttributeDefined(Class dataObjectClass, String attributeName)
Class<? extends KeyValuesFinder> getAttributeValuesFinderClass(Class dataObjectClass, String attributeName)
String getCollectionLabel(Class dataObjectClass, String collectionName)
String getCollectionShortLabel(Class dataObjectClass, String collectionName)
String getCollectionSummary(Class dataObjectClass, String collectionName)
String getCollectionDescription(Class dataObjectClass, String collectionName)
ControlDefinition getAttributeControlDefinition(String entryName, String attributeName)
Integer getAttributeSize(String entryName, String attributeName)
Integer getAttributeMinLength(String entryName, String attributeName)
Integer getAttributeMaxLength(String entryName, String attributeName)
String getAttributeExclusiveMin(String entryName, String attributeName)
entryName
- attributeName
-
null
if none.String getAttributeInclusiveMax(String entryName, String attributeName)
entryName
- attributeName
-
null
if none.Pattern getAttributeValidatingExpression(String entryName, String attributeName)
String getAttributeLabel(String entryName, String attributeName)
String getAttributeShortLabel(String entryName, String attributeName)
String getAttributeErrorLabel(String entryName, String attributeName)
Class<? extends Formatter> getAttributeFormatter(String entryName, String attributeName)
Boolean getAttributeForceUppercase(String entryName, String attributeName)
AttributeSecurity getAttributeSecurity(String entryName, String attributeName)
String getAttributeSummary(String entryName, String attributeName)
String getAttributeDescription(String entryName, String attributeName)
String getAttributeValidatingErrorMessageKey(String entryName, String attributeName)
String[] getAttributeValidatingErrorMessageParameters(String entryName, String attributeName)
Boolean isAttributeRequired(String entryName, String attributeName)
Boolean isAttributeDefined(String entryName, String attributeName)
Class<? extends KeyValuesFinder> getAttributeValuesFinderClass(String entryName, String attributeName)
AttributeDefinition getAttributeDefinition(String entryName, String attributeName)
String getCollectionLabel(String entryName, String collectionName)
String getCollectionShortLabel(String entryName, String collectionName)
String getCollectionElementLabel(String entryName, String collectionName, Class dataObjectClass)
String getCollectionSummary(String entryName, String collectionName)
String getCollectionDescription(String entryName, String collectionName)
Class<? extends BusinessObject> getRelationshipSourceClass(String entryName, String relationshipName)
entryName
- relationshipName
-
Class<? extends BusinessObject> getRelationshipTargetClass(String entryName, String relationshipName)
entryName
- relationshipName
-
List<String> getRelationshipSourceAttributes(String entryName, String relationshipName)
entryName
- relationshipName
-
List<String> getRelationshipTargetAttributes(String entryName, String relationshipName)
entryName
- relationshipName
-
Map<String,String> getRelationshipAttributeMap(String entryName, String relationshipName)
entryName
- - Name of the Business Object entryrelationshipName
- - Name of the relationship
List<String> getRelationshipEntriesForSourceAttribute(String entryName, String sourceAttributeName)
entryName
- Name of the Business Object entrysourceAttributeName
- name of the source attribute
List<String> getRelationshipEntriesForTargetAttribute(String entryName, String targetAttributeName)
entryName
- Name of the Business Object entrytargetAttributeName
- name of the target attribute
boolean hasRelationship(String entryName, String relationshipName)
entryName
- name of the BO entryrelationshipName
- name of the relationship for the entry
List<String> getRelationshipNames(String entryName)
entryName
- of the BO entry
String getDocumentLabelByTypeName(String documentTypeName)
documentTypeName
-
String getDocumentLabelByClass(Class documentOrBusinessObjectClass)
documentOrBusinessObjectClass
-
String getDocumentTypeNameByClass(Class documentClass)
documentClass
-
String getValidDocumentTypeNameByClass(Class documentClass)
UnknownDocumentTypeException
is thrown.
documentClass
-
Class<? extends Document> getDocumentClassByTypeName(String documentTypeName)
documentTypeName
-
Class<? extends Document> getValidDocumentClassByTypeName(String documentTypeName)
UnknownDocumentTypeException
will be thrown.
documentTypeName
-
List<String> getGroupByAttributesForEffectiveDating(Class businessObjectClass)
businessObjectClass
- - business object class to get configured list for
Set<InactivationBlockingMetadata> getAllInactivationBlockingDefinitions(Class inactivationBlockedBusinessObjectClass)
inactivationBlockedBusinessObjectClass
-
View getViewById(String viewId)
viewId
- - unique id for view
Object getDictionaryObject(String id)
id
- - id or name for the bean definition
boolean containsDictionaryObject(String id)
id
- - id of the bean to check for
View getViewByTypeIndex(UifConstants.ViewType viewTypeName, Map<String,String> indexKey)
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 instance
String getViewIdByTypeIndex(UifConstants.ViewType viewTypeName, Map<String,String> indexKey)
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 instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |