org.kuali.rice.krad.bo
Class DocumentHeader

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.krad.bo.DocumentHeader
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, PersistableBusinessObject

@Entity
public class DocumentHeader
extends PersistableBusinessObjectBase

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:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
DocumentHeader()
          Constructor - creates empty instances of dependent objects
 
Method Summary
 String getDocumentDescription()
          Returns the description text for this document.
 String getDocumentNumber()
          Returns the documentNumber (also known as the docuementHeaderId).
 String getDocumentTemplateNumber()
          Returns the documentTemplateNumber.
 String getExplanation()
          Gets the explanation attribute.
 String getOrganizationDocumentNumber()
          Returns the organizationDocumentNumber.
 WorkflowDocument getWorkflowDocument()
          Returns an instance of the the WorkflowDocument associated with this document header.
 boolean hasWorkflowDocument()
          Returns whether this document header has a WorkflowDocument associated with it.
 void setDocumentDescription(String documentDescription)
          Sets the description text for this document.
 void setDocumentNumber(String documentNumber)
          Sets the documentNumber for this document.
 void setDocumentTemplateNumber(String documentTemplateNumber)
          Associates this document with a document template.
 void setExplanation(String explanation)
          Sets the explanation attribute value.
 void setOrganizationDocumentNumber(String organizationDocumentNumber)
          Sets the value of the organizationDocumentNumber
 void setWorkflowDocument(WorkflowDocument workflowDocument)
          Associates a WorkflowDocument with this document header.
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

DocumentHeader

public DocumentHeader()
Constructor - creates empty instances of dependent objects

Method Detail

getWorkflowDocument

public WorkflowDocument getWorkflowDocument()
Returns an instance of the the WorkflowDocument associated 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 a WorkflowDocument associated with it.

Returns:
true if the workflowDocument is not null

setWorkflowDocument

public void setWorkflowDocument(WorkflowDocument workflowDocument)
Associates a WorkflowDocument with this document header.

Parameters:
workflowDocument -

getDocumentNumber

public String getDocumentNumber()
Returns the documentNumber (also known as the docuementHeaderId). This is a unique identifier for the document.

Returns:
the documentNumber

setDocumentNumber

public void setDocumentNumber(String documentNumber)
Sets the documentNumber for this document. It serves as a unique identifier for the document.

Parameters:
documentNumber - the documentNumber to set

getDocumentDescription

public String getDocumentDescription()
Returns the description text for this document.

Returns:
the documentDescription

setDocumentDescription

public void setDocumentDescription(String documentDescription)
Sets the description text for this document.

Parameters:
documentDescription - the documentDescription to set

getOrganizationDocumentNumber

public String getOrganizationDocumentNumber()
Returns the organizationDocumentNumber. This identifier is one that may be used by a client to refer to the document.

Returns:
the organizationDocumentNumber

setOrganizationDocumentNumber

public void setOrganizationDocumentNumber(String organizationDocumentNumber)
Sets the value of the organizationDocumentNumber

Parameters:
organizationDocumentNumber - the organizationDocumentNumber to set

getDocumentTemplateNumber

public String getDocumentTemplateNumber()
Returns the documentTemplateNumber. It identifies the document template associated with this document.

Returns:
the documentTemplateNumber

setDocumentTemplateNumber

public void setDocumentTemplateNumber(String documentTemplateNumber)
Associates this document with a document template.

Parameters:
documentTemplateNumber - the id of the documentTemplate associated with this document

getExplanation

public String getExplanation()
Gets the explanation attribute. This text provides additional information about the purpose of the document.

Returns:
Returns the explanation.

setExplanation

public void setExplanation(String explanation)
Sets the explanation attribute value.

Parameters:
explanation - The explanation text string.


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.