Class DocumentEntry
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.DataDictionaryEntryBase
org.kuali.rice.krad.datadictionary.DocumentEntry
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DataDictionaryEntry,DictionaryBean
- Direct Known Subclasses:
MaintenanceDocumentEntry,TransactionalDocumentEntry
A single Document entry in the DataDictionary, which contains information relating to the display, validation, and
general maintenance of a Document (transactional or maintenance) and its attributes
The setters do validation to facilitate generating errors during the parsing process.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected Class<? extends org.kuali.rice.krad.keyvalues.KeyValuesFinder> protected Class<? extends BusinessRule> protected Map<String, ReferenceDefinition> protected List<ReferenceDefinition> protected booleanprotected Class<? extends DocumentAuthorizer> protected Class<? extends DocumentPresentationController> protected Stringprotected booleanprotected booleanprotected booleanprotected WorkflowAttributesprotected WorkflowPropertiesFields inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryEntryBase
attributeMap, attributes, collectionMap, collections, complexAttributeMap, complexAttributes, dataObjectMetadata, EXCLUDED_PROPERTY_NAMES, relationshipMap, relationships, stateMappingFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteValidation(ValidationTrace tracer) Directly validate simple fields, call completeValidation on Definition fields.voidPerform any needed post-processing of the bean properties.booleanbooleanIndicates that a document screen allows notes with attachmentsbooleanIndicates whether to render the AdHoc FYI recipient box and Send FYI buttonClass<? extends org.kuali.rice.krad.keyvalues.KeyValuesFinder> The optionalDocumentsuperclass associated with the documentClass<? extends BusinessRule> TheBusinessRulethat will be used to execute business rules for the documentTheListof all defaultExistenceCheck reference fieldNames associated with this MaintenanceDocumentThe defaultExistenceChecks element contains a list of reference object names which are required to exist when maintaining a BObooleanIndicates whether the "Notes and Attachments" tab will render a column for a note topicClass<? extends DocumentAuthorizer> Full class name for theDocumentAuthorizerthat will authorize actions for this documentTheDocumentsubclass associated with the documentClass<? extends DocumentPresentationController> Full class name for theDocumentPresentationControllerthat will be invoked to implement presentation logic for the documentThe name of the document in the workflow systemReturns the full class name of the underlying object.booleanDataObjectWrapper method for contained usePessimisticLockingbooleanDataObjectWrapper method for contained useWorkflowPessimisticLockingbooleanIndicates that the document data should be encrypted when persistedvoidsetAllowsCopy(boolean allowsCopy) The allowsCopy element contains a true or false value.voidsetAllowsNoteAttachments(boolean allowsNoteAttachments) Setter for flag indicating that attacments can be added to notesvoidsetAllowsNoteFYI(boolean allowsNoteFYI) Setter for the flag indicating whether to render the AdHoc FYI recipient box and Send FYI buttonvoidsetAttachmentTypesValuesFinderClass(Class<? extends org.kuali.rice.krad.keyvalues.KeyValuesFinder> attachmentTypesValuesFinderClass) The attachmentTypesValuesFinderClass specifies the name of a values finder class.voidsetBaseDocumentClass(Class<? extends Document> baseDocumentClass) The optional baseDocumentClass element is the name of the java base class associated with the document.voidsetBusinessRulesClass(Class<? extends BusinessRule> businessRulesClass) Setter for theBusinessRuleto execute rules for the documentvoidsetDefaultExistenceChecks(List<ReferenceDefinition> defaultExistenceChecks) Setter for the list of all defaultExistenceCheckReferenceDefinitionassociated with thisMaintenanceDocumentvoidsetDisplayTopicFieldInNotes(boolean displayTopicFieldInNotes) Setter for the flag indicating whether the note topic field will be rendered in the notes tabvoidsetDocumentAuthorizerClass(Class<? extends DocumentAuthorizer> documentAuthorizerClass) Setter for the document authorizer class namevoidsetDocumentClass(Class<? extends Document> documentClass) Setter for document class associated with the documentvoidsetDocumentPresentationControllerClass(Class<? extends DocumentPresentationController> documentPresentationControllerClass) Setter for the document presentation controller class namevoidsetDocumentTypeName(String documentTypeName) Setter for the name of the document as defined in the workflow systemvoidsetEncryptDocumentDataInPersistentSessionStorage(boolean encryptDocumentDataInPersistentSessionStorage) Setter for flag indicating that the document data should be encrypted when persistedvoidsetUsePessimisticLocking(boolean usePessimisticLocking) voidsetUseWorkflowPessimisticLocking(boolean useWorkflowPessimisticLocking) voidsetWorkflowAttributes(WorkflowAttributes workflowAttributes) voidsetWorkflowProperties(WorkflowProperties workflowProperties) This element is used to define a set of workflowPropertyGroups, which are used to specify which document properties should be serialized during the document serialization process.protected voidMethods inherited from class org.kuali.rice.krad.datadictionary.DataDictionaryEntryBase
completeValidation, embedMetadata, getAttributeDefinition, getAttributeNames, getAttributes, getCollectionDefinition, getCollectionNames, getCollections, getComplexAttributes, getDataObjectMetadata, getRelationshipDefinition, getRelationshipMap, getRelationshipNames, getRelationships, getStateMapping, hasEmbeddedDataObjectMetadata, injectMetadataIntoAttributes, injectMetadataIntoCollections, injectMetadataIntoRelationships, setAttributes, setCollections, setComplexAttributes, setDataObjectMetadata, setRelationshipMap, setRelationships, setStateMappingMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
getComponentCode, getNamespaceCode
-
Field Details
-
documentTypeName
-
documentClass
-
baseDocumentClass
-
businessRulesClass
-
allowsNoteAttachments
protected boolean allowsNoteAttachments -
allowsNoteFYI
protected boolean allowsNoteFYI -
attachmentTypesValuesFinderClass
protected Class<? extends org.kuali.rice.krad.keyvalues.KeyValuesFinder> attachmentTypesValuesFinderClass -
displayTopicFieldInNotes
protected boolean displayTopicFieldInNotes -
usePessimisticLocking
protected boolean usePessimisticLocking -
useWorkflowPessimisticLocking
protected boolean useWorkflowPessimisticLocking -
encryptDocumentDataInPersistentSessionStorage
protected boolean encryptDocumentDataInPersistentSessionStorage -
allowsCopy
protected boolean allowsCopy -
workflowProperties
-
workflowAttributes
-
documentAuthorizerClass
-
documentPresentationControllerClass
-
defaultExistenceChecks
-
defaultExistenceCheckMap
-
-
Constructor Details
-
DocumentEntry
public DocumentEntry()
-
-
Method Details
-
getJstlKey
- Returns:
- String used as a globally-unique key for this entry's jstl-exported version
- See Also:
-
setDocumentClass
Setter for document class associated with the document- Parameters:
documentClass- - the document class associated with the document
-
getDocumentClass
TheDocumentsubclass associated with the document- Returns:
- Classinvalid input: '<'? extends Document>
-
setBaseDocumentClass
The optional baseDocumentClass element is the name of the java base class associated with the document. This gives the data dictionary the ability to index by the base class in addition to the current class.- Parameters:
baseDocumentClass- - the superclass associated with the document
-
getBaseDocumentClass
The optionalDocumentsuperclass associated with the documentThis gives the data dictionary the ability to index by the superclass in addition to the current class.
- Returns:
- Classinvalid input: '<'? extends Document>
-
setBusinessRulesClass
Setter for theBusinessRuleto execute rules for the document -
getBusinessRulesClass
TheBusinessRulethat will be used to execute business rules for the document- Returns:
- BusinessRule
-
setDocumentTypeName
Setter for the name of the document as defined in the workflow system- Parameters:
documentTypeName- - name of the document in workflow
-
getDocumentTypeName
The name of the document in the workflow system- Returns:
- String
-
dataDictionaryPostProcessing
public void dataDictionaryPostProcessing()Description copied from interface:DictionaryBeanPerform any needed post-processing of the bean properties. This will be called starting at the parent data object entry or document entry class and recursed down though all other DictionaryBean objects contained within.- Specified by:
dataDictionaryPostProcessingin interfaceDictionaryBean- Overrides:
dataDictionaryPostProcessingin classDataDictionaryEntryBase
-
completeValidation
Description copied from class:DataDictionaryEntryBaseDirectly validate simple fields, call completeValidation on Definition fields.- Specified by:
completeValidationin interfaceDataDictionaryEntry- Overrides:
completeValidationin classDataDictionaryEntryBase- Parameters:
tracer- - Record of object's location- See Also:
-
validateDefaultExistenceChecks
-
getFullClassName
Description copied from interface:DataDictionaryEntryReturns the full class name of the underlying object.- See Also:
-
getEntryClass
- Specified by:
getEntryClassin classDataDictionaryEntryBase- See Also:
-
getDisplayTopicFieldInNotes
public boolean getDisplayTopicFieldInNotes()Indicates whether the "Notes and Attachments" tab will render a column for a note topic- Returns:
- boolean
-
setDisplayTopicFieldInNotes
public void setDisplayTopicFieldInNotes(boolean displayTopicFieldInNotes) Setter for the flag indicating whether the note topic field will be rendered in the notes tab- Parameters:
displayTopicFieldInNotes-
-
getUsePessimisticLocking
public boolean getUsePessimisticLocking()DataObjectWrapper method for contained usePessimisticLocking- Returns:
- usePessimisticLocking boolean
-
setUsePessimisticLocking
public void setUsePessimisticLocking(boolean usePessimisticLocking) - Parameters:
usePessimisticLocking-
-
getUseWorkflowPessimisticLocking
public boolean getUseWorkflowPessimisticLocking()DataObjectWrapper method for contained useWorkflowPessimisticLocking- Returns:
- useWorkflowPessimisticLocking boolean
-
setUseWorkflowPessimisticLocking
public void setUseWorkflowPessimisticLocking(boolean useWorkflowPessimisticLocking) - Parameters:
useWorkflowPessimisticLocking-
-
setAttachmentTypesValuesFinderClass
public void setAttachmentTypesValuesFinderClass(Class<? extends org.kuali.rice.krad.keyvalues.KeyValuesFinder> attachmentTypesValuesFinderClass) The attachmentTypesValuesFinderClass specifies the name of a values finder class. This is used to determine the set of file types that are allowed to be attached to the document. -
getAttachmentTypesValuesFinderClass
public Class<? extends org.kuali.rice.krad.keyvalues.KeyValuesFinder> getAttachmentTypesValuesFinderClass()- See Also:
-
setAllowsCopy
public void setAllowsCopy(boolean allowsCopy) The allowsCopy element contains a true or false value. If true, then a user is allowed to make a copy of the record using the maintenance screen. -
getAllowsCopy
public boolean getAllowsCopy() -
getAllowsNoteAttachments
public boolean getAllowsNoteAttachments()Indicates that a document screen allows notes with attachmentsThe add attachments section on notes will not be rendered when this is set to false.
- Returns:
- boolean
-
setAllowsNoteAttachments
public void setAllowsNoteAttachments(boolean allowsNoteAttachments) Setter for flag indicating that attacments can be added to notes- Parameters:
allowsNoteAttachments-
-
getAllowsNoteFYI
public boolean getAllowsNoteFYI()Indicates whether to render the AdHoc FYI recipient box and Send FYI button- Returns:
- boolean
-
setAllowsNoteFYI
public void setAllowsNoteFYI(boolean allowsNoteFYI) Setter for the flag indicating whether to render the AdHoc FYI recipient box and Send FYI button- Parameters:
allowsNoteFYI-
-
getWorkflowProperties
-
setWorkflowProperties
This element is used to define a set of workflowPropertyGroups, which are used to specify which document properties should be serialized during the document serialization process. -
getWorkflowAttributes
-
setWorkflowAttributes
-
getDocumentAuthorizerClass
Full class name for theDocumentAuthorizerthat will authorize actions for this document- Returns:
- class name for document authorizer
-
setDocumentAuthorizerClass
Setter for the document authorizer class name- Parameters:
documentAuthorizerClass-
-
getDocumentPresentationControllerClass
Full class name for theDocumentPresentationControllerthat will be invoked to implement presentation logic for the document- Returns:
- class name for document presentation controller
-
setDocumentPresentationControllerClass
public void setDocumentPresentationControllerClass(Class<? extends DocumentPresentationController> documentPresentationControllerClass) Setter for the document presentation controller class name- Parameters:
documentPresentationControllerClass-
-
getDefaultExistenceChecks
The defaultExistenceChecks element contains a list of reference object names which are required to exist when maintaining a BOOptionally, the reference objects can be required to be active. The list keeps the order in which they were added. JSTL: defaultExistenceChecks is a Map of Reference elements, whose entries are keyed by attributeName.
- Returns:
- list of reference definitions
-
setDefaultExistenceChecks
Setter for the list of all defaultExistenceCheckReferenceDefinitionassociated with thisMaintenanceDocument- Parameters:
defaultExistenceChecks-
-
getDefaultExistenceCheckFieldNames
TheListof all defaultExistenceCheck reference fieldNames associated with this MaintenanceDocumentThe List keeps the order the items were added in.
- Returns:
- List
-
isEncryptDocumentDataInPersistentSessionStorage
public boolean isEncryptDocumentDataInPersistentSessionStorage()Indicates that the document data should be encrypted when persisted- Returns:
- boolean
-
setEncryptDocumentDataInPersistentSessionStorage
public void setEncryptDocumentDataInPersistentSessionStorage(boolean encryptDocumentDataInPersistentSessionStorage) Setter for flag indicating that the document data should be encrypted when persisted- Parameters:
encryptDocumentDataInPersistentSessionStorage-
-