|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TkRoleService
Method Summary | |
---|---|
Set<String> |
getActivePrincipalsForWorkAreas(Set<Long> workAreas,
Date asOfDate)
Provides a unique set of principal ids that have active assignments in the given work areas. |
List<TkRole> |
getDepartmentInactiveRoles(String department)
Fetch all Inactive Roles for a given Department |
List<TkRole> |
getDepartmentInactiveRoles(String department,
String roleName,
Date asOfDate)
Fetch all Inactive Roles for a given Department and Role Name as of a particular date |
List<TkRole> |
getDepartmentRoles(String department)
Fetch all Roles for a given Department |
List<TkRole> |
getDepartmentRoles(String department,
String roleName,
Date asOfDate)
Fetch all Roles for a given Department and Role Name as of a particular date |
List<TkRole> |
getInactiveRoles(String principalId,
Date asOfDate)
Fetch all inactive roles for a given Principal ID as of a particular date |
TkRole |
getInactiveRolesByPosition(String positionNumber)
|
List<TkRole> |
getInActiveWorkAreaRoles(Long workArea)
Fetch all Inactive Roles for a given work area |
List<TkRole> |
getInActiveWorkAreaRoles(Long workArea,
String roleName,
Date asOfDate)
Fetch all Inactive Roles for a given work area and role name as of a particular date |
List<TkRole> |
getPositionRolesForWorkArea(Long workArea,
Date asOfDate)
|
List<String> |
getResponsibleParties(Assignment assignment,
String roleName,
Date asOfDate)
Gets the list of principal IDs responsible for the provided assignment / role name combination. |
TkRole |
getRole(String tkRoleId)
Fetches Role by primary key |
List<TkRole> |
getRoles(String principalId,
Date asOfDate)
Fetch all roles for a given Principal ID as of a particular date |
List<TkRole> |
getRoles(String principalId,
Date asOfDate,
String roleName,
Long workArea,
String department)
|
List<TkRole> |
getRoles(String principalId,
String roleName,
Date asOfDate)
Fetch all roles for a given Principal ID and Role Name as of a particular date |
TkRole |
getRolesByPosition(String positionNumber)
Fetches Role by position number |
List<TkRole> |
getWorkAreaRoles(Long workArea)
Fetch all Roles for a given Work Area |
List<TkRole> |
getWorkAreaRoles(Long workArea,
String roleName,
Date asOfDate)
Fetch all Roles for a given work area and role name as of a particular date |
Set<Long> |
getWorkAreasForApprover(String principalId,
Date asOfDate)
Provides a unique set of work areas that this user is an approver for. |
void |
saveOrUpdate(List<TkRole> roles)
Save or Update a List of TkRole objects |
void |
saveOrUpdate(TkRole role)
Save or Update a given TkRole |
Method Detail |
---|
@Cacheable(value="KPME/TkRole", key="\'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") List<TkRole> getRoles(String principalId, Date asOfDate)
principalId
- asOfDate
-
@Cacheable(value="KPME/TkRole", key="\'{getInactiveRoles}\' + \'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") List<TkRole> getInactiveRoles(String principalId, Date asOfDate)
principalId
- asOfDate
-
@Cacheable(value="KPME/TkRole", key="\'principalId=\' + #p0 + \'|\' + \'roleName=\' + #p1 + \'|\' + \'asOfDate=\' + #p2") List<TkRole> getRoles(String principalId, String roleName, Date asOfDate)
principalId
- roleName
- asOfDate
-
@Cacheable(value="KPME/TkRole", key="\'workArea=\' + #p0") List<TkRole> getWorkAreaRoles(Long workArea)
workArea
-
@Cacheable(value="KPME/TkRole", key="\'workArea=\' + #p0 + \'|\' + \'roleName=\' + #p1 + \'|\' + \'asOfDate=\' + #p2") List<TkRole> getWorkAreaRoles(Long workArea, String roleName, Date asOfDate)
workArea
- roleName
- asOfDate
-
@Cacheable(value="KPME/TkRole", key="\'{getInActiveWorkAreaRoles}\' + \'workArea=\' + #p0") List<TkRole> getInActiveWorkAreaRoles(Long workArea)
workArea
-
@Cacheable(value="KPME/TkRole", key="\'{getInActiveWorkAreaRoles}\' + \'workArea=\' + #p0 + \'|\' + \'roleName=\' + #p1 + \'|\' + \'asOfDate=\' + #p2") List<TkRole> getInActiveWorkAreaRoles(Long workArea, String roleName, Date asOfDate)
workArea
- roleName
- asOfDate
-
@Cacheable(value="KPME/TkRole", key="\'department=\' + #p0 + \'|\' + \'roleName=\' + #p1 + \'|\' + \'asOfDate=\' + #p2") List<TkRole> getDepartmentRoles(String department, String roleName, Date asOfDate)
department
- roleName
- asOfDate
-
@Cacheable(value="KPME/TkRole", key="\'{getDepartmentInactiveRoles}\' + \'department=\' + #p0 + \'|\' + \'roleName=\' + #p1 + \'|\' + \'asOfDate=\' + #p2") List<TkRole> getDepartmentInactiveRoles(String department, String roleName, Date asOfDate)
department
- roleName
- asOfDate
-
@Cacheable(value="KPME/TkRole", key="\'department=\' + #p0") List<TkRole> getDepartmentRoles(String department)
department
-
@Cacheable(value="KPME/TkRole", key="\'{getDepartmentInactiveRoles}\' + \'department=\' + #p0") List<TkRole> getDepartmentInactiveRoles(String department)
department
-
@CacheEvict(value={"KPME/TkRole","KPME/TkRoleGroup"}, allEntries=true) void saveOrUpdate(TkRole role)
role
- @CacheEvict(value={"KPME/TkRole","KPME/TkRoleGroup"}, allEntries=true) void saveOrUpdate(List<TkRole> roles)
roles
- List<String> getResponsibleParties(Assignment assignment, String roleName, Date asOfDate)
assignment
- the assignment to queryroleName
- The role we are interested in.asOfDate
- effective date
@Cacheable(value="KPME/TkRole", key="\'{getWorkAreasForApprover}\' + \'principalId=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") Set<Long> getWorkAreasForApprover(String principalId, Date asOfDate)
principalId
- The principal to retrieve roles for.asOfDate
- effective date
Set<String> getActivePrincipalsForWorkAreas(Set<Long> workAreas, Date asOfDate)
workAreas
- A set of work area numbers.asOfDate
- effective date
@Cacheable(value="KPME/TkRole", key="\'tkRoleId=\' + #p0") TkRole getRole(String tkRoleId)
@Cacheable(value="KPME/TkRole", key="\'positionNumber=\' + #p0") TkRole getRolesByPosition(String positionNumber)
@Cacheable(value="KPME/TkRole", key="\'{getInactiveRolesByPosition}\' + \'positionNumber=\' + #p0") TkRole getInactiveRolesByPosition(String positionNumber)
@Cacheable(value="KPME/TkRole", key="\'{getPositionRolesForWorkArea}\' + \'workArea=\' + #p0 + \'|\' + \'asOfDate=\' + #p1") List<TkRole> getPositionRolesForWorkArea(Long workArea, Date asOfDate)
@Cacheable(value="KPME/TkRole", key="\'principalId=\' + #p0+ \'|\' + \'asOfDate=\' + #p1+ \'|\' + \'roleName=\' + #p2+ \'|\' + \'workArea=\' + #p3+ \'|\' + \'department=\' + #p4") List<TkRole> getRoles(String principalId, Date asOfDate, String roleName, Long workArea, String department)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |