Package org.kuali.rice.krad.service
Interface DocumentDictionaryService
public interface DocumentDictionaryService
Defines methods that a
DocumentEntry Service must provide, and the API for the interacting
with Document-related entries in the data dictionary- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptiongetAllowsCopy(Document document) Returns whether or not this document's data dictionary file has flagged it to allow document copiesgetAllowsNewOrCopy(String docTypeName) Returns whether or not this document's data dictionary file has flagged it to allow maintenance new or copy actionsgetAllowsRecordDeletion(Class dataObjectClass) Indicates whether the given data object class is configured to allow record deletionsgetAllowsRecordDeletion(MaintenanceDocument document) Indicates whether the given maintenance document is configured to allow record deletionsClass<? extends BusinessRule> getBusinessRulesClass(Document document) Retrieves the configured business rule class configured for the document entry that is associated with the document type of the given document instancegetClearValueOnCopyPropertyNames(Class dataObjectClass) Retrieves the list of property names that should be cleared when an object of type dataObjectClass is copied.getDefaultExistenceChecks(Class dataObjectClass) Retrieves the collection of ReferenceDefinition objects defined as DefaultExistenceChecks for the MaintenanceDocument associated with the given data object classgetDefaultExistenceChecks(String docTypeName) Retrieves the collection of ReferenceDefinition objects defined as DefaultExistenceChecks for the document entry associated with the given document type namegetDefaultExistenceChecks(Document document) Retrieves the collection of ReferenceDefinition objects defined as DefaultExistenceChecks for the document instancegetDescription(String documentTypeName) Retrieves the full description of the document as described in its data dictionary entrygetDocumentAuthorizer(String documentType) Retrieves theDocumentAuthorizerconfigured on the document entry with the given document type namegetDocumentAuthorizer(Document document) Retrieves theDocumentAuthorizerconfigured on the document entry for the document type associated with the document instanceClass<?> getDocumentClassByName(String documentTypeName) Retrieves the document class configured on the document entry associated with the given document type namegetDocumentEntry(String docTypeName) Retrieves the document entry that is associated with the given document type namegetDocumentEntryByClass(Class<? extends Document> documentClass) Retrieves the document entry that is associated with the given document classgetDocumentPresentationController(String documentType) Retrieves theDocumentPresentationControllerconfigured on the document entry with the given document type namegetDocumentPresentationController(Document document) Retrieves theDocumentPresentationControllerconfigured on the document entry for the document type associated with the document instancegetDocumentTypeByClass(Class<? extends Document> documentClass) Retrieves the document type configured on the document entry associated with the given document classRetrieves the label for the document as described in its data dictionary entrygetLockingKeys(String docTypeName) Retrieves the list of property names that are configured as locking keys for the maintenance document entry associated with the given document type nameClass<? extends Maintainable> getMaintainableClass(String docTypeName) Retrieves the maintainable class instance that is configured in the maintenance document entry associated with the given document type nameClass<?> getMaintenanceDataObjectClass(String docTypeName) Retrieves the data object class configured for the maintenance entry associated with the given document type namegetMaintenanceDocumentEntry(String docTypeName) Retrieves the maintenance document entry that is associated with the given document type namegetMaintenanceDocumentTypeName(Class dataObjectClass) Retrieves the configured document type name for the maintenance document entry associated with the given data object classbooleangetPreserveLockingKeysOnCopy(Class dataObjectClass) Indicates whether the configured locking keys for a class should be cleared on a maintenance copy action or values carried forward
-
Method Details
-
getLabel
Retrieves the label for the document as described in its data dictionary entry- Parameters:
documentTypeName- - document type name for the document entry to retrieve label for- Returns:
- String document label
-
getMaintenanceDocumentTypeName
Retrieves the configured document type name for the maintenance document entry associated with the given data object class- Parameters:
dataObjectClass- - data object class for maintenance entry to retrieve- Returns:
- String document type name for maintenance document
-
getDescription
Retrieves the full description of the document as described in its data dictionary entry- Parameters:
documentTypeName- - document type name for the document entry to retrieve description for- Returns:
- String documents full description
-
getDefaultExistenceChecks
Retrieves the collection of ReferenceDefinition objects defined as DefaultExistenceChecks for the MaintenanceDocument associated with the given data object class- Parameters:
dataObjectClass- - data object class for maintenance document- Returns:
- Collection reference definitions for default existence checks
-
getDefaultExistenceChecks
Retrieves the collection of ReferenceDefinition objects defined as DefaultExistenceChecks for the document instance- Parameters:
document- - document instance to pull document type for associated document entry- Returns:
- Collection reference definitions for default existence checks
-
getDefaultExistenceChecks
Retrieves the collection of ReferenceDefinition objects defined as DefaultExistenceChecks for the document entry associated with the given document type name- Parameters:
docTypeName- - document type name for document entry to pull existence checks for- Returns:
- Collection reference definitions for default existence checks
-
getMaintenanceDataObjectClass
Retrieves the data object class configured for the maintenance entry associated with the given document type name- Parameters:
docTypeName- - document type name associated with maintenance document entry- Returns:
- Classinvalid input: '<'?> data object class associated with maintenance document entry
-
getMaintainableClass
Retrieves the maintainable class instance that is configured in the maintenance document entry associated with the given document type name- Parameters:
docTypeName- - document type name to retrieve maintainable for- Returns:
- Classinvalid input: '<'? extends Maintainable> maintainable class for document type name
-
getBusinessRulesClass
Retrieves the configured business rule class configured for the document entry that is associated with the document type of the given document instance- Parameters:
document- - document instance to retrieve rule class for- Returns:
- Classinvalid input: '<'? extends BusinessRule> businessRulesClass associated with the given document type
-
getAllowsCopy
Returns whether or not this document's data dictionary file has flagged it to allow document copies- Parameters:
document- - document instance to check copy flag for- Returns:
- boolean true if copies are allowed, false otherwise
-
getAllowsNewOrCopy
Returns whether or not this document's data dictionary file has flagged it to allow maintenance new or copy actions- Parameters:
docTypeName- - document type name to retrieve maintenance document entry for- Returns:
- boolean true if new or copy maintenance actions are allowed
-
getDocumentEntry
Retrieves the document entry that is associated with the given document type name- Parameters:
docTypeName- - document type name to retrieve document entry for- Returns:
- DocumentEntry instance associated with document type
-
getDocumentEntryByClass
Retrieves the document entry that is associated with the given document class- Parameters:
documentClass- - document class to retrieve document entry for- Returns:
- DocumentEntry instance associated with document class
-
getMaintenanceDocumentEntry
Retrieves the maintenance document entry that is associated with the given document type name- Parameters:
docTypeName- - document type name to retrieve maintenance document entry for- Returns:
- MaintenanceDocumentEntry instance associated with document type
-
getDocumentClassByName
Retrieves the document class configured on the document entry associated with the given document type name- Parameters:
documentTypeName- - document type name to retrieve class for- Returns:
- Classinvalid input: '<'?> document class associated with document type name
-
getDocumentTypeByClass
Retrieves the document type configured on the document entry associated with the given document class- Parameters:
documentClass- - class for document to retrieve the document type for- Returns:
- String document type associated with document type name
-
getAllowsRecordDeletion
Indicates whether the given data object class is configured to allow record deletions- Parameters:
dataObjectClass- - class for the data object to check- Returns:
- Boolean true if record deletion is allowed, false if not allowed, null if not configured
-
getAllowsRecordDeletion
Indicates whether the given maintenance document is configured to allow record deletions- Parameters:
document- - maintenance document instance to check- Returns:
- Boolean true if record deletion is allowed, false if not allowed, null if not configured
-
getLockingKeys
Retrieves the list of property names that are configured as locking keys for the maintenance document entry associated with the given document type name- Parameters:
docTypeName- - document type name to retrieve maintenance document entry for- Returns:
- List<String> list of locking key property names
-
getPreserveLockingKeysOnCopy
Indicates whether the configured locking keys for a class should be cleared on a maintenance copy action or values carried forward- Parameters:
dataObjectClass- - class for the data object to check- Returns:
- boolean true if locking keys should be copied, false if they should be cleared
-
getClearValueOnCopyPropertyNames
Retrieves the list of property names that should be cleared when an object of type dataObjectClass is copied.- Parameters:
dataObjectClass- - class for the data object to check- Returns:
- List<String> list of property names to be cleared
-
getDocumentAuthorizer
Retrieves theDocumentAuthorizerconfigured on the document entry with the given document type name- Parameters:
documentType- - document type name to retrieve document entry and associated authorizer for- Returns:
- DocumentAuthorizer authorizer instance
-
getDocumentAuthorizer
Retrieves theDocumentAuthorizerconfigured on the document entry for the document type associated with the document instance- Parameters:
document- - document instance to retrieve document entry and associated authorizer for- Returns:
- DocumentAuthorizer authorizer instance
-
getDocumentPresentationController
Retrieves theDocumentPresentationControllerconfigured on the document entry with the given document type name- Parameters:
documentType- - document type name to retrieve document entry and associated presentation controller for- Returns:
- DocumentPresentationController instance
-
getDocumentPresentationController
Retrieves theDocumentPresentationControllerconfigured on the document entry for the document type associated with the document instance- Parameters:
document- - document instance to retrieve document entry and associated presentation controller for- Returns:
- DocumentPresentationController instance
-