| java.lang.Object org.kuali.module.labor.service.impl.LaborScrubberProcess
LaborScrubberProcess | public class LaborScrubberProcess (Code) | | This class has the logic for the scrubber. It is required because the scrubber process needs instance variables. Instance
variables in a spring service are shared between all code calling the service. This will make sure each run of the scrubber has
it's own instance variables instead of being shared.
|
Inner Class :class UnitOfWorkInfo | |
Inner Class :class TransactionError | |
Constructor Summary | |
public | LaborScrubberProcess(FlexibleOffsetAccountService flexibleOffsetAccountService, DocumentTypeService documentTypeService, LaborOriginEntryService laborOriginEntryService, OriginEntryGroupService originEntryGroupService, DateTimeService dateTimeService, OffsetDefinitionService offsetDefinitionService, ObjectCodeService objectCodeService, KualiConfigurationService kualiConfigurationService, UniversityDateDao universityDateDao, PersistenceService persistenceService, LaborReportService laborReportService, ScrubberValidator scrubberValidator) These parameters are all the dependencies. |
LaborScrubberProcess | public LaborScrubberProcess(FlexibleOffsetAccountService flexibleOffsetAccountService, DocumentTypeService documentTypeService, LaborOriginEntryService laborOriginEntryService, OriginEntryGroupService originEntryGroupService, DateTimeService dateTimeService, OffsetDefinitionService offsetDefinitionService, ObjectCodeService objectCodeService, KualiConfigurationService kualiConfigurationService, UniversityDateDao universityDateDao, PersistenceService persistenceService, LaborReportService laborReportService, ScrubberValidator scrubberValidator)(Code) | | These parameters are all the dependencies.
|
calculateRunDate | public java.sql.Date calculateRunDate(java.util.Date currentDate)(Code) | | This method modifies the run date if it is before the cutoff time specified by calling the setCutoffTimeForPreviousDay
method. See KULRNE-70 This method is public to facilitate unit testing
Parameters: currentDate - |
initCutoffTime | protected void initCutoffTime()(Code) | | |
isCurrentDateBeforeCutoff | protected boolean isCurrentDateBeforeCutoff(Calendar currentCal)(Code) | | |
scrubEntries | public void scrubEntries()(Code) | | |
scrubEntries | public void scrubEntries(OriginEntryGroup group, String documentNumber)(Code) | | Scrub all entries that need it in origin entry. Put valid scrubbed entries in a scrubber valid group, put errors in a
scrubber error group, and transactions with an expired account in the scrubber expired account group.
|
scrubGroupReportOnly | public void scrubGroupReportOnly(OriginEntryGroup group, String documentNumber)(Code) | | Scrub this single group read only. This will only output the scrubber report. It won't output any other groups.
Parameters: group - |
setCutoffTime | protected void setCutoffTime(String cutoffTime)(Code) | | |
setCutoffTimeForPreviousDay | protected void setCutoffTimeForPreviousDay(int hourOfDay, int minuteOfDay, int secondOfDay)(Code) | | |
unsetCutoffTimeForPreviousDay | public void unsetCutoffTimeForPreviousDay()(Code) | | |
|
|