Package org.kuali.rice.krad.maintenance
Interface MaintenanceDocument
- All Superinterfaces:
Document,GloballyUnique
- All Known Implementing Classes:
MaintenanceDocumentBase
Common interface for all maintenance documents.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the data object that this MaintenanceDocument is maintainingGet the new maintainable objectGet the old maintainable objectGet the XML representation of the maintenance documentbooleanCheck if the topic field should be displayed in the notes sectionbooleanisEdit()Check if maintenance document is editing an existing Business ObjectbooleanCheck if fields are cleared on copybooleanisNew()Check if maintenance document is creating a new Business ObjectbooleanCheck if maintenance document is creating a new Business Object out of an existing Business ObjectbooleanCheck if maintenance document has old maintenance datavoidPopulates the old and new maintainables from the xml document contents string.voidBuild the xml document string from the contents of the old and new maintainables.voidsetDisplayTopicFieldInNotes(boolean displayTopicFieldInNotes) Set the display topic field in notes flagvoidsetFieldsClearedOnCopy(boolean keysClearedOnCopy) Set the keys cleared on copy flagvoidsetNewMaintainableObject(Maintainable newMaintainableObject) Set the new maintainable objectvoidsetOldMaintainableObject(Maintainable oldMaintainableObject) Set the old maintainable objectvoidsetXmlDocumentContents(String documentContents) Sets the xml contents of the maintenance documentMethods inherited from interface org.kuali.rice.krad.document.Document
addNote, addPessimisticLock, afterActionTaken, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, doActionTaken, doRouteLevelChange, doRouteStatusChange, generateSaveEvents, getActionRequests, getAdHocRouteNodeName, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAllowsCopy, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearingMethodNames, getLockClearningMethodNames, getNote, getNotes, getNoteTarget, getNoteType, getPessimisticLocks, getSuperUserAnnotation, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, populateDocumentForRouting, postProcessSave, prepareForSave, prepareForSave, processAfterRetrieve, refreshPessimisticLocks, removeNote, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, setNotes, setSuperUserAnnotation, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerializationMethods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectId
-
Method Details
-
getXmlDocumentContents
String getXmlDocumentContents()Get the XML representation of the maintenance document- Returns:
- String containing the xml representation of the maintenance document
-
getNewMaintainableObject
Maintainable getNewMaintainableObject()Get the new maintainable object- Returns:
- Maintainable which holds the new maintenance record
-
getOldMaintainableObject
Maintainable getOldMaintainableObject()Get the old maintainable object- Returns:
- Maintainable which holds the old maintenance record
-
setXmlDocumentContents
Sets the xml contents of the maintenance document- Parameters:
documentContents- String xml
-
setNewMaintainableObject
Set the new maintainable object- Parameters:
newMaintainableObject- maintainable with the new maintenance record
-
setOldMaintainableObject
Set the old maintainable object- Parameters:
oldMaintainableObject- maintainable with the old maintenance record
-
getDocumentDataObject
Object getDocumentDataObject()Return the data object that this MaintenanceDocument is maintaining- Returns:
- document data object instance
-
populateXmlDocumentContentsFromMaintainables
void populateXmlDocumentContentsFromMaintainables()Build the xml document string from the contents of the old and new maintainables. -
populateMaintainablesFromXmlDocumentContents
void populateMaintainablesFromXmlDocumentContents()Populates the old and new maintainables from the xml document contents string. -
isOldDataObjectInDocument
boolean isOldDataObjectInDocument()Check if maintenance document has old maintenance data- Returns:
- true if this maintenance document has old data, false otherwise
-
isNew
boolean isNew()Check if maintenance document is creating a new Business Object- Returns:
- true if this maintenance document is creating a new Business Object, false otherwise
-
isEdit
boolean isEdit()Check if maintenance document is editing an existing Business Object- Returns:
- true if this maintenance document is editing an existing Business Object, false otherwise
-
isNewWithExisting
boolean isNewWithExisting()Check if maintenance document is creating a new Business Object out of an existing Business ObjectFor example, a new division vendor out of an existing parent vendor.
- Returns:
- true if maintenance document is creating a new Business Object out of an existing Business object, false otherwise
-
isFieldsClearedOnCopy
boolean isFieldsClearedOnCopy()Check if fields are cleared on copyFor copy action the primary keys need to be cleared. This flag indicates if the clearing has occurred.
- Returns:
- true if the primary keys have been cleared already, false otherwise
-
setFieldsClearedOnCopy
void setFieldsClearedOnCopy(boolean keysClearedOnCopy) Set the keys cleared on copy flag- Parameters:
keysClearedOnCopy-
-
isDisplayTopicFieldInNotes
boolean isDisplayTopicFieldInNotes()Check if the topic field should be displayed in the notes section- Returns:
- true if the topic field should be displayed in the notes section, false otherwise
-
setDisplayTopicFieldInNotes
void setDisplayTopicFieldInNotes(boolean displayTopicFieldInNotes) Set the display topic field in notes flag
-