Package org.kuali.rice.kns.service
Interface MaintenanceDocumentDictionaryService
Deprecated.
Only used in KNS classes, use KRAD.
Defines methods that a MaintenanceDocumentDictionary Service must provide. Defines 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(MaintenanceDocument document) Deprecated.Returns whether or not this document's data dictionary file has flagged it to allow document copiesgetAllowsNewOrCopy(String docTypeName) Deprecated.Returns whether or not this document's data dictionary file has flagged it to allow maintenance new or copy actionsgetAllowsRecordDeletion(Class dataObjectClass) Deprecated.Indicates whether the given data object class is configured to allow record deletionsgetAllowsRecordDeletion(MaintenanceDocument document) Deprecated.Indicates whether the given maintenance document is configured to allow record deletionsgetCollectionBusinessObjectClass(String docTypeName, String collectionName) Deprecated.getCollectionFieldDefaultValue(String docTypeName, String collectionName, String fieldName) Deprecated.getDataObjectClass(String docTypeName) Deprecated.The instance of the business object class associated with this document type namegetDefaultExistenceChecks(Class dataObjectClass) Deprecated.The collection of ReferenceDefinition objects defined as DefaultExistenceChecks for the MaintenanceDocumentgetDefaultExistenceChecks(String docTypeName) Deprecated.The collection of ReferenceDefinition objects defined as DefaultExistenceChecks for the MaintenanceDocumentgetDocumentTypeName(Class dataObjectClass) Deprecated.The document type name for a class instancegetFieldDefaultValue(Class boClass, String fieldName) Deprecated.getFieldDefaultValue(String docTypeName, String fieldName) Deprecated.getLockingKeys(String docTypeName) Deprecated.A List of field names used as locking keysgetMaintainableClass(String docTypeName) Deprecated.Retrieves an instance of the class that represents the maintenance document.getMaintainableCollection(String docTypeName, String collectionName) Deprecated.getMaintainableCollections(String docTypeName) Deprecated.getMaintainableCollections(MaintainableCollectionDefinition parentCollection) Deprecated.getMaintainableField(String docTypeName, String fieldName) Deprecated.getMaintainableItem(String docTypeName, String itemName) Deprecated.getMaintainableSections(String docTypeName) Deprecated.getMaintenanceDescription(String docTypeName) Deprecated.Retrieves the description of the maintenance documentgetMaintenanceDocumentEntry(String docTypeName) Deprecated.getMaintenanceLabel(String docTypeName) Deprecated.Retrieves the label for a maintenance document typebooleangetPreserveLockingKeysOnCopy(Class dataObjectClass) Deprecated.Indicates whether the configured locking keys for a class should be cleared on a maintenance copy action or values carried forwardtranslateCodes(Class businessObjectClass) Deprecated.voidvalidateMaintainableCollectionsAddLineRequiredFields(MaintenanceDocument document, PersistableBusinessObject businessObject, String collectionName) Deprecated.voidDeprecated.validates the collections of the maintenance document checking to see if duplicate entries in the collection existvoidDeprecated.
-
Method Details
-
getMaintenanceLabel
Deprecated.Retrieves the label for a maintenance document type- Parameters:
docTypeName- - doc type to retrieve label for- Returns:
- String doc type label
-
getDocumentTypeName
Deprecated.The document type name for a class instance- Parameters:
dataObjectClass-- Returns:
- The document type name for the class as a String.
-
getMaintenanceDescription
Deprecated.Retrieves the description of the maintenance document- Parameters:
docTypeName-- Returns:
- The description as a String.
-
getDefaultExistenceChecks
Deprecated.The collection of ReferenceDefinition objects defined as DefaultExistenceChecks for the MaintenanceDocument- Parameters:
dataObjectClass-- Returns:
- A Collection of ReferenceDefinitions
-
getDefaultExistenceChecks
Deprecated.The collection of ReferenceDefinition objects defined as DefaultExistenceChecks for the MaintenanceDocument- Parameters:
docTypeName-- Returns:
- A Collection of ReferenceDefinitions
-
getLockingKeys
Deprecated.A List of field names used as locking keys- Parameters:
docTypeName-- Returns:
- A List of strings
-
getDataObjectClass
Deprecated.The instance of the business object class associated with this document type name- Parameters:
docTypeName-- Returns:
- The class instance corresponding to the document type name.
-
getAllowsCopy
Deprecated.Returns whether or not this document's data dictionary file has flagged it to allow document copies- Parameters:
document- - maintenance document instance to check copy flag for- Returns:
- boolean true if copies are allowed, false otherwise
-
getAllowsNewOrCopy
Deprecated.Returns whether or not this document's data dictionary file has flagged it to allow maintenance new or copy actions- Parameters:
document- - maintenance document instance to check new or copy flag for- Returns:
- boolean true if new or copy maintenance actions are allowed
-
getMaintenanceDocumentEntry
Deprecated. -
getPreserveLockingKeysOnCopy
Deprecated.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
-
getAllowsRecordDeletion
Deprecated.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
Deprecated.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
-
getMaintainableClass
Deprecated.Retrieves an instance of the class that represents the maintenance document. This is done by- Parameters:
docTypeName-- Returns:
- A class instance.
-
getMaintainableSections
Deprecated.A List of maintainable section object instances corresponding to the document type name.- Parameters:
docTypeName-- Returns:
- A List of maintable section objects.
-
getFieldDefaultValue
Deprecated.This method returns the defaultValue as it would appear in the UI on a maintenance document. If both a defaultValue and a defaultValueFinderClass is present in the MaintainableFieldDefinition instance, then the defaultValue will be preferentially returned. If only one is present, then that will be returned. Note that if a defaultValueFinderClass value is present, then this method will attempt to create a new instance of the specified class. If this attempt to generate a new instance fails, the error will be suppressed, and an null result will be returned.- Parameters:
boClass- - the class of BO being maintainedfieldName- - the fieldName of the attribute for which the default is desired- Returns:
- the default if one is available, null otherwise
-
getFieldDefaultValue
Deprecated.This method returns the defaultValue as it would appear in the UI on a maintenance document. If both a defaultValue and a defaultValueFinderClass is present in the MaintainableFieldDefinition instance, then the defaultValue will be preferentially returned. If only one is present, then that will be returned. Note that if a defaultValueFinderClass value is present, then this method will attempt to create a new instance of the specified class. If this attempt to generate a new instance fails, the error will be suppressed, and an null result will be returned.- Parameters:
docTypeName- - the document type name of the maintainablefieldName- - the fieldName of the attribute for which the default is desired- Returns:
- the default if one is available, null otherwise
-
getCollectionFieldDefaultValue
@Deprecated String getCollectionFieldDefaultValue(String docTypeName, String collectionName, String fieldName) Deprecated.This method returns the defaultValue as it would appear in the UI on a maintenance document for a collection. If both a defaultValue and a defaultValueFinderClass is present in the MaintainableFieldDefinition instance, then the defaultValue will be preferentially returned. If only one is present, then that will be returned. Note that if a defaultValueFinderClass value is present, then this method will attempt to create a new instance of the specified class. If this attempt to generate a new instance fails, the error will be suppressed, and an null result will be returned.- Parameters:
docTypeName- - the document type name of the maintainablecollectionName- - the name attribute of the collection to which the field belongsfieldName- - the fieldName of the attribute for which the default is desired- Returns:
- the default if one is available, null otherwise
-
getCollectionBusinessObjectClass
Deprecated.Returns the business object used to store the values for the given collection.- Parameters:
docTypeName-collectionName-- Returns:
-
getMaintainableItem
Deprecated.Returns the definition for the maintainable item identified by "itemName".- Parameters:
docTypeName-itemName-- Returns:
- The item or null if the item does not exist.
-
getMaintainableField
Deprecated.Returns the definition for the maintainable field identified by "fieldName".- Parameters:
docTypeName-fieldName-- Returns:
- The field or null if the item does not exist or is not a field.
-
getMaintainableCollection
@Deprecated MaintainableCollectionDefinition getMaintainableCollection(String docTypeName, String collectionName) Deprecated.Returns the definition for the maintainable collection identified by "collectionName".- Parameters:
docTypeName-collectionName-- Returns:
- The collection or null if the item does not exist or is not a collection.
-
getMaintainableCollections
Deprecated.Gets a list of all top-level maintainable collections on the document- Parameters:
docTypeName-- Returns:
-
getMaintainableCollections
@Deprecated List<MaintainableCollectionDefinition> getMaintainableCollections(MaintainableCollectionDefinition parentCollection) Deprecated.Returns a list of all collections within the given collection- Parameters:
parentCollection-- Returns:
-
validateMaintenanceRequiredFields
Deprecated.Validates the maintenance document contains values for the fields declared as required in the maintenance document data dictionary file.- Parameters:
document-
-
validateMaintainableCollectionsForDuplicateEntries
Deprecated.validates the collections of the maintenance document checking to see if duplicate entries in the collection exist- Parameters:
document-
-
validateMaintainableCollectionsAddLineRequiredFields
@Deprecated void validateMaintainableCollectionsAddLineRequiredFields(MaintenanceDocument document, PersistableBusinessObject businessObject, String collectionName) Deprecated. -
translateCodes
Deprecated.- Parameters:
businessObjectClass- - business object class for maintenance definition- Returns:
- Boolean indicating whether translating of codes is configured to true in maintenance definition
-