org.kuali.hr.lm.leavecalendar.validation
Class LeaveCalendarValidationUtil

java.lang.Object
  extended by org.kuali.hr.lm.leavecalendar.validation.LeaveCalendarValidationUtil

public class LeaveCalendarValidationUtil
extends Object


Constructor Summary
LeaveCalendarValidationUtil()
           
 
Method Summary
static Map<String,Set<String>> getWarningMessagesForLeaveBlocks(List<LeaveBlock> leaveBlocks)
           
static List<String> validateAvailableLeaveBalance(LeaveCalendarWSForm lcf)
           
static List<String> validateAvailableLeaveBalanceForUsage(String earnCode, String leaveStartDateString, String leaveEndDateString, BigDecimal leaveAmount, LeaveBlock updatedLeaveBlock)
           
static List<String> validateDates(String startDateS, String endDateS)
           
static List<String> validateInterval(CalendarEntries payCalEntry, Long startTime, Long endTime)
           
static List<String> validateLeaveAccrualRuleMaxUsage(LeaveCalendarWSForm lcf)
           
static List<String> validateLeaveAccrualRuleMaxUsage(LeaveSummary ls, String selectedEarnCode, String leaveStartDateString, String leaveEndDateString, BigDecimal leaveAmount, LeaveBlock updatedLeaveBlock)
           
static List<String> validateOverlap(Long startTime, Long endTime, String startDateS, String endTimeS, org.joda.time.DateTime startTemp, org.joda.time.DateTime endTemp, CalendarEntries calendarEntry, String lmLeaveBlockId, boolean isRegularEarnCode, String earnCodeType)
           
static List<String> validateParametersAccordingToSelectedEarnCodeRecordMethod(LeaveCalendarWSForm lcf)
           
static List<String> validateParametersForLeaveEntry(String selectedEarnCode, CalendarEntries leaveCalEntry, String startDateS, String endDateS, String startTimeS, String endTimeS, String selectedAssignment, LeaveCalendarDocument leaveCalendarDocument, String leaveBlockId)
           
static Map<String,Set<String>> validatePendingTransactions(String principalId, Date fromDate, Date toDate)
           
static List<String> validateSpanningWeeks(LeaveCalendarWSForm lcf)
           
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

LeaveCalendarValidationUtil

public LeaveCalendarValidationUtil()
Method Detail

validateLeaveAccrualRuleMaxUsage

public static List<String> validateLeaveAccrualRuleMaxUsage(LeaveCalendarWSForm lcf)

validateLeaveAccrualRuleMaxUsage

public static List<String> validateLeaveAccrualRuleMaxUsage(LeaveSummary ls,
                                                            String selectedEarnCode,
                                                            String leaveStartDateString,
                                                            String leaveEndDateString,
                                                            BigDecimal leaveAmount,
                                                            LeaveBlock updatedLeaveBlock)

validatePendingTransactions

public static Map<String,Set<String>> validatePendingTransactions(String principalId,
                                                                  Date fromDate,
                                                                  Date toDate)

getWarningMessagesForLeaveBlocks

public static Map<String,Set<String>> getWarningMessagesForLeaveBlocks(List<LeaveBlock> leaveBlocks)

validateAvailableLeaveBalance

public static List<String> validateAvailableLeaveBalance(LeaveCalendarWSForm lcf)

validateAvailableLeaveBalanceForUsage

public static List<String> validateAvailableLeaveBalanceForUsage(String earnCode,
                                                                 String leaveStartDateString,
                                                                 String leaveEndDateString,
                                                                 BigDecimal leaveAmount,
                                                                 LeaveBlock updatedLeaveBlock)

validateDates

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

validateTimes

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

validateSpanningWeeks

public static List<String> validateSpanningWeeks(LeaveCalendarWSForm lcf)

validateParametersAccordingToSelectedEarnCodeRecordMethod

public static List<String> validateParametersAccordingToSelectedEarnCodeRecordMethod(LeaveCalendarWSForm lcf)

validateParametersForLeaveEntry

public static List<String> validateParametersForLeaveEntry(String selectedEarnCode,
                                                           CalendarEntries leaveCalEntry,
                                                           String startDateS,
                                                           String endDateS,
                                                           String startTimeS,
                                                           String endTimeS,
                                                           String selectedAssignment,
                                                           LeaveCalendarDocument leaveCalendarDocument,
                                                           String leaveBlockId)

validateInterval

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

validateOverlap

public static List<String> validateOverlap(Long startTime,
                                           Long endTime,
                                           String startDateS,
                                           String endTimeS,
                                           org.joda.time.DateTime startTemp,
                                           org.joda.time.DateTime endTemp,
                                           CalendarEntries calendarEntry,
                                           String lmLeaveBlockId,
                                           boolean isRegularEarnCode,
                                           String earnCodeType)


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