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 addUniqueWarningsToForm(TimeDetailActionFormBase tdaf, List<String> warningMessages)
           
static void addWarningTextFromEarnGroup(TimeDetailActionFormBase tdaf)
           
static Map<String,String> buildAssignmentStyleClassMap(List<TimeBlock> timeBlocks)
           
static boolean getOnCurrentPeriodFlag(CalendarEntries pce)
           
static Map<String,String> getPayPeriodsMap(List<CalendarEntries> payPeriods)
           
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

addUniqueWarningsToForm

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

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:

getPayPeriodsMap

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

getOnCurrentPeriodFlag

public static boolean getOnCurrentPeriodFlag(CalendarEntries pce)

getUnitOfTimeForEarnCode

public static String getUnitOfTimeForEarnCode(EarnCode earnCode)


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