org.kuali.hr.time.roles.dao
Interface TkRoleDao

All Known Implementing Classes:
TkRoleDaoSpringOjbImpl

public interface TkRoleDao


Method Summary
 List<TkRole> findInActiveRoles(String principalId, Date asOfDate, String roleName, Long workArea, String department, String chart)
          Returns a list of inactive roles matching the specified criteria.
 List<TkRole> findPositionRoles(String positionNumber, Date asOfDate, String roleName, Long workArea, String department, String chart)
           
 List<TkRole> findRoles(String principalId, Date asOfDate, String roleName, Long workArea, String department, String chart)
          Returns a list of roles matching the specified criteria.
 TkRole getInactiveRolesByPosition(String positionNumber)
           
 List<TkRole> getPositionRolesForWorkArea(Long workArea, Date asOfDate)
           
 TkRole getRole(String tkRoleId)
           
 TkRole getRolesByPosition(String positionNumber)
           
 void saveOrUpdateRole(TkRole role)
          A role to update/save
 void saveOrUpdateRoles(List<TkRole> roles)
          A list of roles to save.
 

Method Detail

findRoles

List<TkRole> findRoles(String principalId,
                       Date asOfDate,
                       String roleName,
                       Long workArea,
                       String department,
                       String chart)
Returns a list of roles matching the specified criteria. Nulls are valid as parameters, see parameter comments.

Parameters:
principalId - (optional - null is allowed)
asOfDate - The effective date (required)
roleName - (optional - null is allowed)
workArea - (optional - null is allowed)
department - (optional - null is allowed)
chart - (optional - null is allowed)
Returns:
A List of roles matching the specified parameters.

findPositionRoles

List<TkRole> findPositionRoles(String positionNumber,
                               Date asOfDate,
                               String roleName,
                               Long workArea,
                               String department,
                               String chart)
Parameters:
positionNumber -
asOfDate -
roleName -
workArea -
department -
chart -
Returns:

findInActiveRoles

List<TkRole> findInActiveRoles(String principalId,
                               Date asOfDate,
                               String roleName,
                               Long workArea,
                               String department,
                               String chart)
Returns a list of inactive roles matching the specified criteria. Nulls are valid as parameters, see parameter comments.

Parameters:
principalId - (optional - null is allowed)
asOfDate - The effective date (required)
roleName - (optional - null is allowed)
workArea - (optional - null is allowed)
department - (optional - null is allowed)
chart - (optional - null is allowed)
Returns:
A List of roles matching the specified parameters.

saveOrUpdateRole

void saveOrUpdateRole(TkRole role)
A role to update/save

Parameters:
role -

saveOrUpdateRoles

void saveOrUpdateRoles(List<TkRole> roles)
A list of roles to save.

Parameters:
roles -

getRole

TkRole getRole(String tkRoleId)

getRolesByPosition

TkRole getRolesByPosition(String positionNumber)

getInactiveRolesByPosition

TkRole getInactiveRolesByPosition(String positionNumber)

getPositionRolesForWorkArea

List<TkRole> getPositionRolesForWorkArea(Long workArea,
                                         Date asOfDate)


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