|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AssignmentService
Method Summary | |
---|---|
List<Assignment> |
filterAssignments(List<Assignment> assignments,
String flsaStatus,
boolean chkForLeaveEligible)
Filter the given list of assignments with given criteria |
List<Assignment> |
getActiveAssignments(Date asOfDate)
Get active assignments for all users for the current date CAUTION this method will return a lot of data in a normal production env It is intended to only be used in a batch setting |
List<Assignment> |
getActiveAssignmentsForJob(String principalId,
Long jobNumber,
Date asOfDate)
KPME-1129 Kagata Get a list of active assignments based on principalId and jobNumber as of a particular date |
List<Assignment> |
getActiveAssignmentsForWorkArea(Long workArea,
Date asOfDate)
Get all active assignments for a work area |
Assignment |
getAssignment(AssignmentDescriptionKey key,
Date asOfDate)
For a given AssignmentDescriptionKey return the matching assignment. |
Assignment |
getAssignment(LeaveCalendarDocument leaveCalendarDocument,
String assignmentKey)
|
Assignment |
getAssignment(List<Assignment> assignments,
String assignmentKey,
Date beginDate)
|
Assignment |
getAssignment(String tkAssignmentId)
Reverse lookup of an assignment based on the assignment id |
Assignment |
getAssignment(String principalId,
AssignmentDescriptionKey key,
Date asOfDate)
Fetch principal id and key as of a particular date |
Assignment |
getAssignment(TimesheetDocument timesheetDocument,
String assignmentKey)
Reverse lookup of an assignment based on the assignment key and the document |
AssignmentDescriptionKey |
getAssignmentDescriptionKey(String assignmentDesc)
Get Assignment Description key based off of description |
Map<String,String> |
getAssignmentDescriptions(Assignment assignment)
Get all assignment descriptions for an assignment |
Map<String,String> |
getAssignmentDescriptions(LeaveCalendarDocument lcd)
Get all assignment descriptions for a document |
Map<String,String> |
getAssignmentDescriptions(TimesheetDocument td,
boolean clockOnlyAssignments)
Get all assignment descriptions for a document |
Map<String,String> |
getAssignmentDescriptionsForAssignments(List<Assignment> assignments)
Get all assignment descriptions for given list of Assignments |
List<Assignment> |
getAssignments(List<String> workAreaList,
Date effdt,
Date startDate,
Date endDate)
|
List<Assignment> |
getAssignments(String principalId,
Date asOfDate)
Fetches a list of Assignments for a given principal Id as of a particular date |
List<Assignment> |
getAssignmentsByCalEntryForLeaveCalendar(String principalId,
CalendarEntries calendarEntry)
Get assignments for Leave Calendar by calendar entry |
List<Assignment> |
getAssignmentsByCalEntryForTimeCalendar(String principalId,
CalendarEntries calendarEntry)
Get assignments for Time Calendar by calendar entry |
List<Assignment> |
getAssignmentsByPayEntry(String principalId,
CalendarEntries payCalendarEntry)
Get assignments by pay calendar entry |
Assignment |
getAssignmentToApplyScheduledTimeOff(TimesheetDocument timesheetDocument,
Date payEndDate)
Get assignment that applies to primary job of employee to be used in calculating system scheduled time off |
Assignment |
getMaxTimestampAssignment(String principalId)
|
List<String> |
getPrincipalIds(List<String> workAreaList,
Date effdt,
Date startDate,
Date endDate)
Get list of unique principalIds with given workarea list and dates |
List<Assignment> |
searchAssignments(Date fromEffdt,
Date toEffdt,
String principalId,
String jobNumber,
String dept,
String workArea,
String active,
String showHistory)
|
Method Detail |
---|
@Cacheable(value="KPME/Assignment", key="\'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") List<Assignment> getAssignments(String principalId, Date asOfDate)
principalId
- asOfDate
-
Assignment getAssignment(TimesheetDocument timesheetDocument, String assignmentKey)
timesheetDocument
- assignmentKey
-
@Cacheable(value="KPME/Assignment", key="\'tkAssignmentId=\' + #p0") Assignment getAssignment(String tkAssignmentId)
tkAssignmentId
-
AssignmentDescriptionKey getAssignmentDescriptionKey(String assignmentDesc)
assignmentDesc
-
Map<String,String> getAssignmentDescriptions(TimesheetDocument td, boolean clockOnlyAssignments)
td
- clockOnlyAssignments
-
Map<String,String> getAssignmentDescriptions(Assignment assignment)
assignment
-
@Cacheable(value="KPME/Assignment", key="\'workArea=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") List<Assignment> getActiveAssignmentsForWorkArea(Long workArea, Date asOfDate)
workArea
- asOfDate
-
@Cacheable(value="KPME/Assignment", key="\'asOfDate=\' + #p0") List<Assignment> getActiveAssignments(Date asOfDate)
asOfDate
-
Assignment getAssignment(AssignmentDescriptionKey key, Date asOfDate)
key
-
Assignment getAssignment(String principalId, AssignmentDescriptionKey key, Date asOfDate)
principalId
- key
- asOfDate
-
List<Assignment> getAssignmentsByPayEntry(String principalId, CalendarEntries payCalendarEntry)
principalId
- payCalendarEntry
-
List<Assignment> getAssignmentsByCalEntryForTimeCalendar(String principalId, CalendarEntries calendarEntry)
principalId
- calendarEntry
-
List<Assignment> getAssignmentsByCalEntryForLeaveCalendar(String principalId, CalendarEntries calendarEntry)
principalId
- calendarEntry
-
@Cacheable(value="KPME/Assignment", key="\'principalId=\' + #p0 + \'|\' + \'jobNumber=\' + #p1 + \'|\' + \'asOfDate=\' + #p2") List<Assignment> getActiveAssignmentsForJob(String principalId, Long jobNumber, Date asOfDate)
principalId
- jobNumber
- asOfDate
-
List<Assignment> searchAssignments(Date fromEffdt, Date toEffdt, String principalId, String jobNumber, String dept, String workArea, String active, String showHistory)
Map<String,String> getAssignmentDescriptions(LeaveCalendarDocument lcd)
td
- clockOnlyAssignments
-
Map<String,String> getAssignmentDescriptionsForAssignments(List<Assignment> assignments)
assignments
-
Assignment getAssignment(LeaveCalendarDocument leaveCalendarDocument, String assignmentKey)
Assignment getAssignment(List<Assignment> assignments, String assignmentKey, Date beginDate)
Assignment getMaxTimestampAssignment(String principalId)
List<Assignment> filterAssignments(List<Assignment> assignments, String flsaStatus, boolean chkForLeaveEligible)
assignments
- flsaStatus
- chkForLeaveEligible
-
Assignment getAssignmentToApplyScheduledTimeOff(TimesheetDocument timesheetDocument, Date payEndDate)
timesheetDocument
- payEndDate
-
List<String> getPrincipalIds(List<String> workAreaList, Date effdt, Date startDate, Date endDate)
workAreaList
- effdt
- startDate
- endDate
-
List<Assignment> getAssignments(List<String> workAreaList, Date effdt, Date startDate, Date endDate)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |