org.kuali.kpme.core.service.role
Class KPMERoleServiceImpl

java.lang.Object
  extended by org.kuali.kpme.core.service.role.KPMERoleServiceImpl
All Implemented Interfaces:
KPMERoleService

public class KPMERoleServiceImpl
extends Object
implements KPMERoleService


Constructor Summary
KPMERoleServiceImpl()
           
 
Method Summary
 DepartmentService getDepartmentService()
           
 List<String> getDepartmentsForPrincipalInRole(String principalId, String namespaceCode, String roleName, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
          Gets the departments for the given principalId in the role roleName.
 List<String> getDepartmentsForPrincipalInRoles(String principalId, List<String> roleIds, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
          Gets the departments for the given principalId in the roles roleIds.
protected  String getDerivedRoleServiceName(String kimTypeId)
          Gets the derived role service name for kimTypeId.
 org.kuali.rice.kim.api.group.GroupService getGroupService()
           
 org.kuali.rice.kim.api.type.KimTypeInfoService getKimTypeInfoService()
           
 List<String> getLocationsForPrincipalInRole(String principalId, String namespaceCode, String roleName, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
          Gets the locations for the given principalId in the role roleName.
 List<String> getLocationsForPrincipalInRoles(String principalId, List<String> roleIds, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
          Gets the locations for the given principalId in the roles roleIds.
 List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembers(String namespaceCode, String roleName, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
          Gets the members of the role roleName.
 List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembers(String namespaceCode, String roleName, Map<String,String> qualification, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
          Gets the members of the role roleName for the given role qualifiers.
 List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInDepartment(String namespaceCode, String roleName, String department, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
          Gets the members of the role roleName for the given department.
 List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInLocation(String namespaceCode, String roleName, String location, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
          Gets the members of the role roleName for the given location.
 List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInPosition(String namespaceCode, String roleName, String position, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
           
 List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInWorkArea(String namespaceCode, String roleName, Long workArea, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
          Gets the members of the role roleName for the given work area.
 org.kuali.rice.kim.api.role.RoleService getRoleService()
           
protected  org.kuali.rice.kim.framework.role.RoleTypeService getRoleTypeService(org.kuali.rice.kim.api.role.Role role)
          Gets the derived role service for role.
 WorkAreaService getWorkAreaService()
           
 List<Long> getWorkAreasForPrincipalInRole(String principalId, String namespaceCode, String roleName, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
          Gets the work areas for the given principalId in the role roleName.
 List<Long> getWorkAreasForPrincipalInRoles(String principalId, List<String> roleIds, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
          Gets the work areas for the given principalId in the role roleName.
 boolean principalHasRole(String principalId, String namespaceCode, String roleName, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId has the role roleName.
 boolean principalHasRole(String principalId, String namespaceCode, String roleName, Map<String,String> qualification, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId has the role roleName depending on the given role qualifications.
 boolean principalHasRoleInDepartment(String principalId, String namespaceCode, String roleName, String department, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId has the role roleName depending on the given department.
 boolean principalHasRoleInLocation(String principalId, String namespaceCode, String roleName, String location, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId has the role roleName depending on the given location.
 boolean principalHasRoleInWorkArea(String principalId, String namespaceCode, String roleName, Long workArea, org.joda.time.DateTime asOfDate)
          Checks whether the given principalId has the role roleName depending on the given work area.
 void setDepartmentService(DepartmentService departmentService)
           
 void setGroupService(org.kuali.rice.kim.api.group.GroupService groupService)
           
 void setKimTypeInfoService(org.kuali.rice.kim.api.type.KimTypeInfoService kimTypeInfoService)
           
 void setRoleService(org.kuali.rice.kim.api.role.RoleService roleService)
           
 void setWorkAreaService(WorkAreaService workAreaService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KPMERoleServiceImpl

public KPMERoleServiceImpl()
Method Detail

principalHasRole

public boolean principalHasRole(String principalId,
                                String namespaceCode,
                                String roleName,
                                org.joda.time.DateTime asOfDate)
Description copied from interface: KPMERoleService
Checks whether the given principalId has the role roleName.

Specified by:
principalHasRole in interface KPMERoleService
Parameters:
principalId - The person to check the role for
namespaceCode - The namespace of the role
roleName - The name of the role
asOfDate - The effective date of the role
Returns:
true if principalId has the role roleName, false otherwise.

principalHasRole

public boolean principalHasRole(String principalId,
                                String namespaceCode,
                                String roleName,
                                Map<String,String> qualification,
                                org.joda.time.DateTime asOfDate)
Description copied from interface: KPMERoleService
Checks whether the given principalId has the role roleName depending on the given role qualifications.

Specified by:
principalHasRole in interface KPMERoleService
Parameters:
principalId - The person to check the role for
namespaceCode - The namespace of the role
roleName - The name of the role
qualification - The map of role qualifiers for the person
asOfDate - The effective date of the role
Returns:
true if principalId has the role roleName, false otherwise.

principalHasRoleInWorkArea

public boolean principalHasRoleInWorkArea(String principalId,
                                          String namespaceCode,
                                          String roleName,
                                          Long workArea,
                                          org.joda.time.DateTime asOfDate)
Description copied from interface: KPMERoleService
Checks whether the given principalId has the role roleName depending on the given work area.

Specified by:
principalHasRoleInWorkArea in interface KPMERoleService
Parameters:
principalId - The person to check the role for
namespaceCode - The namespace of the role
roleName - The name of the role
workArea - The work area qualifier
asOfDate - The effective date of the role
Returns:
true if principalId has the role roleName for the given work area, false otherwise.

principalHasRoleInDepartment

public boolean principalHasRoleInDepartment(String principalId,
                                            String namespaceCode,
                                            String roleName,
                                            String department,
                                            org.joda.time.DateTime asOfDate)
Description copied from interface: KPMERoleService
Checks whether the given principalId has the role roleName depending on the given department.

Specified by:
principalHasRoleInDepartment in interface KPMERoleService
Parameters:
principalId - The person to check the role for
namespaceCode - The namespace of the role
roleName - The name of the role
department - The department qualifier
asOfDate - The effective date of the role
Returns:
true if principalId has the role roleName for the given department, false otherwise.

principalHasRoleInLocation

public boolean principalHasRoleInLocation(String principalId,
                                          String namespaceCode,
                                          String roleName,
                                          String location,
                                          org.joda.time.DateTime asOfDate)
Description copied from interface: KPMERoleService
Checks whether the given principalId has the role roleName depending on the given location.

Specified by:
principalHasRoleInLocation in interface KPMERoleService
Parameters:
principalId - The person to check the role for
namespaceCode - The namespace of the role
roleName - The name of the role
location - The location qualifier
asOfDate - The effective date of the role
Returns:
true if principalId has the role roleName for the given location, false otherwise.

getRoleMembers

public List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembers(String namespaceCode,
                                                                   String roleName,
                                                                   org.joda.time.DateTime asOfDate,
                                                                   boolean isActiveOnly)
Description copied from interface: KPMERoleService
Gets the members of the role roleName.

Specified by:
getRoleMembers in interface KPMERoleService
Parameters:
namespaceCode - The namespace of the role
roleName - The name of the role
asOfDate - The effective date of the role
Returns:
the list of role members in the role roleName.

getRoleMembers

public List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembers(String namespaceCode,
                                                                   String roleName,
                                                                   Map<String,String> qualification,
                                                                   org.joda.time.DateTime asOfDate,
                                                                   boolean isActiveOnly)
Description copied from interface: KPMERoleService
Gets the members of the role roleName for the given role qualifiers.

Specified by:
getRoleMembers in interface KPMERoleService
Parameters:
namespaceCode - The namespace of the role
roleName - The name of the role
qualification - The map of role qualifiers
asOfDate - The effective date of the role
Returns:
the list of role members in the role roleName.

getRoleMembersInPosition

public List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInPosition(String namespaceCode,
                                                                             String roleName,
                                                                             String position,
                                                                             org.joda.time.DateTime asOfDate,
                                                                             boolean isActiveOnly)
Specified by:
getRoleMembersInPosition in interface KPMERoleService

getRoleMembersInWorkArea

public List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInWorkArea(String namespaceCode,
                                                                             String roleName,
                                                                             Long workArea,
                                                                             org.joda.time.DateTime asOfDate,
                                                                             boolean isActiveOnly)
Description copied from interface: KPMERoleService
Gets the members of the role roleName for the given work area.

Specified by:
getRoleMembersInWorkArea in interface KPMERoleService
Parameters:
namespaceCode - The namespace of the role
roleName - The name of the role
workArea - The work area qualifier
asOfDate - The effective date of the role
Returns:
the list of role members in the role roleName for the given work area.

getRoleMembersInDepartment

public List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInDepartment(String namespaceCode,
                                                                               String roleName,
                                                                               String department,
                                                                               org.joda.time.DateTime asOfDate,
                                                                               boolean isActiveOnly)
Description copied from interface: KPMERoleService
Gets the members of the role roleName for the given department.

Specified by:
getRoleMembersInDepartment in interface KPMERoleService
Parameters:
namespaceCode - The namespace of the role
roleName - The name of the role
department - The department qualifier
asOfDate - The effective date of the role
Returns:
the list of role members in the role roleName for the given department.

getRoleMembersInLocation

public List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInLocation(String namespaceCode,
                                                                             String roleName,
                                                                             String location,
                                                                             org.joda.time.DateTime asOfDate,
                                                                             boolean isActiveOnly)
Description copied from interface: KPMERoleService
Gets the members of the role roleName for the given location.

Specified by:
getRoleMembersInLocation in interface KPMERoleService
Parameters:
namespaceCode - The namespace of the role
roleName - The name of the role
location - The location qualifier
asOfDate - The effective date of the role
Returns:
the list of role members in the role roleName for the given location.

getWorkAreasForPrincipalInRoles

public List<Long> getWorkAreasForPrincipalInRoles(String principalId,
                                                  List<String> roleIds,
                                                  org.joda.time.DateTime asOfDate,
                                                  boolean isActiveOnly)
Description copied from interface: KPMERoleService
Gets the work areas for the given principalId in the role roleName.

Specified by:
getWorkAreasForPrincipalInRoles in interface KPMERoleService
Parameters:
principalId - The person to check the role for
roleIds - The list of roleIds
asOfDate - The effective date of the role
isActiveOnly - Whether or not to get only active role members
Returns:
the list of work areas for the given principalId in the role roleName.

getWorkAreasForPrincipalInRole

public List<Long> getWorkAreasForPrincipalInRole(String principalId,
                                                 String namespaceCode,
                                                 String roleName,
                                                 org.joda.time.DateTime asOfDate,
                                                 boolean isActiveOnly)
Description copied from interface: KPMERoleService
Gets the work areas for the given principalId in the role roleName.

Specified by:
getWorkAreasForPrincipalInRole in interface KPMERoleService
Parameters:
principalId - The person to check the role for
namespaceCode - The namespace of the role
roleName - The name of the role
asOfDate - The effective date of the role
isActiveOnly - Whether or not to get only active role members
Returns:
the list of work areas for the given principalId in the role roleName.

getDepartmentsForPrincipalInRoles

public List<String> getDepartmentsForPrincipalInRoles(String principalId,
                                                      List<String> roleIds,
                                                      org.joda.time.DateTime asOfDate,
                                                      boolean isActiveOnly)
Description copied from interface: KPMERoleService
Gets the departments for the given principalId in the roles roleIds.

Specified by:
getDepartmentsForPrincipalInRoles in interface KPMERoleService
Parameters:
principalId - The person to check the role for
roleIds - The list of roleIds
asOfDate - The effective date of the role
isActiveOnly - Whether or not to get only active role members
Returns:
the list of work areas for the given principalId in the roles roleIds.

getDepartmentsForPrincipalInRole

public List<String> getDepartmentsForPrincipalInRole(String principalId,
                                                     String namespaceCode,
                                                     String roleName,
                                                     org.joda.time.DateTime asOfDate,
                                                     boolean isActiveOnly)
Description copied from interface: KPMERoleService
Gets the departments for the given principalId in the role roleName.

Specified by:
getDepartmentsForPrincipalInRole in interface KPMERoleService
Parameters:
principalId - The person to check the role for
namespaceCode - The namespace of the role
roleName - The name of the role
asOfDate - The effective date of the role
isActiveOnly - Whether or not to get only active role members
Returns:
the list of departments for the given principalId in the role roleName.

getLocationsForPrincipalInRoles

public List<String> getLocationsForPrincipalInRoles(String principalId,
                                                    List<String> roleIds,
                                                    org.joda.time.DateTime asOfDate,
                                                    boolean isActiveOnly)
Description copied from interface: KPMERoleService
Gets the locations for the given principalId in the roles roleIds.

Specified by:
getLocationsForPrincipalInRoles in interface KPMERoleService
Parameters:
principalId - The person to check the role for
roleIds - The list of roleIds
asOfDate - The effective date of the role
isActiveOnly - Whether or not to get only active role members
Returns:
the list of work areas for the given principalId in the roles roleIds.

getLocationsForPrincipalInRole

public List<String> getLocationsForPrincipalInRole(String principalId,
                                                   String namespaceCode,
                                                   String roleName,
                                                   org.joda.time.DateTime asOfDate,
                                                   boolean isActiveOnly)
Description copied from interface: KPMERoleService
Gets the locations for the given principalId in the role roleName.

Specified by:
getLocationsForPrincipalInRole in interface KPMERoleService
Parameters:
principalId - The person to check the role for
namespaceCode - The namespace of the role
roleName - The name of the role
asOfDate - The effective date of the role
isActiveOnly - Whether or not to get only active role members
Returns:
the list of locations for the given principalId in the role roleName.

getRoleTypeService

protected org.kuali.rice.kim.framework.role.RoleTypeService getRoleTypeService(org.kuali.rice.kim.api.role.Role role)
Gets the derived role service for role.

Parameters:
role - the role
Returns:
the derived role service name for role.

getDerivedRoleServiceName

protected String getDerivedRoleServiceName(String kimTypeId)
Gets the derived role service name for kimTypeId.

Parameters:
kimTypeId - the KIM type id
Returns:
the derived role service name for kimTypeId.

getDepartmentService

public DepartmentService getDepartmentService()

setDepartmentService

public void setDepartmentService(DepartmentService departmentService)

getGroupService

public org.kuali.rice.kim.api.group.GroupService getGroupService()

setGroupService

public void setGroupService(org.kuali.rice.kim.api.group.GroupService groupService)

getKimTypeInfoService

public org.kuali.rice.kim.api.type.KimTypeInfoService getKimTypeInfoService()

setKimTypeInfoService

public void setKimTypeInfoService(org.kuali.rice.kim.api.type.KimTypeInfoService kimTypeInfoService)

getRoleService

public org.kuali.rice.kim.api.role.RoleService getRoleService()

setRoleService

public void setRoleService(org.kuali.rice.kim.api.role.RoleService roleService)

getWorkAreaService

public WorkAreaService getWorkAreaService()

setWorkAreaService

public void setWorkAreaService(WorkAreaService workAreaService)


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