org.kuali.hr.time.detail.validation
Class TimeDetailValidationService

java.lang.Object
  extended by org.kuali.hr.time.detail.validation.TimeDetailValidationService

public class TimeDetailValidationService
extends Object


Constructor Summary
TimeDetailValidationService()
           
 
Method Summary
static List<String> validateDates(String startDateS, String endDateS)
           
static List<String> validateInterval(CalendarEntries payCalEntry, Long startTime, Long endTime)
           
static List<String> validateOverlap(Long startTime, Long endTime, boolean acrossDays, String startDateS, String endTimeS, org.joda.time.DateTime startTemp, org.joda.time.DateTime endTemp, TimesheetDocument timesheetDocument, String timeblockId, boolean isRegularEarnCode)
           
static List<String> validateTimeEntryDetails(BigDecimal hours, BigDecimal amount, String startTimeS, String endTimeS, String startDateS, String endDateS, TimesheetDocument timesheetDocument, String selectedEarnCode, String selectedAssignment, boolean acrossDays, String timeblockId, String overtimePref, boolean spanningWeeks)
           
static List<String> validateTimeEntryDetails(TimeDetailActionFormBase tdaf)
          Convenience method for handling validation directly from the form object.
static List<String> validateTimes(String startTimeS, String endTimeS)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeDetailValidationService

public TimeDetailValidationService()
Method Detail

validateTimeEntryDetails

public static List<String> validateTimeEntryDetails(TimeDetailActionFormBase tdaf)
Convenience method for handling validation directly from the form object.

Parameters:
tdaf - The populated form.
Returns:
A list of error strings.

validateTimeEntryDetails

public static List<String> validateTimeEntryDetails(BigDecimal hours,
                                                    BigDecimal amount,
                                                    String startTimeS,
                                                    String endTimeS,
                                                    String startDateS,
                                                    String endDateS,
                                                    TimesheetDocument timesheetDocument,
                                                    String selectedEarnCode,
                                                    String selectedAssignment,
                                                    boolean acrossDays,
                                                    String timeblockId,
                                                    String overtimePref,
                                                    boolean spanningWeeks)

validateOverlap

public static List<String> validateOverlap(Long startTime,
                                           Long endTime,
                                           boolean acrossDays,
                                           String startDateS,
                                           String endTimeS,
                                           org.joda.time.DateTime startTemp,
                                           org.joda.time.DateTime endTemp,
                                           TimesheetDocument timesheetDocument,
                                           String timeblockId,
                                           boolean isRegularEarnCode)

validateDates

public static List<String> validateDates(String startDateS,
                                         String endDateS)

validateTimes

public static List<String> validateTimes(String startTimeS,
                                         String endTimeS)

validateInterval

public static List<String> validateInterval(CalendarEntries payCalEntry,
                                            Long startTime,
                                            Long endTime)


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