|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.hr.time.approval.service.TimeApproveServiceImpl
public class TimeApproveServiceImpl
Field Summary | |
---|---|
static int |
DAYS_WINDOW_DELTA
|
Constructor Summary | |
---|---|
TimeApproveServiceImpl()
|
Method Summary | |
---|---|
boolean |
doesApproverHavePrincipalsForCalendarGroup(Date asOfDate,
String calGroup)
|
List<CalendarEntries> |
getAllPayCalendarEntriesForApprover(String principalId,
Date currentDate)
|
List<ApprovalTimeSummaryRow> |
getApprovalSummaryRows(Date payBeginDate,
Date payEndDate,
String calGroup,
List<TKPerson> persons,
List<String> payCalendarLabels,
CalendarEntries payCalendarEntries)
Obtains a Map of Lists of ApprovalTimeSummaryRows. |
SortedSet<String> |
getApproverPayCalendarGroups(Date payBeginDate,
Date payEndDate)
Method to obtain all of the active Pay Calendar Group names for the current user / approver. |
com.google.common.collect.Multimap<String,Long> |
getDeptWorkAreasByDepts(Set<String> userDepts)
Method to create a map of the depts and their associated work areas based on the given depts. |
com.google.common.collect.Multimap<String,Long> |
getDeptWorkAreasByWorkAreas(Set<Long> approverWorkAreas)
Method to create a map of the depts and their associated work areas based on the given approver work areas. |
List<TimesheetDocumentHeader> |
getDocumentHeadersByPrincipalIds(Date payBeginDate,
Date payEndDate,
List<String> principalIds)
|
List<Map<String,Map<String,BigDecimal>>> |
getHoursByDayAssignmentBuckets(TkTimeBlockAggregate aggregate,
List<Assignment> approverAssignments,
List<String> payCalendarLabels)
|
Map<String,BigDecimal> |
getHoursToFlsaWeekMap(String principalId,
Date payEndDate,
List<String> payCalendarLabels,
List<TimeBlock> lstTimeBlocks,
Long workArea,
CalendarEntries payCalendarEntries,
Calendar payCalendar,
org.joda.time.DateTimeZone dateTimeZone,
List<org.joda.time.Interval> dayIntervals)
Aggregate TimeBlocks to hours per day and sum for flsa week (including previous/next weeks) |
Map<String,BigDecimal> |
getHoursToPayDayMap(String principalId,
Date payEndDate,
List<String> payCalendarLabels,
List<TimeBlock> lstTimeBlocks,
Long workArea,
CalendarEntries payCalendarEntries,
Calendar payCalendar,
org.joda.time.DateTimeZone dateTimeZone,
List<org.joda.time.Interval> dayIntervals)
Aggregate TimeBlocks to hours per day and sum for week |
List<org.kuali.rice.kew.api.note.Note> |
getNotesForDocument(String documentNumber)
Used to determine if there are notes on a document |
Map<String,CalendarEntries> |
getPayCalendarEntriesForApprover(String principalId,
Date currentDate,
String dept)
Method to provide a mapping of PayCalendarGroupNames to PayCalendarEntries to allow for various starting points in Approval Tab Navigation. |
Map<String,CalendarEntries> |
getPayCalendarEntriesForDept(String dept,
Date currentDate)
|
List<String> |
getPayCalendarLabelsForApprovalTab(Date payBeginDate,
Date payEndDate)
Get pay calendar labels for approval tab |
Map<String,TimesheetDocumentHeader> |
getPrincipalDocumehtHeader(List<TKPerson> persons,
Date payBeginDate,
Date payEndDate)
Method to create a map that contains the principal's id and corresponding timesheet document header. |
org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue |
getRouteHeader(String documentId)
|
List<String> |
getTimePrincipalIdsWithSearchCriteria(List<String> workAreaList,
String calendarGroup,
Date effdt,
Date beginDate,
Date endDate)
Get a list of unique principal ids with given criteria used to populate tables in Time approval page |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DAYS_WINDOW_DELTA
Constructor Detail |
---|
public TimeApproveServiceImpl()
Method Detail |
---|
public Map<String,CalendarEntries> getPayCalendarEntriesForDept(String dept, Date currentDate)
getPayCalendarEntriesForDept
in interface TimeApproveService
public Map<String,CalendarEntries> getPayCalendarEntriesForApprover(String principalId, Date currentDate, String dept)
TimeApproveService
getPayCalendarEntriesForApprover
in interface TimeApproveService
currentDate
- The current date. This method will search for active
assignments for this approver active as of this date, and 31 days prior
to pull back PayCalendarEntries.
public SortedSet<String> getApproverPayCalendarGroups(Date payBeginDate, Date payEndDate)
TimeApproveService
getApproverPayCalendarGroups
in interface TimeApproveService
public List<ApprovalTimeSummaryRow> getApprovalSummaryRows(Date payBeginDate, Date payEndDate, String calGroup, List<TKPerson> persons, List<String> payCalendarLabels, CalendarEntries payCalendarEntries)
TimeApproveService
getApprovalSummaryRows
in interface TimeApproveService
calGroup
- Specify a calendar group to filter by.
public List<TimesheetDocumentHeader> getDocumentHeadersByPrincipalIds(Date payBeginDate, Date payEndDate, List<String> principalIds)
public List<String> getPayCalendarLabelsForApprovalTab(Date payBeginDate, Date payEndDate)
getPayCalendarLabelsForApprovalTab
in interface TimeApproveService
public List<Map<String,Map<String,BigDecimal>>> getHoursByDayAssignmentBuckets(TkTimeBlockAggregate aggregate, List<Assignment> approverAssignments, List<String> payCalendarLabels)
public Map<String,BigDecimal> getHoursToPayDayMap(String principalId, Date payEndDate, List<String> payCalendarLabels, List<TimeBlock> lstTimeBlocks, Long workArea, CalendarEntries payCalendarEntries, Calendar payCalendar, org.joda.time.DateTimeZone dateTimeZone, List<org.joda.time.Interval> dayIntervals)
getHoursToPayDayMap
in interface TimeApproveService
public Map<String,BigDecimal> getHoursToFlsaWeekMap(String principalId, Date payEndDate, List<String> payCalendarLabels, List<TimeBlock> lstTimeBlocks, Long workArea, CalendarEntries payCalendarEntries, Calendar payCalendar, org.joda.time.DateTimeZone dateTimeZone, List<org.joda.time.Interval> dayIntervals)
getHoursToFlsaWeekMap
in interface TimeApproveService
public boolean doesApproverHavePrincipalsForCalendarGroup(Date asOfDate, String calGroup)
doesApproverHavePrincipalsForCalendarGroup
in interface TimeApproveService
public List<org.kuali.rice.kew.api.note.Note> getNotesForDocument(String documentNumber)
TimeApproveService
getNotesForDocument
in interface TimeApproveService
public List<String> getTimePrincipalIdsWithSearchCriteria(List<String> workAreaList, String calendarGroup, Date effdt, Date beginDate, Date endDate)
TimeApproveService
getTimePrincipalIdsWithSearchCriteria
in interface TimeApproveService
public Map<String,TimesheetDocumentHeader> getPrincipalDocumehtHeader(List<TKPerson> persons, Date payBeginDate, Date payEndDate)
TimeApproveService
getPrincipalDocumehtHeader
in interface TimeApproveService
public com.google.common.collect.Multimap<String,Long> getDeptWorkAreasByWorkAreas(Set<Long> approverWorkAreas)
TimeApproveService
getDeptWorkAreasByWorkAreas
in interface TimeApproveService
public com.google.common.collect.Multimap<String,Long> getDeptWorkAreasByDepts(Set<String> userDepts)
TimeApproveService
getDeptWorkAreasByDepts
in interface TimeApproveService
public org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue getRouteHeader(String documentId)
getRouteHeader
in interface TimeApproveService
public List<CalendarEntries> getAllPayCalendarEntriesForApprover(String principalId, Date currentDate)
getAllPayCalendarEntriesForApprover
in interface TimeApproveService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |