|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.integration.atlassianuser.AbstractCrowdUserManager com.atlassian.crowd.integration.atlassianuser.DirectCrowdUserManager
public class DirectCrowdUserManager
Field Summary | |
---|---|
protected com.atlassian.crowd.service.client.CrowdClient |
crowdClient
|
Constructor Summary | |
---|---|
DirectCrowdUserManager(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier)
|
|
DirectCrowdUserManager(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier,
com.atlassian.crowd.service.client.CrowdClient crowdClient)
|
Method Summary | |
---|---|
void |
alterPassword(com.atlassian.user.User user,
java.lang.String password)
Alters the password on the Crowd security server. |
com.atlassian.user.User |
createUser(java.lang.String name)
Creates a user through the Crowd security server. |
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. |
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 com.atlassian.crowd.integration.atlassianuser.AbstractCrowdUserManager |
---|
getIdentifier, getRepository, isCreative, isReadOnly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final com.atlassian.crowd.service.client.CrowdClient crowdClient
Constructor Detail |
---|
public DirectCrowdUserManager(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier, com.atlassian.crowd.service.client.CrowdClient crowdClient)
public DirectCrowdUserManager(com.atlassian.user.repository.RepositoryIdentifier repositoryIdentifier)
Method Detail |
---|
public void alterPassword(com.atlassian.user.User user, java.lang.String password) throws com.atlassian.user.EntityException
user
- The user.password
- The new password.
com.atlassian.user.EntityException
- - representing a system error.
java.lang.UnsupportedOperationException
- - if EntityManager.isCreative()
returns false
.public com.atlassian.user.search.page.Pager getUsers() throws com.atlassian.user.EntityException
Pager
holding all users being managed.
com.atlassian.user.EntityException
public com.atlassian.user.search.page.Pager getUserNames() throws com.atlassian.user.EntityException
Pager
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
name
- 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
name
- The username.
User
object.
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
user
- The user to update.
com.atlassian.user.EntityException
- - representing a system error.
java.lang.UnsupportedOperationException
- - if EntityManager.isCreative()
returns false
.public void removeUser(com.atlassian.user.User user) throws com.atlassian.user.EntityException
user
- The user to remove.
com.atlassian.user.EntityException
- - representing a system error.
java.lang.UnsupportedOperationException
- - if UserManager.isReadOnly(User)
returns true
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |