public class DocumentServiceImpl extends Object implements DocumentService
| Modifier and Type | Field and Description |
|---|---|
protected DataDictionaryService |
dataDictionaryService |
protected org.kuali.rice.core.api.datetime.DateTimeService |
dateTimeService |
protected DocumentAdHocService |
documentAdHocService |
protected DocumentDictionaryService |
documentDictionaryService |
protected DocumentHeaderService |
documentHeaderService |
protected org.kuali.rice.core.api.config.property.ConfigurationService |
kualiConfigurationService |
protected LegacyDataAdapter |
legacyDataAdapter |
protected NoteService |
noteService |
protected org.kuali.rice.kim.api.identity.PersonService |
personService |
protected WorkflowDocumentService |
workflowDocumentService |
| Constructor and Description |
|---|
DocumentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Document |
acknowledgeDocument(Document document,
String annotation,
List<AdHocRouteRecipient> adHocRecipients) |
Document |
approveDocument(Document document,
String annotation,
List<AdHocRouteRecipient> adHocRecipients) |
Document |
blanketApproveDocument(Document document,
String annotation,
List<AdHocRouteRecipient> adHocRecipients) |
Document |
cancelDocument(Document document,
String annotation) |
protected void |
checkForNulls(Document document) |
Document |
clearDocumentFyi(Document document,
List<AdHocRouteRecipient> adHocRecipients) |
Document |
completeDocument(Document document,
String annotation,
List adHocRecipients) |
Note |
createNoteFromDocument(Document document,
String text) |
Document |
disapproveDocument(Document document,
String annotation) |
boolean |
documentExists(String documentHeaderId) |
Document |
getByDocumentHeaderId(String documentHeaderId)
This is temporary until workflow 2.0 and reads from a table to get documents whose status has changed to A
(approved - no
outstanding approval actions requested)
|
Document |
getByDocumentHeaderIdSessionless(String documentHeaderId) |
protected DataDictionaryService |
getDataDictionaryService() |
protected org.kuali.rice.core.api.datetime.DateTimeService |
getDateTimeService() |
protected DocumentDictionaryService |
getDocumentDictionaryService() |
DocumentHeaderService |
getDocumentHeaderService() |
List<Document> |
getDocumentsByListOfDocumentHeaderIds(Class<? extends Document> documentClass,
List<String> documentHeaderIds)
The default implementation - this retrieves all documents by a list of documentHeader for a given class.
|
protected LegacyDataAdapter |
getLegacyDataAdapter() |
Document |
getNewDocument(Class<? extends Document> documentClass)
Creates a new document by class.
|
Document |
getNewDocument(String documentTypeName)
Creates a new document by document type name.
|
Document |
getNewDocument(String documentTypeName,
String initiatorPrincipalNm)
Creates a new document by document type name.
|
protected NoteService |
getNoteService() |
org.kuali.rice.kim.api.identity.PersonService |
getPersonService() |
protected WorkflowDocumentService |
getWorkflowDocumentService() |
protected boolean |
isNoteTargetReady(Document document)
Determines if the given document's note target is ready for notes to be
attached and persisted against it.
|
protected void |
loadNotes(Document document)
Loads the Notes for the note target on this Document.
|
void |
prepareWorkflowDocument(Document document)
Sets the title and app document id in the flex document
|
Document |
recallDocument(Document document,
String annotation,
boolean cancel) |
Document |
routeDocument(Document document,
String annotation,
List<AdHocRouteRecipient> adHocRecipients) |
Document |
saveDocument(Document document) |
Document |
saveDocument(Document document,
Class<? extends DocumentEvent> kualiDocumentEventClass) |
Document |
saveDocument(Document document,
DocumentEvent event)
saves the document with the custom document event passed in
|
boolean |
saveDocumentNotes(Document document) |
Document |
sendAdHocRequests(Document document,
String annotation,
List<AdHocRouteRecipient> adHocRecipients) |
Document |
sendNoteRouteNotification(Document document,
Note note,
org.kuali.rice.kim.api.identity.Person sender) |
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService) |
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService) |
void |
setDocumentAdHocService(DocumentAdHocService documentAdHocService) |
void |
setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService) |
void |
setDocumentHeaderService(DocumentHeaderService documentHeaderService) |
void |
setKualiConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService) |
void |
setLegacyDataAdapter(LegacyDataAdapter legacyDataAdapter) |
void |
setNoteService(NoteService noteService) |
void |
setWorkflowDocumentService(WorkflowDocumentService workflowDocumentService) |
Document |
superUserApproveDocument(Document document,
String annotation) |
Document |
superUserCancelDocument(Document document,
String annotation) |
Document |
superUserDisapproveDocument(Document document,
String annotation) |
Document |
superUserDisapproveDocumentWithoutSaving(Document document,
String annotation) |
Document |
updateDocument(Document document)
This is to allow for updates of document statuses and other related requirements for updates outside of the
initial save and
route
|
Document |
validateAndPersistDocument(Document document,
DocumentEvent event)
Validates and persists a document.
|
protected org.kuali.rice.core.api.datetime.DateTimeService dateTimeService
protected NoteService noteService
protected WorkflowDocumentService workflowDocumentService
protected LegacyDataAdapter legacyDataAdapter
protected DataDictionaryService dataDictionaryService
protected DocumentDictionaryService documentDictionaryService
protected org.kuali.rice.kim.api.identity.PersonService personService
protected org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService
protected DocumentHeaderService documentHeaderService
protected DocumentAdHocService documentAdHocService
public DocumentServiceImpl()
public Document saveDocument(Document document) throws org.kuali.rice.kew.api.exception.WorkflowException, ValidationException
saveDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionValidationExceptionDocumentService.saveDocument(org.kuali.rice.krad.document.Document)public Document saveDocument(Document document, DocumentEvent event) throws org.kuali.rice.kew.api.exception.WorkflowException
saveDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionpublic Document saveDocument(Document document, Class<? extends DocumentEvent> kualiDocumentEventClass) throws org.kuali.rice.kew.api.exception.WorkflowException, ValidationException
saveDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionValidationExceptionpublic Document routeDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRecipients) throws ValidationException, org.kuali.rice.kew.api.exception.WorkflowException
routeDocument in interface DocumentServiceValidationExceptionorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.routeDocument(org.kuali.rice.krad.document.Document,
java.lang.String, java.util.List)public Document approveDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRecipients) throws ValidationException, org.kuali.rice.kew.api.exception.WorkflowException
approveDocument in interface DocumentServiceValidationExceptionorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.approveDocument(org.kuali.rice.krad.document.Document,
java.lang.String,
java.util.List)public Document superUserApproveDocument(Document document, String annotation) throws org.kuali.rice.kew.api.exception.WorkflowException
superUserApproveDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.superUserApproveDocument(org.kuali.rice.krad.document.Document,
java.lang.String)public Document superUserCancelDocument(Document document, String annotation) throws org.kuali.rice.kew.api.exception.WorkflowException
superUserCancelDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.superUserCancelDocument(org.kuali.rice.krad.document.Document,
java.lang.String)public Document superUserDisapproveDocument(Document document, String annotation) throws org.kuali.rice.kew.api.exception.WorkflowException
superUserDisapproveDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.superUserCancelDocument(org.kuali.rice.krad.document.Document,
java.lang.String)public Document superUserDisapproveDocumentWithoutSaving(Document document, String annotation) throws org.kuali.rice.kew.api.exception.WorkflowException
superUserDisapproveDocumentWithoutSaving in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.superUserCancelDocument(org.kuali.rice.krad.document.Document,
java.lang.String)public Document disapproveDocument(Document document, String annotation) throws Exception
disapproveDocument in interface DocumentServiceExceptionDocumentService.disapproveDocument(org.kuali.rice.krad.document.Document,
java.lang.String)public Document cancelDocument(Document document, String annotation) throws org.kuali.rice.kew.api.exception.WorkflowException
cancelDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.cancelDocument(org.kuali.rice.krad.document.Document,
java.lang.String)public Document recallDocument(Document document, String annotation, boolean cancel) throws org.kuali.rice.kew.api.exception.WorkflowException
recallDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionpublic Document acknowledgeDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException
acknowledgeDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.acknowledgeDocument(org.kuali.rice.krad.document.Document,
java.lang.String,
java.util.List)public Document blanketApproveDocument(Document document, String annotation, List<AdHocRouteRecipient> adHocRecipients) throws ValidationException, org.kuali.rice.kew.api.exception.WorkflowException
blanketApproveDocument in interface DocumentServiceValidationExceptionorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.blanketApproveDocument(org.kuali.rice.krad.document.Document,
java.lang.String,
java.util.List)public Document clearDocumentFyi(Document document, List<AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException
clearDocumentFyi in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.clearDocumentFyi(org.kuali.rice.krad.document.Document,
java.util.List)public Document completeDocument(Document document, String annotation, List adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException
completeDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.completeDocument(org.kuali.rice.krad.document.Document,
java.lang.String,
java.util.List)protected void checkForNulls(Document document)
public boolean documentExists(String documentHeaderId)
documentExists in interface DocumentServiceDocumentService.documentExists(java.lang.String)public Document getNewDocument(Class<? extends Document> documentClass) throws org.kuali.rice.kew.api.exception.WorkflowException
getNewDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.getNewDocument(java.lang.Class)public Document getNewDocument(String documentTypeName, String initiatorPrincipalNm) throws org.kuali.rice.kew.api.exception.WorkflowException
getNewDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.getNewDocument(String, String)public Document getNewDocument(String documentTypeName) throws org.kuali.rice.kew.api.exception.WorkflowException
getNewDocument in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.getNewDocument(java.lang.String)public Document getByDocumentHeaderId(String documentHeaderId) throws org.kuali.rice.kew.api.exception.WorkflowException
getByDocumentHeaderId in interface DocumentServicedocumentHeaderId - org.kuali.rice.kew.api.exception.WorkflowExceptionpublic Document getByDocumentHeaderIdSessionless(String documentHeaderId) throws org.kuali.rice.kew.api.exception.WorkflowException
getByDocumentHeaderIdSessionless in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.getByDocumentHeaderIdSessionless(java.lang.String)protected void loadNotes(Document document)
document - the document for which to load the notespublic List<Document> getDocumentsByListOfDocumentHeaderIds(Class<? extends Document> documentClass, List<String> documentHeaderIds) throws org.kuali.rice.kew.api.exception.WorkflowException
getDocumentsByListOfDocumentHeaderIds in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.getDocumentsByListOfDocumentHeaderIds(java.lang.Class,
java.util.List)public Document validateAndPersistDocument(Document document, DocumentEvent event) throws ValidationException
validateAndPersistDocument in interface DocumentServiceValidationExceptionpublic void prepareWorkflowDocument(Document document) throws org.kuali.rice.kew.api.exception.WorkflowException
prepareWorkflowDocument in interface DocumentServicedocument - org.kuali.rice.kew.api.exception.WorkflowExceptionpublic Document updateDocument(Document document)
updateDocument in interface DocumentServicepublic Note createNoteFromDocument(Document document, String text)
createNoteFromDocument in interface DocumentServiceDocumentService.createNoteFromDocument(org.kuali.rice.krad.document.Document,
java.lang.String)public boolean saveDocumentNotes(Document document)
saveDocumentNotes in interface DocumentServiceDocumentService.saveDocumentNotes(org.kuali.rice.krad.document.Document)public Document sendNoteRouteNotification(Document document, Note note, org.kuali.rice.kim.api.identity.Person sender) throws org.kuali.rice.kew.api.exception.WorkflowException
sendNoteRouteNotification in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentServiceprotected boolean isNoteTargetReady(Document document)
document - the document on which to check for note target readinesspublic Document sendAdHocRequests(Document document, String annotation, List<AdHocRouteRecipient> adHocRecipients) throws org.kuali.rice.kew.api.exception.WorkflowException
sendAdHocRequests in interface DocumentServiceorg.kuali.rice.kew.api.exception.WorkflowExceptionDocumentService.sendAdHocRequests(org.kuali.rice.krad.document.Document, String, java.util.List)public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
protected org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()
public void setNoteService(NoteService noteService)
protected NoteService getNoteService()
public void setLegacyDataAdapter(LegacyDataAdapter legacyDataAdapter)
protected LegacyDataAdapter getLegacyDataAdapter()
public void setWorkflowDocumentService(WorkflowDocumentService workflowDocumentService)
protected WorkflowDocumentService getWorkflowDocumentService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
protected DataDictionaryService getDataDictionaryService()
protected DocumentDictionaryService getDocumentDictionaryService()
public void setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService)
public org.kuali.rice.kim.api.identity.PersonService getPersonService()
public void setKualiConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
public DocumentHeaderService getDocumentHeaderService()
public void setDocumentHeaderService(DocumentHeaderService documentHeaderService)
public void setDocumentAdHocService(DocumentAdHocService documentAdHocService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.