|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.integration.atlassianuser.CrowdUserManager
public class CrowdUserManager
| Constructor Summary | |
|---|---|
CrowdUserManager(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier)
|
|
CrowdUserManager(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier,
UserManager userManager)
|
|
| Method Summary | |
|---|---|
void |
alterPassword(com.atlassian.user.User user,
java.lang.String password)
Alters the password on the Crowd security server. |
protected void |
buildAttribute(java.lang.String key,
java.lang.String value,
java.util.List attributes)
|
protected java.util.List |
convertStringsToUsers(java.util.List userNames)
|
protected SOAPPrincipal |
convertUserToSOAPPrincipal(com.atlassian.user.User user)
|
com.atlassian.user.User |
createUser(java.lang.String name)
Creates a user through the Crowd security server. |
com.atlassian.user.repository.RepositoryIdentifier |
getIdentifier()
Returns information about the respository implementation. |
com.atlassian.user.repository.RepositoryIdentifier |
getRepository(com.atlassian.user.Entity entity)
Returns information about the respository for a specific entity. |
com.atlassian.user.User |
getUser(java.lang.String name)
Gets a user from the Crowd security server. |
com.atlassian.user.search.page.Pager |
getUserNames()
Gets the username for the integrated application. |
com.atlassian.user.search.page.Pager |
getUsers()
Gets the users for the integrated application. |
boolean |
isCreative()
|
boolean |
isReadOnly(com.atlassian.user.User user)
Determines if the user is read only. |
void |
removeUser(com.atlassian.user.User user)
Removes a user from the Crowd security server. |
void |
saveUser(com.atlassian.user.User user)
Updates the Principal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CrowdUserManager(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier)
public CrowdUserManager(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier,
UserManager userManager)
| Method Detail |
|---|
public com.atlassian.user.search.page.Pager getUsers()
throws com.atlassian.user.EntityException
getUsers in interface com.atlassian.user.UserManagerPager holding all users being managed.
com.atlassian.user.EntityExceptionprotected java.util.List convertStringsToUsers(java.util.List userNames)
public com.atlassian.user.search.page.Pager getUserNames()
throws com.atlassian.user.EntityException
getUserNames in interface com.atlassian.user.UserManagerPager holding the names of all users being managed.
com.atlassian.user.EntityException
public com.atlassian.user.User getUser(java.lang.String name)
throws com.atlassian.user.EntityException
getUser in interface com.atlassian.user.UserManagername - The username to lookup.
null or a User if one could be found.
com.atlassian.user.EntityException - - representing a system error.
public com.atlassian.user.User createUser(java.lang.String name)
throws com.atlassian.user.EntityException
createUser in interface com.atlassian.user.UserManagername - The username.
User object.
com.atlassian.user.EntityException - - representing a system error
java.lang.UnsupportedOperationException - - if EntityManager.isCreative() returns false.
public void alterPassword(com.atlassian.user.User user,
java.lang.String password)
throws com.atlassian.user.EntityException
alterPassword in interface com.atlassian.user.UserManageruser - The user.password - The new password.
com.atlassian.user.EntityException - - representing a system error.
java.lang.UnsupportedOperationException - - if EntityManager.isCreative() returns false.
public void saveUser(com.atlassian.user.User user)
throws com.atlassian.user.EntityException
saveUser in interface com.atlassian.user.UserManageruser - The user to update.
com.atlassian.user.EntityException - - representing a system error.
java.lang.UnsupportedOperationException - - if EntityManager.isCreative() returns false.protected SOAPPrincipal convertUserToSOAPPrincipal(com.atlassian.user.User user)
protected void buildAttribute(java.lang.String key,
java.lang.String value,
java.util.List attributes)
public void removeUser(com.atlassian.user.User user)
throws com.atlassian.user.EntityException
removeUser in interface com.atlassian.user.UserManageruser - The user to remove.
com.atlassian.user.EntityException - - representing a system error.
java.lang.UnsupportedOperationException - - if UserManager.isReadOnly(User) returns true.
public boolean isReadOnly(com.atlassian.user.User user)
throws com.atlassian.user.EntityException
isReadOnly in interface com.atlassian.user.UserManageruser - The user to check.
UserManager does not
know about the User.
com.atlassian.user.EntityExceptionpublic com.atlassian.user.repository.RepositoryIdentifier getIdentifier()
getIdentifier in interface com.atlassian.user.EntityManager
public com.atlassian.user.repository.RepositoryIdentifier getRepository(com.atlassian.user.Entity entity)
throws com.atlassian.user.EntityException
getRepository in interface com.atlassian.user.EntityManagerentity - The entity.
com.atlassian.user.EntityExceptionpublic boolean isCreative()
isCreative in interface com.atlassian.user.EntityManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||