Class IdentityHelperServiceImpl

java.lang.Object
org.kuali.rice.kew.identity.service.impl.IdentityHelperServiceImpl
All Implemented Interfaces:
IdentityHelperService

public class IdentityHelperServiceImpl extends Object implements IdentityHelperService
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • IdentityHelperServiceImpl

      public IdentityHelperServiceImpl()
  • Method Details

    • getIdForPrincipalName

      public String getIdForPrincipalName(String principalName)
      Specified by:
      getIdForPrincipalName in interface IdentityHelperService
    • validatePrincipalId

      public void validatePrincipalId(String principalId)
      Description copied from interface: IdentityHelperService
      Checks that the given principalId is valid. Throws a RiceRuntimeException if it is not.
      Specified by:
      validatePrincipalId in interface IdentityHelperService
    • getIdForGroupName

      public String getIdForGroupName(String namespace, String groupName)
      Specified by:
      getIdForGroupName in interface IdentityHelperService
    • getPrincipalRecipient

      public Recipient getPrincipalRecipient(String principalId)
      Description copied from interface: IdentityHelperService
      Returns the Recipient for the given principalId. Throws an exception if the principalId cannot be resolved to a recipient.
      Specified by:
      getPrincipalRecipient in interface IdentityHelperService
    • getPrincipal

      public org.kuali.rice.kim.api.identity.principal.Principal getPrincipal(String principalId)
      Description copied from interface: IdentityHelperService
      Returns the KimPrincipal for the given principal id. Throws an exception if the principal id cannot be resolved to a principal.
      Specified by:
      getPrincipal in interface IdentityHelperService
    • getPrincipalByPrincipalName

      public org.kuali.rice.kim.api.identity.principal.Principal getPrincipalByPrincipalName(String principalName)
      Description copied from interface: IdentityHelperService
      Returns the KimPrincipal for the given principal name. Throws an exception if the principal name cannot be resolved to a principal.
      Specified by:
      getPrincipalByPrincipalName in interface IdentityHelperService
    • getGroupByName

      public org.kuali.rice.kim.api.group.Group getGroupByName(String namespaceCode, String name)
      Description copied from interface: IdentityHelperService
      Returns the Group for the given namespaceCode and name. Throws an exception if the namespaceCode and name cannot be resolved to a group.
      Specified by:
      getGroupByName in interface IdentityHelperService
    • getPerson

      public org.kuali.rice.kim.api.identity.Person getPerson(String principalId)
      Description copied from interface: IdentityHelperService
      Returns the Person for the given principal id. Throws an exception if the principal id cannot be resolved to a person.
      Specified by:
      getPerson in interface IdentityHelperService
    • getPersonByPrincipalName

      public org.kuali.rice.kim.api.identity.Person getPersonByPrincipalName(String principalName)
      Description copied from interface: IdentityHelperService
      Returns the Person for the given principal name. Throws an exception if the principal name cannot be resolved to a person.
      Specified by:
      getPersonByPrincipalName in interface IdentityHelperService
    • getPersonByEmployeeId

      public org.kuali.rice.kim.api.identity.Person getPersonByEmployeeId(String employeeId)
      Description copied from interface: IdentityHelperService
      Returns the Person for the given employee id. Throws an exception if the principal name cannot be resolved to a person.
      Specified by:
      getPersonByEmployeeId in interface IdentityHelperService
    • getGroup

      public org.kuali.rice.kim.api.group.Group getGroup(String groupId)
      Description copied from interface: IdentityHelperService
      Returns the Group for the given groupId. Throws an exception if the groupId cannot be resolved to a group.
      Specified by:
      getGroup in interface IdentityHelperService
    • getGroup

      public org.kuali.rice.kim.api.group.Group getGroup(GroupId groupId)
      Description copied from interface: IdentityHelperService
      Returns the Group for the given GroupId. Throws an exception if the groupId cannot be resolved to a group.
      Specified by:
      getGroup in interface IdentityHelperService
    • getPrincipal

      public org.kuali.rice.kim.api.identity.principal.Principal getPrincipal(org.kuali.rice.kew.api.user.UserId userId)
      Description copied from interface: IdentityHelperService
      Returns the principal for the given UserId.
      Specified by:
      getPrincipal in interface IdentityHelperService
    • getSystemPrincipal

      public org.kuali.rice.kim.api.identity.principal.Principal getSystemPrincipal()
      Description copied from interface: IdentityHelperService
      Returns the principal for the "system user". This is a user that can be used in the cases where an actual user cannot be determined.
      Specified by:
      getSystemPrincipal in interface IdentityHelperService