|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.manager.application.AliasManagerImpl
public class AliasManagerImpl
Constructor Summary | |
---|---|
AliasManagerImpl(AliasDAO aliasDAO,
ApplicationService applicationService)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AliasManagerImpl(AliasDAO aliasDAO, ApplicationService applicationService)
Method Detail |
---|
public java.lang.String findUsernameByAlias(Application application, java.lang.String authenticatingUsername)
AliasManager
findUsernameByAlias
in interface AliasManager
application
- the application the user is associated withauthenticatingUsername
- the username passed to the application for authentication
public java.lang.String findAliasByUsername(Application application, java.lang.String username)
AliasManager
findAliasByUsername
in interface AliasManager
application
- the application the user is associated withusername
- the 'real' username of the user
public void storeAlias(Application application, java.lang.String username, java.lang.String alias) throws AliasAlreadyInUseException
AliasManager
storeAlias
in interface AliasManager
application
- application context.username
- real username of user in directory.alias
- application-specific alias (cannot be null
or blank).
AliasAlreadyInUseException
- the alias is already in use by another user for the given application.public void removeAlias(Application application, java.lang.String username) throws AliasAlreadyInUseException
AliasManager
removeAlias
in interface AliasManager
application
- application context.username
- real username of user in directory.
AliasAlreadyInUseException
public java.util.List<java.lang.String> search(EntityQuery entityQuery)
AliasManager
AliasQuery
search on the Alias
tables of Crowd.
search
in interface AliasManager
entityQuery
- Will accept an entity query for Alias
's as an AliasQuery
java.util.List
of usernames for a given AliasQuery
or an empty list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |