|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AliasManager
API to manage application-specific user aliases.
| Method Summary | |
|---|---|
java.lang.String |
findAliasByUsername(Application application,
java.lang.String username)
Will return the 'alias' associated to the user. |
java.lang.String |
findUsernameByAlias(Application application,
java.lang.String authenticatingUsername)
Will return the 'real' username of the authenticating user. |
void |
removeAlias(Application application,
java.lang.String username)
Remove an application-specific alias for a username. |
java.util.List<java.lang.String> |
search(EntityQuery entityQuery)
Perform an AliasQuery search on the alias tables of Crowd. |
void |
storeAlias(Application application,
java.lang.String username,
java.lang.String alias)
Add or update the application-specific alias for a username. |
| Method Detail |
|---|
java.lang.String findUsernameByAlias(Application application,
java.lang.String authenticatingUsername)
application - the application the user is associated withauthenticatingUsername - the username passed to the application for authentication
java.lang.IllegalArgumentException - if either application or authenticatingUsername are null
java.lang.String findAliasByUsername(Application application,
java.lang.String username)
application - the application the user is associated withusername - the 'real' username of the user
java.lang.IllegalArgumentException - if either application or authenticatingUsername are nulljava.util.List<java.lang.String> search(EntityQuery entityQuery)
AliasQuery search on the alias tables of Crowd.
entityQuery - Will accept an entity query for aliases as an AliasQuery
java.util.List of usernames for a given AliasQuery or an empty list
void storeAlias(Application application,
java.lang.String username,
java.lang.String alias)
throws AliasAlreadyInUseException
application - application context.username - real username of user in directory.alias - application-specific alias (cannot be null or blank).
java.lang.IllegalArgumentException - if parameters are null or blank.
AliasAlreadyInUseException - the alias is already in use by another user for the given application.
void removeAlias(Application application,
java.lang.String username)
throws AliasAlreadyInUseException
application - application context.username - real username of user in directory.
AliasAlreadyInUseException - the username is already in use by another user as their alias for the given application.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||