Package org.kuali.rice.krad.document
Class DocumentBase
java.lang.Object
org.kuali.rice.krad.bo.DataObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
org.kuali.rice.krad.document.DocumentBase
- All Implemented Interfaces:
Serializable,Cloneable,org.eclipse.persistence.descriptors.changetracking.ChangeTracker,org.eclipse.persistence.internal.descriptors.PersistenceEntity,org.eclipse.persistence.internal.descriptors.PersistenceObject,org.eclipse.persistence.internal.weaving.PersistenceWeaved,org.eclipse.persistence.internal.weaving.PersistenceWeavedChangeTracking,org.eclipse.persistence.internal.weaving.PersistenceWeavedFetchGroups,org.eclipse.persistence.internal.weaving.PersistenceWeavedRest,org.eclipse.persistence.queries.FetchGroupTracker,org.kuali.rice.core.api.mo.common.GloballyUnique,org.kuali.rice.core.api.mo.common.Versioned,Document
- Direct Known Subclasses:
MaintenanceDocumentBase,TransactionalDocumentBase
@MappedSuperclass
public abstract class DocumentBase
extends org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
implements Document
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<org.kuali.rice.krad.bo.AdHocRoutePerson> protected List<org.kuali.rice.krad.bo.AdHocRouteWorkgroup> protected org.kuali.rice.krad.bo.DocumentHeaderprotected Stringprotected List<org.kuali.rice.krad.bo.Note> protected List<org.kuali.rice.krad.document.authorization.PessimisticLock> Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
extension, newCollectionRecordFields inherited from class org.kuali.rice.krad.bo.DataObjectBase
_persistence_cacheKey, _persistence_fetchGroup, _persistence_href, _persistence_links, _persistence_listener, _persistence_primaryKey, _persistence_relationshipInfo, _persistence_session, _persistence_shouldRefreshFetchGroup, objectId, versionNumber -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCopyErrorDocumentNote(String noteText) Adds a note to the document indicating it was created by a copy or error correction.voidaddNote(org.kuali.rice.krad.bo.Note note) Adds the given Note to the document's list of Notes.voidaddPessimisticLock(org.kuali.rice.krad.document.authorization.PessimisticLock lock) This method adds a newPessimisticLockto the document NOTE: LOCKS ADDED VIA THIS METHOD WILL NOT BE SAVED WITH THE DOCUMENTvoidafterActionTaken(org.kuali.rice.kew.api.action.ActionType performed, org.kuali.rice.kew.framework.postprocessor.ActionTakenEvent event) method to integrate with workflow where we will be able to perform logic after an action taken being performed on a documentvoidafterWorkflowEngineProcess(boolean successfullyProcessed) The the default implementation for afterWorkflowEngineProcess does nothing, but is meant to provide a hook for documents to implement for other needs.voidThe the default implementation for beforeWorkflowEngineProcess does nothing, but is meant to provide a hook for documents to implement for other needs.protected PropertySerializabilityEvaluatorcreatePropertySerializabilityEvaluator(WorkflowProperties workflowProperties, WorkflowAttributes workflowAttributes) voiddoActionTaken(org.kuali.rice.kew.framework.postprocessor.ActionTakenEvent event) method to integrate with workflow where we will be able to perform logic for an action taken being performed on a documentvoiddoRouteLevelChange(org.kuali.rice.kew.framework.postprocessor.DocumentRouteLevelChange levelChangeEvent) The the default implementation for RouteLevelChange does nothing, but is meant to provide a hook for documents to implement for other needs.voiddoRouteStatusChange(org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange statusChangeEvent) Handle the doRouteStatusChange event from the post processorGenerate any necessary events required during the save event generationList<org.kuali.rice.kew.api.action.ActionRequest> This method gets a list of theActionRequestobjects associated with this document.Returns null by default.List<org.kuali.rice.krad.bo.AdHocRoutePerson> 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 documentList<org.kuali.rice.krad.bo.AdHocRouteWorkgroup> 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 documentbooleanThis method returns whether or not this document can be copied.protected org.kuali.rice.krad.service.AttachmentServiceReturns the POJO property name of "this" document in the object returned bywrapDocumentWithMetadataForXmlSerialization()getCustomLockDescriptor(org.kuali.rice.kim.api.identity.Person user) This default implementation just throws a PessimisticLockingException.org.kuali.rice.krad.bo.DocumentHeaderThis retrieves the standardDocumentHeaderobject, which contains standard meta-data about a document.All documents have a document header id.If workflowProperties have been defined within the data dictionary for this document, then it returns an instance ofBusinessObjectPropertySerializibilityEvaluatorinitialized with the properties.Retrieves the title of the documentDeprecated.Deprecated.Return the list of actions a user could take on a document which should not result in the recalculation of thePessimisticLocks.org.kuali.rice.krad.bo.NotegetNote(int index) Retrieves the note at the given index.List<org.kuali.rice.krad.bo.Note> getNotes()Returns a mutable list of all notes on the document.protected org.kuali.rice.krad.service.NoteServiceorg.kuali.rice.core.api.mo.common.GloballyUniqueReturns the business object with which notes related to this document should be associated.org.kuali.rice.krad.util.NoteTypeReturns theNoteTypeto use for notes associated with this document.List<org.kuali.rice.krad.document.authorization.PessimisticLock> This method gets a list of thePessimisticLockobjects associated with this documentThis method gets the annotation to be attached to a super user action.The default implementation returns no additional ids for the workflow engine to lock prior to processing.This method is used to get the xml that should be used in a Route Report.protected voidThis method logs errors.voidThis 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.protected voidpostLoad()Loads the KRAD document header via the document header service.voidpostProcessSave(DocumentEvent event) Do any work on the document after the save.protected voidThis overridden method is used to delete theDocumentHeaderobject due to the system not being able to manage theDocumentHeaderobject via mapping filesvoidThis method provides a hook that will be called before the document is saved.voidprepareForSave(DocumentEvent event) Override this method with implementation specific prepareForSave logicprotected voidSave the KRAD document header via the document header service.voidThis method provides a hook that will be called after a document is retrieved, but before it is returned from the DocumentService.voidThis method updates the list ofPessimisticLockobjects on the document if changes could have been madevoidrefreshReferenceObject(String referenceObjectName) Deprecated.This is a KNS/OJB-related method.booleanremoveNote(org.kuali.rice.krad.bo.Note note) Removes the given note from the document's list of notes.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.voidsetAdHocRoutePersons(List<org.kuali.rice.krad.bo.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 documentvoidsetAdHocRouteWorkgroups(List<org.kuali.rice.krad.bo.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 documentvoidsetDocumentHeader(org.kuali.rice.krad.bo.DocumentHeader documentHeader) Sets the associatedDocumentHeaderfor this document.voidsetDocumentNumber(String documentNumber) setter for document header idprotected voidGets a new document header for this documents type and sets in the document instance.voidSets the document's list of notes to the given list.voidsetPessimisticLocks(List<org.kuali.rice.krad.document.authorization.PessimisticLock> pessimisticLocks) voidsetSuperUserAnnotation(String superUserAnnotation) This method sets the annotation to be attached to a super user action.voidtoCopy()booleanThis default implementation simply returns false to indicate that custom lock descriptors are not supported by DocumentBase.voidSends document off to the rules engine to verify business rules.Wraps a document in an instance of KualiDocumentXmlMaterializer, that provides additional metadata for serializationMethods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
_persistence_get, _persistence_new, _persistence_post_clone, _persistence_set, buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, isNewCollectionRecord, linkEditableUserFields, refresh, refreshNonUpdateableReferences, setExtension, setNewCollectionRecordMethods inherited from class org.kuali.rice.krad.bo.DataObjectBase
_persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_get_objectId, _persistence_get_versionNumber, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getHref, _persistence_getId, _persistence_getLinks, _persistence_getPropertyChangeListener, _persistence_getRelationships, _persistence_getSession, _persistence_isAttributeFetched, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_set_objectId, _persistence_set_versionNumber, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setHref, _persistence_setId, _persistence_setLinks, _persistence_setPropertyChangeListener, _persistence_setRelationships, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, generateAndSetObjectIdIfNeeded, getExtensionObject, getObjectId, getVersionNumber, preUpdate, setExtensionObject, setObjectId, setVersionNumber, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectIdMethods inherited from interface org.eclipse.persistence.internal.descriptors.PersistenceObject
_persistence_shallow_clone
-
Field Details
-
documentNumber
-
documentHeader
protected org.kuali.rice.krad.bo.DocumentHeader documentHeader -
pessimisticLocks
-
adHocRoutePersons
-
adHocRouteWorkgroups
-
notes
-
-
Constructor Details
-
DocumentBase
public DocumentBase()
-
-
Method Details
-
getAllowsCopy
public boolean getAllowsCopy()Description copied from interface:DocumentThis method returns whether or not this document can be copied.- Specified by:
getAllowsCopyin interfaceDocument- Returns:
- True if it can be copied, false if not.
-
getDocumentTitle
Retrieves the title of the documentThis is the default document title implementation. It concatenates the document's data dictionary file label attribute and the document's document header description together. This title is used to populate workflow and will show up in document search results and user action lists.
return String representing the title of the document- Specified by:
getDocumentTitlein interfaceDocument- Returns:
- document title
-
prepareForSave
public void prepareForSave()Description copied from interface:DocumentThis method provides a hook that will be called before the document is saved. This method is useful for applying document level data to children. For example, if someone changes data at the document level, and that data needs to be propagated to child objects or child lists of objects, you can use this method to update the child object or iterate through the list of child objects and apply the document level data to them. Any document that follows this paradigm will need to make use of this method to apply all of those changes.- Specified by:
prepareForSavein interfaceDocument
-
processAfterRetrieve
public void processAfterRetrieve()Description copied from interface:DocumentThis method provides a hook that will be called after a document is retrieved, but before it is returned from the DocumentService.- Specified by:
processAfterRetrievein interfaceDocument
-
doRouteLevelChange
public void doRouteLevelChange(org.kuali.rice.kew.framework.postprocessor.DocumentRouteLevelChange levelChangeEvent) The the default implementation for RouteLevelChange does nothing, but is meant to provide a hook for documents to implement for other needs.- Specified by:
doRouteLevelChangein interfaceDocument- Parameters:
levelChangeEvent- route level change event
-
doActionTaken
public void doActionTaken(org.kuali.rice.kew.framework.postprocessor.ActionTakenEvent event) Description copied from interface:Documentmethod to integrate with workflow where we will be able to perform logic for an action taken being performed on a document- Specified by:
doActionTakenin interfaceDocument- Parameters:
event- action taken event
-
afterActionTaken
public void afterActionTaken(org.kuali.rice.kew.api.action.ActionType performed, org.kuali.rice.kew.framework.postprocessor.ActionTakenEvent event) Description copied from interface:Documentmethod to integrate with workflow where we will be able to perform logic after an action taken being performed on a document- Specified by:
afterActionTakenin interfaceDocument- Parameters:
performed- action type performedevent- action taken event
-
getNonLockingActionTakenCodes
Return the list of actions a user could take on a document which should not result in the recalculation of thePessimisticLocks.- See Also:
-
afterWorkflowEngineProcess
public void afterWorkflowEngineProcess(boolean successfullyProcessed) The the default implementation for afterWorkflowEngineProcess does nothing, but is meant to provide a hook for documents to implement for other needs.- Specified by:
afterWorkflowEngineProcessin interfaceDocument- Parameters:
successfullyProcessed- - true if the document was processed successfully, false otherwise
-
beforeWorkflowEngineProcess
public void beforeWorkflowEngineProcess()The the default implementation for beforeWorkflowEngineProcess does nothing, but is meant to provide a hook for documents to implement for other needs.- Specified by:
beforeWorkflowEngineProcessin interfaceDocument
-
getWorkflowEngineDocumentIdsToLock
The default implementation returns no additional ids for the workflow engine to lock prior to processing.- Specified by:
getWorkflowEngineDocumentIdsToLockin interfaceDocument- Returns:
- additional document IDs to lock prior to processing
-
toCopy
public void toCopy() throws org.kuali.rice.kew.api.exception.WorkflowException, IllegalStateException- Throws:
org.kuali.rice.kew.api.exception.WorkflowExceptionIllegalStateException- See Also:
-
setNewDocumentHeader
protected void setNewDocumentHeader() throws org.kuali.rice.kew.api.exception.WorkflowExceptionGets a new document header for this documents type and sets in the document instance.- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
-
addCopyErrorDocumentNote
Adds a note to the document indicating it was created by a copy or error correction.- Parameters:
noteText- - text for note
-
getXmlForRouteReport
Description copied from interface:DocumentThis method is used to get the xml that should be used in a Route Report. In it's default implementation this will call the methods prepareForSave() and populateDocumentForRouting().- Specified by:
getXmlForRouteReportin interfaceDocument- Returns:
- XML data for routing
-
populateDocumentForRouting
public void populateDocumentForRouting()Description copied from interface:DocumentThis 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. This method is responsible for passing over the proper Kuali (client system) data that will be used by workflow to determine how the document is actually routed.- Specified by:
populateDocumentForRoutingin interfaceDocument
-
serializeDocumentToXml
Description copied from interface:DocumentThis 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.- Specified by:
serializeDocumentToXmlin interfaceDocument- Returns:
- the document serialized to an xml string
-
wrapDocumentWithMetadataForXmlSerialization
Wraps a document in an instance of KualiDocumentXmlMaterializer, that provides additional metadata for serialization- Specified by:
wrapDocumentWithMetadataForXmlSerializationin interfaceDocument- Returns:
- a wrapper object (most likely containing a reference to "this"), or "this" itself.
- See Also:
-
getDocumentPropertySerizabilityEvaluator
If workflowProperties have been defined within the data dictionary for this document, then it returns an instance ofBusinessObjectPropertySerializibilityEvaluatorinitialized with the properties. If none have been defined, then returnsAlwaysTruePropertySerializibilityEvaluator.- Specified by:
getDocumentPropertySerizabilityEvaluatorin interfaceDocument- Returns:
- a fully initialized evaluator object, ready to be used for workflow routing
- See Also:
-
createPropertySerializabilityEvaluator
protected PropertySerializabilityEvaluator createPropertySerializabilityEvaluator(WorkflowProperties workflowProperties, WorkflowAttributes workflowAttributes) -
getBasePathToDocumentDuringSerialization
Returns the POJO property name of "this" document in the object returned bywrapDocumentWithMetadataForXmlSerialization()- Specified by:
getBasePathToDocumentDuringSerializationin interfaceDocument- Returns:
- a fully initialized evaluator object, ready to be used for workflow routing
- See Also:
-
getDocumentHeader
public org.kuali.rice.krad.bo.DocumentHeader getDocumentHeader()Description copied from interface:DocumentThis retrieves the standardDocumentHeaderobject, which contains standard meta-data about a document.- Specified by:
getDocumentHeaderin interfaceDocument- Returns:
- document header since all docs will have a document header
-
setDocumentHeader
public void setDocumentHeader(org.kuali.rice.krad.bo.DocumentHeader documentHeader) Description copied from interface:DocumentSets the associatedDocumentHeaderfor this document.- Specified by:
setDocumentHeaderin interfaceDocument- Parameters:
documentHeader-
-
getDocumentNumber
Description copied from interface:DocumentAll documents have a document header id. This is the quick accessor to that unique identifier and should return the same value as documentHeader.getDocumentHeaderId().- Specified by:
getDocumentNumberin interfaceDocument- Returns:
- doc header id
-
setDocumentNumber
Description copied from interface:Documentsetter for document header id- Specified by:
setDocumentNumberin interfaceDocument- Parameters:
documentNumber-
-
getAdHocRoutePersons
Description copied from interface:Documentgetter 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- Specified by:
getAdHocRoutePersonsin interfaceDocument- Returns:
- list of ad hoc route persons
-
setAdHocRoutePersons
Description copied from interface:Documentsetter 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- Specified by:
setAdHocRoutePersonsin interfaceDocument- Parameters:
adHocRoutePersons-
-
getAdHocRouteWorkgroups
Description copied from interface:Documentgetter 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- Specified by:
getAdHocRouteWorkgroupsin interfaceDocument- Returns:
- list of ad hoc route workgroups
-
setAdHocRouteWorkgroups
public void setAdHocRouteWorkgroups(List<org.kuali.rice.krad.bo.AdHocRouteWorkgroup> adHocRouteWorkgroups) Description copied from interface:Documentsetter 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- Specified by:
setAdHocRouteWorkgroupsin interfaceDocument- Parameters:
adHocRouteWorkgroups-
-
getAdHocRouteNodeName
Returns null by default. Subclasses can override this to provide the node name to which any adhoc requests should be attached.- Specified by:
getAdHocRouteNodeNamein interfaceDocument- Returns:
- the name of the node to attach adhoc requests toage
-
postProcessSave
Description copied from interface:DocumentDo any work on the document after the save.- Specified by:
postProcessSavein interfaceDocument- Parameters:
event- - indicates which document event was requested
-
prepareForSave
Override this method with implementation specific prepareForSave logic- Specified by:
prepareForSavein interfaceDocument- Parameters:
event- - indicates which document event was requested
-
validateBusinessRules
Description copied from interface:DocumentSends document off to the rules engine to verify business rules.- Specified by:
validateBusinessRulesin interfaceDocument- Parameters:
event- - indicates which document event was requested
-
logErrors
protected void logErrors()This method logs errors. -
generateSaveEvents
Description copied from interface:DocumentGenerate any necessary events required during the save event generation- Specified by:
generateSaveEventsin interfaceDocument- Returns:
- a list of document events that were triggered by the save event
-
doRouteStatusChange
public void doRouteStatusChange(org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange statusChangeEvent) Description copied from interface:DocumentHandle the doRouteStatusChange event from the post processor- Specified by:
doRouteStatusChangein interfaceDocument- Parameters:
statusChangeEvent- status change event
-
getNoteTarget
public org.kuali.rice.core.api.mo.common.GloballyUnique getNoteTarget()Returns the business object with which notes related to this document should be associated. By default, theDocumentHeaderof this document will be returned as the note target.Sub classes can override this method if they want notes to be associated with something other than the document header. If this method is overridden, the
getNoteType()method should be overridden to returnNoteType.BUSINESS_OBJECT- Specified by:
getNoteTargetin interfaceDocument- Returns:
- Returns the documentBusinessObject.
-
getNoteType
public org.kuali.rice.krad.util.NoteType getNoteType()Returns theNoteTypeto use for notes associated with this document. By default this returnsNoteType.DOCUMENT_HEADERsince notes are associated with theDocumentHeaderrecord by default.The case in which this should be overridden is if
getNoteTarget()is overridden to return an object other than the DocumentHeader.- Specified by:
getNoteTypein interfaceDocument- Returns:
- the note type to use for notes associated with this document
-
addNote
public void addNote(org.kuali.rice.krad.bo.Note note) Description copied from interface:DocumentAdds the given Note to the document's list of Notes. -
removeNote
public boolean removeNote(org.kuali.rice.krad.bo.Note note) Description copied from interface:DocumentRemoves the given note from the document's list of notes.- Specified by:
removeNotein interfaceDocument- Parameters:
note- the note to remove from the document's list of notes, must be non-null- Returns:
- true if the note was successfully removed, false if the list did not contain the given note
-
getNote
public org.kuali.rice.krad.bo.Note getNote(int index) Description copied from interface:DocumentRetrieves the note at the given index. -
getNotes
Description copied from interface:DocumentReturns a mutable list of all notes on the document. -
setNotes
Description copied from interface:DocumentSets the document's list of notes to the given list. -
getActionRequests
Description copied from interface:DocumentThis method gets a list of theActionRequestobjects associated with this document.- Specified by:
getActionRequestsin interfaceDocument- Returns:
- list of action requests
-
getSuperUserAnnotation
Description copied from interface:DocumentThis method gets the annotation to be attached to a super user action.- Specified by:
getSuperUserAnnotationin interfaceDocument- Returns:
- the super user annotation
-
setSuperUserAnnotation
Description copied from interface:DocumentThis method sets the annotation to be attached to a super user action.- Specified by:
setSuperUserAnnotationin interfaceDocument- Parameters:
superUserAnnotation- the super user annotation
-
postLoad
protected void postLoad()Loads the KRAD document header via the document header service. -
prePersist
protected void prePersist()Save the KRAD document header via the document header service.- Overrides:
prePersistin classorg.kuali.rice.krad.bo.DataObjectBase
-
postRemove
protected void postRemove()This overridden method is used to delete theDocumentHeaderobject due to the system not being able to manage theDocumentHeaderobject via mapping files -
getPessimisticLocks
Description copied from interface:DocumentThis method gets a list of thePessimisticLockobjects associated with this document- Specified by:
getPessimisticLocksin interfaceDocument- Returns:
- list of pessimistic locks
-
refreshPessimisticLocks
public void refreshPessimisticLocks()Description copied from interface:DocumentThis method updates the list ofPessimisticLockobjects on the document if changes could have been made- Specified by:
refreshPessimisticLocksin interfaceDocument
-
setPessimisticLocks
public void setPessimisticLocks(List<org.kuali.rice.krad.document.authorization.PessimisticLock> pessimisticLocks) -
addPessimisticLock
public void addPessimisticLock(org.kuali.rice.krad.document.authorization.PessimisticLock lock) Description copied from interface:DocumentThis method adds a newPessimisticLockto the document NOTE: LOCKS ADDED VIA THIS METHOD WILL NOT BE SAVED WITH THE DOCUMENT- Specified by:
addPessimisticLockin interfaceDocument- Parameters:
lock- - the lock to add to the document
-
getLockClearingMethodNames
Deprecated.Description copied from interface:DocumentThis is a method that is used by Kuali Pessimistic Locking to get the names (method to call values) of the KNS KualiDocumentActionBase methods that should release locks- Specified by:
getLockClearingMethodNamesin interfaceDocument- Returns:
- the list of method names of an action that should clear locks for the current user
-
getLockClearningMethodNames
Deprecated.Description copied from interface:DocumentRenamed:- Specified by:
getLockClearningMethodNamesin interfaceDocument- Returns:
- the list of method names of an action that should clear locks for the current user
- See Also:
-
useCustomLockDescriptors
public boolean useCustomLockDescriptors()This default implementation simply returns false to indicate that custom lock descriptors are not supported by DocumentBase. If custom lock descriptors are needed, the appropriate subclasses should override this method.- Specified by:
useCustomLockDescriptorsin interfaceDocument- Returns:
- True if the document can generate custom lock descriptors, false otherwise.
- See Also:
-
getCustomLockDescriptor
This default implementation just throws a PessimisticLockingException. Subclasses of DocumentBase that need support for custom lock descriptors should override this method.- Specified by:
getCustomLockDescriptorin interfaceDocument- Parameters:
user- The user trying to establish the lock.- Returns:
- A String representing the lock descriptor.
- See Also:
-
getAttachmentService
protected org.kuali.rice.krad.service.AttachmentService getAttachmentService() -
getNoteService
protected org.kuali.rice.krad.service.NoteService getNoteService() -
refreshReferenceObject
Deprecated.This is a KNS/OJB-related method. It should not be used on KRAD/JPA-based documents.Overrides this OJB method to accept the no-longer-bound documentHeader reference and perform the refresh via services instead of via OJB. For any other property, it works as before.- Overrides:
refreshReferenceObjectin classorg.kuali.rice.krad.bo.PersistableBusinessObjectBaseAdapter
-