| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IdentityHelperService
A simple helper service in KEW for interacting with the KIM identity management services. Some of the methods on here exist solely for the purpose of assisting with the piece-by-piece migration of KEW to use the KIM services.
| 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. | 
| Method Detail | 
|---|
String getIdForPrincipalName(String principalName)
String getIdForGroupName(String namespace,
                         String groupName)
Principal getPrincipal(String principalId)
RiceIllegalArgumentException - if the principal id cannot be resolved to a principal.Principal getPrincipalByPrincipalName(String principalName)
RiceIllegalArgumentException - if the principal name cannot be resolved to a principalPerson getPerson(String principalId)
RiceIllegalArgumentException - if the principal id cannot be resolved to a person.Person getPersonByPrincipalName(String principalName)
RiceIllegalArgumentException - if the principal name cannot be resolved to a person.Person getPersonByEmployeeId(String employeeId)
RiceIllegalArgumentException - if the principal name cannot be resolved to a person.void validatePrincipalId(String principalId)
RiceIllegalArgumentException - if the given principalId is validPrincipal getPrincipal(UserId userId)
RiceIllegalArgumentException - if the given UserId does not resolve to a valid principalGroup getGroup(String groupId)
RiceIllegalArgumentException - if the groupId cannot be resolved to a group.Group getGroup(GroupId groupId)
RiceIllegalArgumentException - if the GroupId cannot be resolved to a group.
Group getGroupByName(String namespaceCode,
                     String name)
RiceIllegalArgumentException - if the namespaceCode and name cannot be resolved to a group.Recipient getPrincipalRecipient(String principalId)
RiceIllegalArgumentException - if the principalId cannot be resolved to a recipientPrincipal getSystemPrincipal()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||