|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Document
This is the Document interface. All entities that are regarded as "eDocs" in the system, including Maintenance documents and Transaction Processing documents should implement this interface as it defines methods that are necessary to interact with the underlying frameworks and components (i.e. notes, attachments, workflow, etc).
Method Summary | |
---|---|
void |
addNote(Note note)
Adds the given Note to the document's list of Notes. |
void |
addPessimisticLock(PessimisticLock lock)
This method adds a new PessimisticLock to the document
NOTE: LOCKS ADDED VIA THIS METHOD WILL NOT BE SAVED WITH THE DOCUMENT |
void |
afterWorkflowEngineProcess(boolean successfullyProcessed)
This method will be called after the Workflow engine has completely finished processing a document. |
void |
beforeWorkflowEngineProcess()
This method will be called before the Workflow engine has begun processing a document. |
void |
doActionTaken(ActionTakenEventDTO event)
method to integrate with workflow where we will be able to perform logic for an action taken being performed on a document |
void |
doRouteLevelChange(DocumentRouteLevelChangeDTO levelChangeEvent)
method to integrate with workflow, where we will actually handle the transitions of levels for documents |
void |
doRouteStatusChange(DocumentRouteStatusChangeDTO statusChangeEvent)
Handle the doRouteStatusChange event from the post processor |
List<KualiDocumentEvent> |
generateSaveEvents()
Generate any necessary events required during the save event generation |
List<AdHocRoutePerson> |
getAdHocRoutePersons()
getter method to get the list of ad hoc route persons associated with a document at a point in time, this list is only valid for a given users version of a document as this state is only persisted in workflow itself when someone takes an action on a document |
List<AdHocRouteWorkgroup> |
getAdHocRouteWorkgroups()
getter method to get the list of ad hoc route workgroups associated with a document at a point in time, this list is only valid for a given users version of a document as this state is only persisted in workflow itself when someone takes an action on a document |
boolean |
getAllowsCopy()
This method returns whether or not this document can be copied. |
String |
getBasePathToDocumentDuringSerialization()
Returns an evaluator object that determines whether a given property relative to the root object ( wrapDocumentWithMetadataForXmlSerialization()
is serializable during the document serialization process. |
String |
getCustomLockDescriptor(Person user)
Generates a custom lock descriptor for pessimistic locking. |
DocumentHeader |
getDocumentHeader()
This retrieves the standard DocumentHeader object, which contains standard meta-data about a document. |
String |
getDocumentNumber()
All documents have a document header id. |
PropertySerializabilityEvaluator |
getDocumentPropertySerizabilityEvaluator()
Returns an evaluator object that determines whether a given property relative to the root object ( wrapDocumentWithMetadataForXmlSerialization()
is serializable during the document serialization process. |
String |
getDocumentTitle()
Getter method to get the document title as it will appear in and be searchable in workflow. |
List<String> |
getLockClearningMethodNames()
This is a method that is used by Kuali Pessimistic Locking to get the names (method to call values) of the KualiDocumentActionBase methods that should release locks |
Note |
getNote(int index)
Retrieves the note at the given index. |
List<Note> |
getNotes()
Returns a mutable list of all notes on the document. |
PersistableBusinessObject |
getNoteTarget()
Return the target PersistableBusinessObject that notes associated with this document should be attached to. |
NoteType |
getNoteType()
Returns the note type which should be used for notes associated with this document. |
List<PessimisticLock> |
getPessimisticLocks()
This method gets a list of the PessimisticLock objects associated with this document |
List<Long> |
getWorkflowEngineDocumentIdsToLock()
This method will be called before the Workflow engine has begun processing a document. |
String |
getXmlForRouteReport()
This method is used to get the xml that should be used in a Route Report. |
void |
populateDocumentForRouting()
This is the method to integrate with workflow, where we will actually populate the workflow defined data structure(s) so that workflow can routed based on this data. |
void |
postProcessSave(KualiDocumentEvent event)
Do any work on the document after the save. |
void |
prepareForSave()
This method provides a hook that will be called before the document is saved. |
void |
prepareForSave(KualiDocumentEvent event)
Do any work on the document that requires the KualiDocumentEvent before the save. |
void |
processAfterRetrieve()
This method provides a hook that will be called after a document is retrieved, but before it is returned from the DocumentService. |
void |
refreshPessimisticLocks()
This method updates the list of PessimisticLock objects on the document if changes could
have been made |
boolean |
removeNote(Note note)
Removes the given note from the document's list of notes. |
String |
serializeDocumentToXml()
This is a method where we can get the xml of a document that the workflow system will use to base it's routing and search attributes on. |
void |
setAdHocRoutePersons(List<AdHocRoutePerson> adHocRoutePersons)
setter method to set the list of ad hoc route persons associated with a document at a point in time, this list is only valid for a given users version of a document as this state is only persisted in workflow itself when someone takes an action on a document |
void |
setAdHocRouteWorkgroups(List<AdHocRouteWorkgroup> adHocRouteWorkgroups)
setter method to set the list of ad hoc route workgroups associated with a document at a point in time, this list is only valid for a given users version of a document as this state is only persisted in workflow itself when someone takes an action on a document |
void |
setDocumentHeader(DocumentHeader documentHeader)
Sets the associated DocumentHeader for this document. |
void |
setDocumentNumber(String documentHeaderId)
setter for document header id |
void |
setNotes(List<Note> notes)
Sets the document's list of notes to the given list. |
boolean |
useCustomLockDescriptors()
This method returns whether or not this document supports custom lock descriptors for pessimistic locking. |
void |
validateBusinessRules(KualiDocumentEvent event)
Sends document off to the rules engine to verify business rules. |
Object |
wrapDocumentWithMetadataForXmlSerialization()
This method will return the root object to be serialized for workflow routing. |
Methods inherited from interface org.kuali.rice.krad.bo.PersistableBusinessObject |
---|
buildListOfDeletionAwareLists, getExtension, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber |
Methods inherited from interface org.kuali.rice.krad.bo.BusinessObject |
---|
refresh |
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic |
---|
toString |
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned |
---|
getVersionNumber |
Methods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique |
---|
getObjectId |
Method Detail |
---|
DocumentHeader getDocumentHeader()
DocumentHeader
object, which contains standard meta-data about a document.
void setDocumentHeader(DocumentHeader documentHeader)
DocumentHeader
for this document.
documentHeader
- String getDocumentNumber()
void setDocumentNumber(String documentHeaderId)
documentHeaderId
- void populateDocumentForRouting()
String serializeDocumentToXml()
String getXmlForRouteReport()
void doRouteLevelChange(DocumentRouteLevelChangeDTO levelChangeEvent)
void doActionTaken(ActionTakenEventDTO event)
void afterWorkflowEngineProcess(boolean successfullyProcessed)
successfullyProcessed
- - true if the document was processed successfully, false otherwisevoid beforeWorkflowEngineProcess()
List<Long> getWorkflowEngineDocumentIdsToLock()
String getDocumentTitle()
List<AdHocRoutePerson> getAdHocRoutePersons()
List<AdHocRouteWorkgroup> getAdHocRouteWorkgroups()
void setAdHocRoutePersons(List<AdHocRoutePerson> adHocRoutePersons)
adHocRoutePersons
- void setAdHocRouteWorkgroups(List<AdHocRouteWorkgroup> adHocRouteWorkgroups)
adHocRouteWorkgroups
- void prepareForSave()
void validateBusinessRules(KualiDocumentEvent event)
document
- - document to validateevent
- - indicates which document event was requested
ValidationException
- - containing the MessageMap from the validation session.void prepareForSave(KualiDocumentEvent event)
event
- - indicates which document event was requestedvoid postProcessSave(KualiDocumentEvent event)
event
- - indicates which document event was requestedvoid processAfterRetrieve()
boolean getAllowsCopy()
List<KualiDocumentEvent> generateSaveEvents()
void doRouteStatusChange(DocumentRouteStatusChangeDTO statusChangeEvent)
NoteType getNoteType()
PersistableBusinessObject getNoteTarget()
NoteType.BUSINESS_OBJECT
.
In these cases it's the responsibility for implementers of the Document interface to handle storing transient
copies of the document notes (in XML or otherwise) until the underlying note target has been persisted and can be attached
to the document's notes via it's object id.
void addNote(Note note)
note
- the Note to add, must be non-nullList<Note> getNotes()
void setNotes(List<Note> notes)
notes
- the list of notes to set on the document, must be non-nullNote getNote(int index)
index
- the zero-based index of the note to retrieve
IndexOutOfBoundsException
- if the index is out of rangeboolean removeNote(Note note)
note
- the note to remove from the document's list of notes, must be non-null
List<PessimisticLock> getPessimisticLocks()
PessimisticLock
objects associated with this document
void refreshPessimisticLocks()
PessimisticLock
objects on the document if changes could
have been made
void addPessimisticLock(PessimisticLock lock)
PessimisticLock
to the document
NOTE: LOCKS ADDED VIA THIS METHOD WILL NOT BE SAVED WITH THE DOCUMENT
lock
- - the lock to add to the documentList<String> getLockClearningMethodNames()
KualiDocumentActionBase
methods that should release locks
String getBasePathToDocumentDuringSerialization()
wrapDocumentWithMetadataForXmlSerialization()
is serializable during the document serialization process.
DocumentSerializerService
,
wrapDocumentWithMetadataForXmlSerialization()
PropertySerializabilityEvaluator getDocumentPropertySerizabilityEvaluator()
wrapDocumentWithMetadataForXmlSerialization()
is serializable during the document serialization process.
DocumentSerializerService
,
wrapDocumentWithMetadataForXmlSerialization()
Object wrapDocumentWithMetadataForXmlSerialization()
KualiDocumentXmlMaterializer
boolean useCustomLockDescriptors()
#getCustomLockDescriptor(Map, Person)
String getCustomLockDescriptor(Person user)
useCustomLockDescriptors()
returns true.
user
- The user trying to establish the lock.
useCustomLockDescriptors()
,
PessimisticLockService
,
PessimisticLockServiceImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |