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 java.lang.Object
implements IdentityHelperService

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
IdentityHelperServiceImpl()
           
 
Method Summary
 org.kuali.rice.kim.bo.Group getGroup(GroupId groupId)
           
 org.kuali.rice.kim.bo.Group getGroup(java.lang.String groupId)
          Returns the Group for the given groupId.
 org.kuali.rice.kim.bo.Group getGroupByName(java.lang.String namespaceCode, java.lang.String name)
           
 java.lang.String getGroupId(GroupId groupId)
           
 Recipient getGroupRecipient(java.lang.String groupId)
           
 java.lang.String getIdForGroupName(java.lang.String namespace, java.lang.String groupName)
           
 java.lang.String getIdForPrincipalName(java.lang.String principalName)
           
 org.kuali.rice.kim.bo.Person getPerson(java.lang.String principalId)
          Returns the Person for the given principal id.
 org.kuali.rice.kim.bo.Person getPersonByEmployeeId(java.lang.String employeeId)
          Returns the Person for the given employee id.
 org.kuali.rice.kim.bo.Person getPersonByPrincipalName(java.lang.String principalName)
          Returns the Person for the given principal name.
 org.kuali.rice.kim.bo.entity.KimPrincipal getPrincipal(java.lang.String principalId)
          Returns the KimPrincipal for the given principal id.
 org.kuali.rice.kim.bo.entity.KimPrincipal getPrincipal(org.kuali.rice.kew.user.UserId userId)
           
 org.kuali.rice.kim.bo.entity.KimPrincipal getPrincipal(org.kuali.rice.kew.dto.UserIdDTO userId)
           
 org.kuali.rice.kim.bo.entity.KimPrincipal getPrincipalByPrincipalName(java.lang.String principalName)
          Returns the KimPrincipal for the given principal name.
 Recipient getPrincipalRecipient(java.lang.String principalId)
           
 org.kuali.rice.kim.bo.entity.KimPrincipal getSystemPrincipal()
          Returns the principal for the "system user".
 void validatePrincipalId(java.lang.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 java.lang.String getIdForPrincipalName(java.lang.String principalName)
Specified by:
getIdForPrincipalName in interface IdentityHelperService

validatePrincipalId

public void validatePrincipalId(java.lang.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 java.lang.String getIdForGroupName(java.lang.String namespace,
                                          java.lang.String groupName)
Specified by:
getIdForGroupName in interface IdentityHelperService

getPrincipalRecipient

public Recipient getPrincipalRecipient(java.lang.String principalId)
Specified by:
getPrincipalRecipient in interface IdentityHelperService

getPrincipal

public org.kuali.rice.kim.bo.entity.KimPrincipal getPrincipal(java.lang.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.bo.entity.KimPrincipal getPrincipalByPrincipalName(java.lang.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.bo.Group getGroupByName(java.lang.String namespaceCode,
                                                  java.lang.String name)
Specified by:
getGroupByName in interface IdentityHelperService

getPerson

public org.kuali.rice.kim.bo.Person getPerson(java.lang.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.bo.Person getPersonByPrincipalName(java.lang.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.bo.Person getPersonByEmployeeId(java.lang.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.bo.Group getGroup(java.lang.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.bo.Group getGroup(GroupId groupId)
Specified by:
getGroup in interface IdentityHelperService

getGroupId

public java.lang.String getGroupId(GroupId groupId)
Specified by:
getGroupId in interface IdentityHelperService

getPrincipal

public org.kuali.rice.kim.bo.entity.KimPrincipal getPrincipal(org.kuali.rice.kew.user.UserId userId)
Specified by:
getPrincipal in interface IdentityHelperService

getPrincipal

public org.kuali.rice.kim.bo.entity.KimPrincipal getPrincipal(org.kuali.rice.kew.dto.UserIdDTO userId)
Specified by:
getPrincipal in interface IdentityHelperService

getGroupRecipient

public Recipient getGroupRecipient(java.lang.String groupId)
Specified by:
getGroupRecipient in interface IdentityHelperService

getSystemPrincipal

public org.kuali.rice.kim.bo.entity.KimPrincipal 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 © 2004-2011 The Kuali Foundation. All Rights Reserved.