|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataDictionaryService
This interface defines the API for interacting with the data dictionary.
Method Summary | |
---|---|
void |
addDataDictionaryLocations(List<String> locations)
|
Set<InactivationBlockingMetadata> |
getAllInactivationBlockingDefinitions(Class inactivationBlockedBusinessObjectClass)
Returns all of the inactivation blocks registered for a particular business object |
ControlDefinition |
getAttributeControlDefinition(Class businessObjectClass,
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 |
String |
getAttributeDescription(Class businessObjectClass,
String attributeName)
detailed help text for attribute |
String |
getAttributeDescription(String entryName,
String attributeName)
detailed help text for attribute |
String |
getAttributeErrorLabel(Class businessObjectClass,
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 |
BigDecimal |
getAttributeExclusiveMin(String entryName,
String attributeName)
|
Boolean |
getAttributeForceUppercase(Class businessObjectClass,
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 businessObjectClass,
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 |
BigDecimal |
getAttributeInclusiveMax(String entryName,
String attributeName)
|
String |
getAttributeLabel(Class businessObjectClass,
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 businessObjectClass,
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. |
AttributeSecurity |
getAttributeSecurity(String entryName,
String attributeName)
the AttributeSecurity object defined for the attribute's data value |
String |
getAttributeShortLabel(Class businessObjectClass,
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 businessObjectClass,
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 businessObjectClass,
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 businessObjectClass,
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 businessObjectClass,
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 businessObjectClass,
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 businessObjectClass)
the element label to be used for displaying the collection. |
String |
getCollectionLabel(Class businessObjectClass,
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 businessObjectClass,
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 businessObjectClass,
String collectionName)
short help text for collection |
String |
getCollectionSummary(String entryName,
String collectionName)
short help text for collection |
DataDictionary |
getDataDictionary()
|
Map |
getDataDictionaryMap()
|
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. |
Class<? extends PromptBeforeValidation> |
getPromptBeforeValidationClass(String docTypeName)
|
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. |
boolean |
hasRelationship(String entryName,
String relationshipName)
Determines whether there is a relationship defined for the given entry with the given name |
Boolean |
isAttributeDefined(Class businessObjectClass,
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 businessObjectClass,
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. |
Method Detail |
---|
void setBaselinePackages(List baselinePackages) throws IOException
baselinePackages
-
SourceException
- if any of the given packages can't be located
IOException
DataDictionary getDataDictionary()
void addDataDictionaryLocations(List<String> locations) throws IOException
IOException
ControlDefinition getAttributeControlDefinition(Class businessObjectClass, String attributeName)
Integer getAttributeSize(Class businessObjectClass, String attributeName)
Integer getAttributeMaxLength(Class businessObjectClass, String attributeName)
Pattern getAttributeValidatingExpression(Class businessObjectClass, String attributeName)
String getAttributeLabel(Class businessObjectClass, String attributeName)
String getAttributeShortLabel(Class businessObjectClass, String attributeName)
String getAttributeErrorLabel(Class businessObjectClass, String attributeName)
Class<? extends Formatter> getAttributeFormatter(Class businessObjectClass, String attributeName)
Boolean getAttributeForceUppercase(Class businessObjectClass, String attributeName)
String getAttributeSummary(Class businessObjectClass, String attributeName)
String getAttributeDescription(Class businessObjectClass, String attributeName)
Boolean isAttributeRequired(Class businessObjectClass, String attributeName)
Boolean isAttributeDefined(Class businessObjectClass, String attributeName)
Class<? extends KeyValuesFinder> getAttributeValuesFinderClass(Class businessObjectClass, String attributeName)
String getCollectionLabel(Class businessObjectClass, String collectionName)
String getCollectionShortLabel(Class businessObjectClass, String collectionName)
String getCollectionSummary(Class businessObjectClass, String collectionName)
String getCollectionDescription(Class businessObjectClass, String collectionName)
ControlDefinition getAttributeControlDefinition(String entryName, String attributeName)
Integer getAttributeSize(String entryName, String attributeName)
Integer getAttributeMaxLength(String entryName, String attributeName)
BigDecimal getAttributeExclusiveMin(String entryName, String attributeName)
entryName
- attributeName
-
null
if none.BigDecimal 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)
String getCollectionLabel(String entryName, String collectionName)
String getCollectionShortLabel(String entryName, String collectionName)
String getCollectionElementLabel(String entryName, String collectionName, Class businessObjectClass)
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)
name
- of the BO entry
String getDocumentLabelByTypeName(String documentTypeName)
documentTypeName
-
String getDocumentLabelByClass(Class documentOrBusinessObjectClass)
documentTypeName
-
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
-
Class<? extends PromptBeforeValidation> getPromptBeforeValidationClass(String docTypeName)
document
-
Map getDataDictionaryMap()
Set<InactivationBlockingMetadata> getAllInactivationBlockingDefinitions(Class inactivationBlockedBusinessObjectClass)
inactivationBlockedBusinessObjectClass
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |