org.kuali.kpme.core.assignment.dao
Interface AssignmentDao

All Known Implementing Classes:
AssignmentDaoOjbImpl

public interface AssignmentDao


Method Summary
 void delete(Assignment assignment)
          Delete an assignment
 List<Assignment> findAssignments(String principalId, org.joda.time.LocalDate asOfDate)
          Returns all assignments for the provided principalId that are valid as of the specified payPeriodEndDate.
 List<Assignment> findAssignmentsWithinPeriod(String principalId, org.joda.time.LocalDate startDate, org.joda.time.LocalDate endDate)
           
 List<Assignment> getActiveAssignments(org.joda.time.LocalDate asOfDate)
           
 List<Assignment> getActiveAssignmentsForJob(String principalId, Long jobNumber, org.joda.time.LocalDate asOfDate)
          KPME-1129 Get a list of active assignments based on principalId and jobNumber as of a particular date
 List<Assignment> getActiveAssignmentsInWorkArea(Long workArea, org.joda.time.LocalDate asOfDate)
          Get list of active assignments in a given work area as of a particular date
 List<Assignment> getActiveAssignmentsInWorkAreas(List<Long> workAreas, org.joda.time.LocalDate asOfDate)
           
 Assignment getAssignment(String tkAssignmentId)
           
 Assignment getAssignment(String principalId, Long jobNumber, Long workArea, Long task, org.joda.time.LocalDate asOfDate)
           
 Assignment getAssignmentForTargetPrincipal(Long job, Long workArea, Long task, org.joda.time.LocalDate asOfDate)
           
 List<Assignment> getAssignments(List<String> workAreaList, org.joda.time.LocalDate effdt, org.joda.time.LocalDate startDate, org.joda.time.LocalDate endDate)
           
 Assignment getMaxTimestampAssignment(String principalId)
           
 List<String> getPrincipalIds(List<String> workAreaList, org.joda.time.LocalDate effdt, org.joda.time.LocalDate startDate, org.joda.time.LocalDate endDate)
           
 void saveOrUpdate(Assignment assignment)
          Save or update the given assignment
 void saveOrUpdate(List<Assignment> assignments)
          Save of update the given list of assignments
 List<Assignment> searchAssignments(org.joda.time.LocalDate fromEffdt, org.joda.time.LocalDate toEffdt, String principalId, String jobNumber, String dept, String workArea, String active, String showHistory)
           
 

Method Detail

findAssignments

List<Assignment> findAssignments(String principalId,
                                 org.joda.time.LocalDate asOfDate)
Returns all assignments for the provided principalId that are valid as of the specified payPeriodEndDate.

Parameters:
principalId -
asOfDate -
Returns:

saveOrUpdate

void saveOrUpdate(Assignment assignment)
Save or update the given assignment

Parameters:
assignment -

saveOrUpdate

void saveOrUpdate(List<Assignment> assignments)
Save of update the given list of assignments

Parameters:
assignments -

delete

void delete(Assignment assignment)
Delete an assignment

Parameters:
assignment -

getActiveAssignmentsInWorkArea

List<Assignment> getActiveAssignmentsInWorkArea(Long workArea,
                                                org.joda.time.LocalDate asOfDate)
Get list of active assignments in a given work area as of a particular date

Parameters:
workArea -
asOfDate -
Returns:

getActiveAssignmentsInWorkAreas

List<Assignment> getActiveAssignmentsInWorkAreas(List<Long> workAreas,
                                                 org.joda.time.LocalDate asOfDate)

getAssignment

Assignment getAssignment(String tkAssignmentId)

getAssignmentForTargetPrincipal

Assignment getAssignmentForTargetPrincipal(Long job,
                                           Long workArea,
                                           Long task,
                                           org.joda.time.LocalDate asOfDate)

getActiveAssignments

List<Assignment> getActiveAssignments(org.joda.time.LocalDate asOfDate)

getAssignment

Assignment getAssignment(String principalId,
                         Long jobNumber,
                         Long workArea,
                         Long task,
                         org.joda.time.LocalDate asOfDate)

getActiveAssignmentsForJob

List<Assignment> getActiveAssignmentsForJob(String principalId,
                                            Long jobNumber,
                                            org.joda.time.LocalDate asOfDate)
KPME-1129 Get a list of active assignments based on principalId and jobNumber as of a particular date

Parameters:
principalId -
jobNumber -
asOfDate -
Returns:

findAssignmentsWithinPeriod

List<Assignment> findAssignmentsWithinPeriod(String principalId,
                                             org.joda.time.LocalDate startDate,
                                             org.joda.time.LocalDate endDate)

searchAssignments

List<Assignment> searchAssignments(org.joda.time.LocalDate fromEffdt,
                                   org.joda.time.LocalDate toEffdt,
                                   String principalId,
                                   String jobNumber,
                                   String dept,
                                   String workArea,
                                   String active,
                                   String showHistory)

getMaxTimestampAssignment

Assignment getMaxTimestampAssignment(String principalId)

getPrincipalIds

List<String> getPrincipalIds(List<String> workAreaList,
                             org.joda.time.LocalDate effdt,
                             org.joda.time.LocalDate startDate,
                             org.joda.time.LocalDate endDate)

getAssignments

List<Assignment> getAssignments(List<String> workAreaList,
                                org.joda.time.LocalDate effdt,
                                org.joda.time.LocalDate startDate,
                                org.joda.time.LocalDate endDate)


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