|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AliasDAO
Method Summary | |
---|---|
java.lang.String |
findAliasByUsername(Application application,
java.lang.String username)
Retrieves the application-specific alias for a username. |
java.lang.String |
findUsernameByAlias(Application application,
java.lang.String alias)
Retrieves the real username for a user in a directory given their application-specific alias. |
void |
removeAlias(Application application,
java.lang.String username)
Remove an application-specific alias for a username. |
void |
removeAliases(Application application)
Removes all the username-aliases for a specific application. |
java.util.List<java.lang.String> |
search(EntityQuery<java.lang.String> entityQuery)
Will search for a List of Alias' based on a given EntityQuery |
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.util.List<java.lang.String> search(EntityQuery<java.lang.String> entityQuery)
EntityQuery
entityQuery
- an entity query of type EntityDescriptor.alias()
java.lang.String findAliasByUsername(Application application, java.lang.String username)
application
- application context.username
- real username of user in directory.
null
if there is no alias for the user/application.java.lang.String findUsernameByAlias(Application application, java.lang.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, java.lang.String username, java.lang.String alias)
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.void removeAlias(Application application, java.lang.String username)
application
- application context.username
- real username of user in directory.void removeAliases(Application application)
application
- application context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |