public class DocumentDictionaryServiceImpl extends Object implements DocumentDictionaryService
DocumentDictionaryService which reads configuration
from the data dictionary| Constructor and Description |
|---|
DocumentDictionaryServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAllowsCopy(Document document)
Returns whether or not this document's data dictionary file has flagged it to allow document copies
|
Boolean |
getAllowsNewOrCopy(String docTypeName)
Returns whether or not this document's data dictionary file has flagged it to allow maintenance new
or copy actions
|
Boolean |
getAllowsRecordDeletion(Class dataObjectClass)
Indicates whether the given data object class is configured to allow record deletions
|
Boolean |
getAllowsRecordDeletion(MaintenanceDocument document)
Indicates whether the given maintenance document is configured to allow record deletions
|
Class<? 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 instance
|
List<String> |
getClearValueOnCopyPropertyNames(Class dataObjectClass)
Retrieves the list of property names that should be cleared when an object of type dataObjectClass
is copied.
|
protected DataDictionary |
getDataDictionary() |
protected DataDictionaryService |
getDataDictionaryService() |
Collection |
getDefaultExistenceChecks(Class dataObjectClass)
Retrieves the collection of ReferenceDefinition objects defined as DefaultExistenceChecks
for the MaintenanceDocument associated with the given data object class
|
Collection |
getDefaultExistenceChecks(Document document)
Retrieves the collection of ReferenceDefinition objects defined as DefaultExistenceChecks
for the document instance
|
Collection |
getDefaultExistenceChecks(String docTypeName)
Retrieves the collection of ReferenceDefinition objects defined as DefaultExistenceChecks
for the document entry associated with the given document type name
|
String |
getDescription(String documentTypeName)
Retrieves the full description of the document as described in its data dictionary entry
|
DocumentAuthorizer |
getDocumentAuthorizer(Document document)
Retrieves the
DocumentAuthorizer configured on the document entry for the document type associated
with the document instance |
DocumentAuthorizer |
getDocumentAuthorizer(String documentType)
Retrieves the
DocumentAuthorizer configured on the document entry with the given document type
name |
Class<?> |
getDocumentClassByName(String documentTypeName)
Retrieves the document class configured on the document entry associated with the
given document type name
|
protected DocumentEntry |
getDocumentEntry(Document document)
Retrieves the document entry for the document type of the given document instance
|
DocumentEntry |
getDocumentEntry(String documentTypeName)
Retrieves the document entry that is associated with the given document type name
|
DocumentEntry |
getDocumentEntryByClass(Class<? extends Document> documentClass)
Retrieves the document entry that is associated with the given document class
|
DocumentPresentationController |
getDocumentPresentationController(Document document)
Retrieves the
DocumentPresentationController configured on the document entry for the document type
associated with the document instance |
DocumentPresentationController |
getDocumentPresentationController(String documentType)
Retrieves the
DocumentPresentationController configured on the document entry with the given document
type name |
protected DocumentType |
getDocumentType(String documentTypeName)
Gets the workflow document type dto for the given documentTypeName
|
String |
getDocumentTypeByClass(Class<? extends Document> documentClass)
Retrieves the document type configured on the document entry associated with the
given document class
|
String |
getLabel(String documentTypeName)
Retrieves the label for the document as described in its data dictionary entry
|
List<String> |
getLockingKeys(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 name
|
Class<? extends Maintainable> |
getMaintainableClass(String docTypeName)
Retrieves the maintainable class instance that is configured in the maintenance document
entry associated with the given document type name
|
Class<?> |
getMaintenanceDataObjectClass(String docTypeName)
Retrieves the data object class configured for the maintenance entry
associated with the given document type name
|
protected MaintenanceDocumentEntry |
getMaintenanceDocumentEntry(Class dataObjectClass)
Retrieves the maintenance document entry associated with the given data object class
|
MaintenanceDocumentEntry |
getMaintenanceDocumentEntry(String docTypeName)
Retrieves the maintenance document entry that is associated with the given document type name
|
String |
getMaintenanceDocumentTypeName(Class dataObjectClass)
Retrieves the configured document type name for the maintenance document
entry associated with the given data object class
|
boolean |
getPreserveLockingKeysOnCopy(Class dataObjectClass)
Indicates whether the configured locking keys for a class should be cleared on a maintenance
copy action or values carried forward
|
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService) |
public DocumentDictionaryServiceImpl()
public String getLabel(String documentTypeName)
DocumentDictionaryServicegetLabel in interface DocumentDictionaryServicedocumentTypeName - - document type name for the document entry to retrieve label forDocumentDictionaryService.getLabel(java.lang.String)public String getMaintenanceDocumentTypeName(Class dataObjectClass)
DocumentDictionaryServicegetMaintenanceDocumentTypeName in interface DocumentDictionaryServicedataObjectClass - - data object class for maintenance entry to retrieveDocumentDictionaryService.getMaintenanceDocumentTypeName(java.lang.Class)public String getDescription(String documentTypeName)
DocumentDictionaryServicegetDescription in interface DocumentDictionaryServicedocumentTypeName - - document type name for the document entry to retrieve description forDocumentDictionaryService.getDescription(java.lang.String)public Collection getDefaultExistenceChecks(Class dataObjectClass)
DocumentDictionaryServicegetDefaultExistenceChecks in interface DocumentDictionaryServicedataObjectClass - - data object class for maintenance documentDocumentDictionaryService.getDefaultExistenceChecks(java.lang.Class)public Collection getDefaultExistenceChecks(Document document)
DocumentDictionaryServicegetDefaultExistenceChecks in interface DocumentDictionaryServicedocument - - document instance to pull document type for associated document entryDocumentDictionaryService.getDefaultExistenceChecks(java.lang.Class)public Collection getDefaultExistenceChecks(String docTypeName)
DocumentDictionaryServicegetDefaultExistenceChecks in interface DocumentDictionaryServicedocTypeName - - document type name for document entry to pull existence checks forDocumentDictionaryService.getDefaultExistenceChecks(java.lang.Class)public Class<?> getMaintenanceDataObjectClass(String docTypeName)
DocumentDictionaryServicegetMaintenanceDataObjectClass in interface DocumentDictionaryServicedocTypeName - - document type name associated with maintenance document entryDocumentDictionaryService.getMaintenanceDataObjectClass(java.lang.String)public Class<? extends Maintainable> getMaintainableClass(String docTypeName)
DocumentDictionaryServicegetMaintainableClass in interface DocumentDictionaryServicedocTypeName - - document type name to retrieve maintainable fororg.kuali.rice.krad.service.impl.DocumentDictionaryService#getMaintainableClasspublic Class<? extends BusinessRule> getBusinessRulesClass(Document document)
DocumentDictionaryServicegetBusinessRulesClass in interface DocumentDictionaryServicedocument - - document instance to retrieve rule class forDocumentDictionaryService.getBusinessRulesClass(org.kuali.rice.krad.document.Document)public Boolean getAllowsCopy(Document document)
DocumentDictionaryServicegetAllowsCopy in interface DocumentDictionaryServicedocument - - document instance to check copy flag forDocumentDictionaryService.getAllowsCopy(org.kuali.rice.krad.document.Document)public Boolean getAllowsNewOrCopy(String docTypeName)
DocumentDictionaryServicegetAllowsNewOrCopy in interface DocumentDictionaryServicedocTypeName - - document type name to retrieve maintenance document entry forDocumentDictionaryService.getAllowsNewOrCopy(java.lang.String)public DocumentEntry getDocumentEntry(String documentTypeName)
DocumentDictionaryServicegetDocumentEntry in interface DocumentDictionaryServicedocumentTypeName - - document type name to retrieve document entry forDocumentDictionaryService.getDocumentEntry(java.lang.String)public DocumentEntry getDocumentEntryByClass(Class<? extends Document> documentClass)
DocumentDictionaryServicegetDocumentEntryByClass in interface DocumentDictionaryServicedocumentClass - - document class to retrieve document entry forDocumentDictionaryService.getDocumentEntryByClass(java.lang.Class<? extends
org.kuali.rice.krad.document.Document>)public MaintenanceDocumentEntry getMaintenanceDocumentEntry(String docTypeName)
DocumentDictionaryServicegetMaintenanceDocumentEntry in interface DocumentDictionaryServicedocTypeName - - document type name to retrieve maintenance document entry forDocumentDictionaryService.getMaintenanceDocumentEntry(java.lang.String)public Class<?> getDocumentClassByName(String documentTypeName)
DocumentDictionaryServicegetDocumentClassByName in interface DocumentDictionaryServicedocumentTypeName - - document type name to retrieve class forDocumentDictionaryService.getDocumentClassByName(java.lang.String)public String getDocumentTypeByClass(Class<? extends Document> documentClass)
DocumentDictionaryServicegetDocumentTypeByClass in interface DocumentDictionaryServicedocumentClass - - class for document to retrieve the document type forDocumentDictionaryService.getDocumentTypeByClass(java.lang.Class<? extends org.kuali.rice.krad.document.Document>)public Boolean getAllowsRecordDeletion(Class dataObjectClass)
DocumentDictionaryServicegetAllowsRecordDeletion in interface DocumentDictionaryServicedataObjectClass - - class for the data object to checkDocumentDictionaryService.getAllowsRecordDeletion(java.lang.Class)public Boolean getAllowsRecordDeletion(MaintenanceDocument document)
DocumentDictionaryServicegetAllowsRecordDeletion in interface DocumentDictionaryServicedocument - - maintenance document instance to checkDocumentDictionaryService.getAllowsRecordDeletion(java.lang.Class)public List<String> getLockingKeys(String docTypeName)
DocumentDictionaryServicegetLockingKeys in interface DocumentDictionaryServicedocTypeName - - document type name to retrieve maintenance document entry forDocumentDictionaryService.getLockingKeys(java.lang.String)public boolean getPreserveLockingKeysOnCopy(Class dataObjectClass)
DocumentDictionaryServicegetPreserveLockingKeysOnCopy in interface DocumentDictionaryServicedataObjectClass - - class for the data object to checkDocumentDictionaryService.getPreserveLockingKeysOnCopy(java.lang.Class)public List<String> getClearValueOnCopyPropertyNames(Class dataObjectClass)
DocumentDictionaryServicegetClearValueOnCopyPropertyNames in interface DocumentDictionaryServicedataObjectClass - - class for the data object to checkDocumentDictionaryService.getClearValueOnCopyPropertyNames(java.lang.Class)public DocumentAuthorizer getDocumentAuthorizer(String documentType)
DocumentDictionaryServiceDocumentAuthorizer configured on the document entry with the given document type
namegetDocumentAuthorizer in interface DocumentDictionaryServicedocumentType - - document type name to retrieve document entry and associated authorizer forDocumentDictionaryService.getDocumentAuthorizer(java.lang.String)public DocumentAuthorizer getDocumentAuthorizer(Document document)
DocumentDictionaryServiceDocumentAuthorizer configured on the document entry for the document type associated
with the document instancegetDocumentAuthorizer in interface DocumentDictionaryServicedocument - - document instance to retrieve document entry and associated authorizer forDocumentDictionaryService.getDocumentAuthorizer(java.lang.String)public DocumentPresentationController getDocumentPresentationController(String documentType)
DocumentDictionaryServiceDocumentPresentationController configured on the document entry with the given document
type namegetDocumentPresentationController in interface DocumentDictionaryServicedocumentType - - document type name to retrieve document entry and associated presentation controller forDocumentDictionaryService.getDocumentPresentationController(java.lang.String)public DocumentPresentationController getDocumentPresentationController(Document document)
DocumentDictionaryServiceDocumentPresentationController configured on the document entry for the document type
associated with the document instancegetDocumentPresentationController in interface DocumentDictionaryServicedocument - - document instance to retrieve document entry and associated presentation controller forDocumentDictionaryService.getDocumentPresentationController(java.lang.String)protected MaintenanceDocumentEntry getMaintenanceDocumentEntry(Class dataObjectClass)
dataObjectClass - - data object class to retrieve maintenance document entry forprotected DocumentEntry getDocumentEntry(Document document)
document - - document instance to retrieve document entry forprotected DocumentType getDocumentType(String documentTypeName)
documentTypeName - - document type name to retrieve document type dtoprotected DataDictionary getDataDictionary()
protected DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.