org.kuali.kpme.tklm.time.missedpunch.validation
Class MissedPunchDocumentRule

java.lang.Object
  extended by org.kuali.rice.krad.rules.DocumentRuleBase
      extended by org.kuali.rice.krad.rules.TransactionalDocumentRuleBase
          extended by org.kuali.kpme.tklm.time.missedpunch.validation.MissedPunchDocumentRule
All Implemented Interfaces:
org.kuali.rice.krad.rules.rule.AddAdHocRoutePersonRule, org.kuali.rice.krad.rules.rule.AddAdHocRouteWorkgroupRule, org.kuali.rice.krad.rules.rule.AddNoteRule, org.kuali.rice.krad.rules.rule.ApproveDocumentRule, org.kuali.rice.krad.rules.rule.BusinessRule, org.kuali.rice.krad.rules.rule.CompleteDocumentRule, org.kuali.rice.krad.rules.rule.RouteDocumentRule, org.kuali.rice.krad.rules.rule.SaveDocumentRule, org.kuali.rice.krad.rules.rule.SendAdHocRequestsRule

public class MissedPunchDocumentRule
extends org.kuali.rice.krad.rules.TransactionalDocumentRuleBase


Constructor Summary
MissedPunchDocumentRule()
           
 
Method Summary
protected  boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.krad.document.Document document)
           
protected  boolean validateClockTime(MissedPunch missedPunch)
          Validates whether the MissedPunch has a valid time relative to the last Clock Log.
protected  boolean validateTimesheet(MissedPunch missedPunch)
          Validates whether the Timesheet associated with the Missed Punch is not ENROUTE or FINAL.
 
Methods inherited from class org.kuali.rice.krad.rules.DocumentRuleBase
buildDocumentTypeActionRequestPermissionDetails, buildDocumentTypePermissionDetails, getDataDictionaryService, getDictionaryValidationService, getDocumentDictionaryService, getGroupService, getKualiConfigurationService, getMaxDictionaryValidationDepth, getPermissionService, getPersonService, hasAdHocRouteCompletion, isAddHocRoutePersonValid, isAddHocRouteWorkgroupValid, isAdHocRouteCompletionToInitiator, isAdHocRouteRecipientsValid, isDocumentAttributesValid, isDocumentOverviewValid, isNoteValid, processAddAdHocRoutePerson, processAddAdHocRouteWorkgroup, processAddNote, processApproveDocument, processCompleteDocument, processCustomAddAdHocRoutePersonBusinessRules, processCustomAddAdHocRouteWorkgroupBusinessRules, processCustomAddNoteBusinessRules, processCustomApproveDocumentBusinessRules, processCustomCompleteDocumentBusinessRules, processCustomRouteDocumentBusinessRules, processCustomSendAdHocRequests, processRouteDocument, processSaveDocument, processSendAdHocRequests, setDocumentDictionaryService, setMaxDictionaryValidationDepth, useKimPermission, validateSensitiveDataValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MissedPunchDocumentRule

public MissedPunchDocumentRule()
Method Detail

processCustomSaveDocumentBusinessRules

protected boolean processCustomSaveDocumentBusinessRules(org.kuali.rice.krad.document.Document document)
Overrides:
processCustomSaveDocumentBusinessRules in class org.kuali.rice.krad.rules.DocumentRuleBase

validateTimesheet

protected boolean validateTimesheet(MissedPunch missedPunch)
Validates whether the Timesheet associated with the Missed Punch is not ENROUTE or FINAL.

Parameters:
missedPunch - The Missed Punch to check
Returns:
true if the Timesheet associated with the Missed Punch is not ENROUTE or FINAL, false otherwise

validateClockTime

protected boolean validateClockTime(MissedPunch missedPunch)
Validates whether the MissedPunch has a valid time relative to the last Clock Log.

Parameters:
missedPunch - The Missed Punch to check
Returns:
true if the MissedPunch has a valid time relative to the last Clock Log, false otherwise


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.