|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AliasDAO
Manages persistence of aliases.
| Method Summary | |
|---|---|
String |
findAliasByUsername(Application application,
String username)
Retrieves the application-specific alias for a username. |
String |
findUsernameByAlias(Application application,
String alias)
Retrieves the real username for a user in a directory given their application-specific alias. |
void |
removeAlias(Application application,
String username)
Remove an application-specific alias for a username. |
void |
removeAliases(Application application)
Removes all the username-aliases for a specific application. |
void |
removeAliasesForUser(String username)
Removes all the aliases registered for a given username in all applications (there may be different users) |
List<String> |
search(EntityQuery<String> entityQuery)
Will search for a List of Alias' based on a given EntityQuery |
void |
storeAlias(Application application,
String username,
String alias)
Add or update the application-specific alias for a username. |
| Method Detail |
|---|
List<String> search(EntityQuery<String> entityQuery)
EntityQuery
entityQuery - an entity query of type EntityDescriptor.alias()
String findAliasByUsername(Application application,
String username)
application - application context.username - real username of user in directory.
null if there is no alias for the user/application.
String findUsernameByAlias(Application application,
String alias)
application - application context.alias - application-specific alias.
null if there is no user with the supplied alias for the given application.
void storeAlias(Application application,
String username,
String alias)
application - application context.username - real username of user in directory.alias - application-specific alias (cannot be null or blank).
IllegalArgumentException - if parameters are null or blank.
void removeAlias(Application application,
String username)
application - application context.username - real username of user in directory.void removeAliases(Application application)
application - application context.void removeAliasesForUser(String username)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||