Package org.kuali.rice.krad.bo
Class DocumentHeader
java.lang.Object
org.kuali.rice.krad.bo.DataObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
org.kuali.rice.krad.bo.DocumentHeader
- All Implemented Interfaces:
Serializable,GloballyUnique,Versioned
Business Object representing a document header. The document header contains metadata about a document.
This contains a reference to the template associated with the document.
This also provides the access to the underlying
WorkflowDocument associated with this document header.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected StringFields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
extension, newCollectionRecordFields inherited from class org.kuali.rice.krad.bo.DataObjectBase
objectId, versionNumber -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description text for this document.Returns the documentNumber (also known as the docuementHeaderId).Returns the documentTemplateNumber.Gets the explanation attribute.Returns the organizationDocumentNumber.Returns an instance of the theWorkflowDocumentassociated with this document header.booleanReturns whether this document header has aWorkflowDocumentassociated with it.voidsetDocumentDescription(String documentDescription) Sets the description text for this document.voidsetDocumentNumber(String documentNumber) Sets the documentNumber for this document.voidsetDocumentTemplateNumber(String documentTemplateNumber) Associates this document with a document template.voidsetExplanation(String explanation) Sets the explanation attribute value.voidsetOrganizationDocumentNumber(String organizationDocumentNumber) Sets the value of the organizationDocumentNumbervoidsetWorkflowDocument(WorkflowDocument workflowDocument) Associates aWorkflowDocumentwith this document header.Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, isNewCollectionRecord, linkEditableUserFields, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecordMethods inherited from class org.kuali.rice.krad.bo.DataObjectBase
generateAndSetObjectIdIfNeeded, getExtensionObject, getObjectId, getVersionNumber, prePersist, preUpdate, setExtensionObject, setObjectId, setVersionNumber, toString
-
Field Details
-
documentNumber
-
documentDescription
-
organizationDocumentNumber
-
documentTemplateNumber
-
explanation
-
-
Constructor Details
-
DocumentHeader
public DocumentHeader()Constructor - creates empty instances of dependent objects
-
-
Method Details
-
getWorkflowDocument
Returns an instance of the theWorkflowDocumentassociated with this document header. The workflowDocument provides the core client interface for interacting with the KEW workflow module.- Returns:
- workflowDocument
-
hasWorkflowDocument
public boolean hasWorkflowDocument()Returns whether this document header has aWorkflowDocumentassociated with it.- Returns:
- true if the workflowDocument is not null
-
setWorkflowDocument
Associates aWorkflowDocumentwith this document header.- Parameters:
workflowDocument-
-
getDocumentNumber
Returns the documentNumber (also known as the docuementHeaderId). This is a unique identifier for the document.- Returns:
- the documentNumber
-
setDocumentNumber
Sets the documentNumber for this document. It serves as a unique identifier for the document.- Parameters:
documentNumber- the documentNumber to set
-
getDocumentDescription
Returns the description text for this document.- Returns:
- the documentDescription
-
setDocumentDescription
Sets the description text for this document.- Parameters:
documentDescription- the documentDescription to set
-
getOrganizationDocumentNumber
Returns the organizationDocumentNumber. This identifier is one that may be used by a client to refer to the document.- Returns:
- the organizationDocumentNumber
-
setOrganizationDocumentNumber
Sets the value of the organizationDocumentNumber- Parameters:
organizationDocumentNumber- the organizationDocumentNumber to set
-
getDocumentTemplateNumber
Returns the documentTemplateNumber. It identifies the document template associated with this document.- Returns:
- the documentTemplateNumber
-
setDocumentTemplateNumber
Associates this document with a document template.- Parameters:
documentTemplateNumber- the id of the documentTemplate associated with this document
-
getExplanation
Gets the explanation attribute. This text provides additional information about the purpose of the document.- Returns:
- Returns the explanation.
-
setExplanation
Sets the explanation attribute value.- Parameters:
explanation- The explanation text string.
-