@Transactional public class AutoDisapproveDocumentsServiceImpl extends Object implements AutoDisapproveDocumentsService
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
LOG |
static String |
WORKFLOW_DOCUMENT_HEADER_ID_SEARCH_RESULT_KEY |
Constructor and Description |
---|
AutoDisapproveDocumentsServiceImpl()
Constructs a AutoDisapproveDocumentsServiceImpl instance
|
Modifier and Type | Method and Description |
---|---|
protected void |
autoDisapprovalYearEndDocument(org.kuali.rice.krad.document.Document document,
String annotationForAutoDisapprovalDocument)
autoDisapprovalYearEndDocument uses DocumentServiceImpl to mark as disapproved by calling
DocumentServiceImpl's disapproveDocument method.
|
boolean |
autoDisapproveDocumentsInEnrouteStatus()
Gathers all documents that are in ENROUTE status and auto disapproves them.
|
protected boolean |
canAutoDisapproveJobRun()
This method will compare today's date to the system parameter for year end auto disapproval run date
|
protected boolean |
checkIfAnnotationForDisapprovalParameterExists()
This method checks for the system parameter for YEAR_END_AUTO_DISAPPROVE_ANNOTATION
|
protected boolean |
checkIfDocumentCompareCreateDateParameterExists()
This method checks for the system parameter for YEAR_END_AUTO_DISAPPROVE_DOCUMENT_CREATE_DATE
|
protected boolean |
checkIfDocumentEligibleForAutoDispproval(org.kuali.rice.krad.document.Document document)
This method will check the document's document type against the parent document type as specified in the system parameter
|
protected boolean |
checkIfDocumentTypesExceptionParameterExists()
This method checks for the system parameter for YEAR_END_AUTO_DISAPPROVE_DOCUMENT_TYPES
|
protected boolean |
checkIfParentDocumentTypeParameterExists()
This method checks for the system parameter for YEAR_END_AUTO_DISAPPROVE_PARENT_DOCUMENT_TYPE
|
protected boolean |
checkIfRunDateParameterExists()
This method checks for the system parameter for YEAR_END_AUTO_DISAPPROVE_DOCUMENTS_RUN_DATE
|
protected boolean |
exceptionsToAutoDisapproveProcess(org.kuali.rice.krad.document.Document document,
Date documentCompareDate)
This method first checks the document's create date with system parameter date and then
checks the document type name to the system parameter values and returns true if the type name exists
|
protected org.kuali.rice.krad.document.Document |
findDocumentForAutoDisapproval(String documentHeaderId)
This method finds the document for the given document header id
|
protected ReportWriterService |
getAutoDisapproveErrorReportWriterService()
Gets the autoDisapproveErrorReportWriterService attribute.
|
protected org.kuali.rice.core.api.datetime.DateTimeService |
getDateTimeService()
Gets the dateTimeService attribute.
|
protected Date |
getDocumentCompareDateParameter()
This method finds the date in the system parameters that will be used to compare the create date.
|
org.kuali.rice.krad.service.DocumentService |
getDocumentService()
Gets the documentService attribute.
|
protected org.kuali.rice.kew.api.doctype.DocumentTypeService |
getDocumentTypeService()
Gets the documentTypeService attribute.
|
protected org.kuali.rice.krad.service.NoteService |
getNoteService()
Gets the NoteService, lazily initializing if necessary
|
OleSelectDocumentService |
getOleSelectDocumentService() |
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService()
Gets the parameterService attribute.
|
protected org.kuali.rice.kim.api.identity.PersonService |
getPersonService() |
protected boolean |
processAutoDisapproveDocuments(String principalId,
String annotation,
Date documentCompareDate)
This method will use documentsearchcriteriaDTO to search for the documents that are in enroute status and disapproves them
|
void |
setAutoDisapproveErrorReportWriterService(ReportWriterService autoDisapproveErrorReportWriterService)
Sets the autoDisapproveErrorReportWriterService attribute value.
|
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the dateTimeService attribute value.
|
void |
setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
Sets the documentService attribute value.
|
void |
setNoteService(org.kuali.rice.krad.service.NoteService noteService)
Sets the noteService attribute value.
|
void |
setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the parameterService attribute value.
|
protected boolean |
systemParametersForAutoDisapproveDocumentsJobExist()
This method checks if the System parameters have been set up for this batch job.
|
protected static org.apache.log4j.Logger LOG
public static final String WORKFLOW_DOCUMENT_HEADER_ID_SEARCH_RESULT_KEY
public AutoDisapproveDocumentsServiceImpl()
public boolean autoDisapproveDocumentsInEnrouteStatus()
autoDisapproveDocumentsInEnrouteStatus
in interface AutoDisapproveDocumentsService
org.kuali.ole.sys.batch.service.autoDisapproveDocumentsInEnrouteStatus#autoDisapproveDocumentsInEnrouteStatus()
protected boolean systemParametersForAutoDisapproveDocumentsJobExist()
protected boolean checkIfRunDateParameterExists()
outputErrorFile_ps
- output error file stream to write any error messages.protected boolean checkIfParentDocumentTypeParameterExists()
outputErrorFile_ps
- output error file stream to write any error messages.protected boolean checkIfDocumentCompareCreateDateParameterExists()
outputErrorFile_ps
- output error file stream to write any error messages.protected boolean checkIfDocumentTypesExceptionParameterExists()
outputErrorFile_ps
- output error file stream to write any error messages.protected boolean checkIfAnnotationForDisapprovalParameterExists()
outputErrorFile_ps
- output error file stream to write any error messages.protected boolean canAutoDisapproveJobRun()
protected boolean processAutoDisapproveDocuments(String principalId, String annotation, Date documentCompareDate)
principalId
- The principal id which is OLE-SYS System user to run the process under.annotation
- The annotation to be set as note in the note of the document.documentCompareDate
- The document create date to compare toprotected boolean checkIfDocumentEligibleForAutoDispproval(org.kuali.rice.krad.document.Document document)
document
- protected Date getDocumentCompareDateParameter()
protected org.kuali.rice.krad.document.Document findDocumentForAutoDisapproval(String documentHeaderId)
documentHeaderId
- protected boolean exceptionsToAutoDisapproveProcess(org.kuali.rice.krad.document.Document document, Date documentCompareDate)
document
- document to check for its document type, documentCompareDate the system parameter specified date
to compare the current date to this date.protected void autoDisapprovalYearEndDocument(org.kuali.rice.krad.document.Document document, String annotationForAutoDisapprovalDocument) throws Exception
document
- The document that needs to be auto disapproved in this processannotationForAutoDisapprovalDocument
- The annotationForAutoDisapprovalDocument that is set as annotations when canceling the edoc.Exception
public void setDocumentService(org.kuali.rice.krad.service.DocumentService documentService)
documentService
- The documentService to set.public org.kuali.rice.krad.service.DocumentService getDocumentService()
protected org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService
- The parameterService to set.protected org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()
public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.protected org.kuali.rice.krad.service.NoteService getNoteService()
public void setNoteService(org.kuali.rice.krad.service.NoteService noteService)
noteService
- The noteService to set.protected org.kuali.rice.kim.api.identity.PersonService getPersonService()
protected org.kuali.rice.kew.api.doctype.DocumentTypeService getDocumentTypeService()
protected ReportWriterService getAutoDisapproveErrorReportWriterService()
public void setAutoDisapproveErrorReportWriterService(ReportWriterService autoDisapproveErrorReportWriterService)
autoDisapproveErrorReportWriterService
- The autoDisapproveErrorReportWriterService to set.public OleSelectDocumentService getOleSelectDocumentService()
public void setOleSelectDocumentService(OleSelectDocumentService oleSelectDocumentService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.