org.kuali.hr.time.detail.web
Class ActionFormUtils

java.lang.Object
  extended by org.kuali.hr.time.detail.web.ActionFormUtils

public class ActionFormUtils
extends Object


Constructor Summary
ActionFormUtils()
           
 
Method Summary
static void addUnapprovedIPWarningFromClockLog(TimeDetailActionFormBase tdaf)
           
static void addUniqueWarningsToForm(TimeDetailActionFormBase tdaf, List<String> warningMessages)
           
static void addWarningTextFromEarnGroup(TimeDetailActionFormBase tdaf)
           
static Map<String,String> buildAssignmentStyleClassMap(List<TimeBlock> timeBlocks)
           
static Map<String,String> buildAssignmentStyleClassMap(List<TimeBlock> timeBlocks, List<LeaveBlock> leaveBlocks)
           
static List<CalendarEntries> getAllCalendarEntriesForYear(List<CalendarEntries> entries, String year)
           
static String getLeaveBlocksJson(List<LeaveBlock> leaveBlocks)
          This method will build the leave blocks JSON data structure needed for calendar manipulation and processing on the client side.
static boolean getOnCurrentPeriodFlag(CalendarEntries pce)
           
static Map<String,String> getPayPeriodsMap(List<CalendarEntries> payPeriods)
           
static int getPlanningMonthsForEmployee(String principalid)
           
static String getTimeBlocksJson(List<TimeBlock> timeBlocks)
          This method will build the JSON data structure needed for calendar manipulation and processing on the client side.
static String getUnitOfTimeForEarnCode(EarnCode earnCode)
           
static void validateHourLimit(TimeDetailActionFormBase tdaf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionFormUtils

public ActionFormUtils()
Method Detail

validateHourLimit

public static void validateHourLimit(TimeDetailActionFormBase tdaf)
                              throws Exception
Throws:
Exception

addWarningTextFromEarnGroup

public static void addWarningTextFromEarnGroup(TimeDetailActionFormBase tdaf)
                                        throws Exception
Throws:
Exception

addUnapprovedIPWarningFromClockLog

public static void addUnapprovedIPWarningFromClockLog(TimeDetailActionFormBase tdaf)

addUniqueWarningsToForm

public static void addUniqueWarningsToForm(TimeDetailActionFormBase tdaf,
                                           List<String> warningMessages)

buildAssignmentStyleClassMap

public static Map<String,String> buildAssignmentStyleClassMap(List<TimeBlock> timeBlocks,
                                                              List<LeaveBlock> leaveBlocks)

buildAssignmentStyleClassMap

public static Map<String,String> buildAssignmentStyleClassMap(List<TimeBlock> timeBlocks)

getTimeBlocksJson

public static String getTimeBlocksJson(List<TimeBlock> timeBlocks)
This method will build the JSON data structure needed for calendar manipulation and processing on the client side. Start and End times here are based on the pre-timezone adjusted times startDisplayTime, and endDisplayTime.

Parameters:
timeBlocks -
Returns:

getLeaveBlocksJson

public static String getLeaveBlocksJson(List<LeaveBlock> leaveBlocks)
This method will build the leave blocks JSON data structure needed for calendar manipulation and processing on the client side.

Parameters:
leaveBlocks -
Returns:

getPayPeriodsMap

public static Map<String,String> getPayPeriodsMap(List<CalendarEntries> payPeriods)

getOnCurrentPeriodFlag

public static boolean getOnCurrentPeriodFlag(CalendarEntries pce)

getUnitOfTimeForEarnCode

public static String getUnitOfTimeForEarnCode(EarnCode earnCode)

getPlanningMonthsForEmployee

public static int getPlanningMonthsForEmployee(String principalid)

getAllCalendarEntriesForYear

public static List<CalendarEntries> getAllCalendarEntriesForYear(List<CalendarEntries> entries,
                                                                 String year)


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