org.kuali.rice.kew.identity.service.impl
Class IdentityHelperServiceImpl

java.lang.Object
  extended by 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 Summary
IdentityHelperServiceImpl()
           
 
Method Summary
 Group getGroup(GroupId groupId)
          Returns the Group for the given GroupId.
 Group getGroup(String groupId)
          Returns the Group for the given groupId.
 Group getGroupByName(String namespaceCode, String name)
          Returns the Group for the given namespaceCode and name.
 String getIdForGroupName(String namespace, String groupName)
           
 String getIdForPrincipalName(String principalName)
           
 Person getPerson(String principalId)
          Returns the Person for the given principal id.
 Person getPersonByEmployeeId(String employeeId)
          Returns the Person for the given employee id.
 Person getPersonByPrincipalName(String principalName)
          Returns the Person for the given principal name.
 Principal getPrincipal(String principalId)
          Returns the KimPrincipal for the given principal id.
 Principal getPrincipal(UserId userId)
          Returns the principal for the given UserId.
 Principal getPrincipalByPrincipalName(String principalName)
          Returns the KimPrincipal for the given principal name.
 Recipient getPrincipalRecipient(String principalId)
          Returns the Recipient for the given principalId.
 Principal getSystemPrincipal()
          Returns the principal for the "system user".
 void validatePrincipalId(String principalId)
          Checks that the given principalId is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityHelperServiceImpl

public IdentityHelperServiceImpl()
Method Detail

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 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 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 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 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 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 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 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 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 Principal getPrincipal(UserId userId)
Description copied from interface: IdentityHelperService
Returns the principal for the given UserId.

Specified by:
getPrincipal in interface IdentityHelperService

getSystemPrincipal

public 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


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