com.atlassian.confluence.user
Class ConfluenceUserManager

java.lang.Object
  extended by com.atlassian.confluence.user.ConfluenceUserManager
All Implemented Interfaces:
com.atlassian.user.EntityManager, com.atlassian.user.UserManager

public class ConfluenceUserManager
extends Object
implements com.atlassian.user.UserManager

A UserManager which is aware of ConfluenceUser's and will take care of the ConfluenceUser specific persistence requirements before delegating to the "standard" UserManager


Constructor Summary
ConfluenceUserManager(com.atlassian.user.UserManager delegate, ConfluenceUserDao dao)
           
 
Method Summary
 void alterPassword(com.atlassian.user.User user, String plainTextPass)
           
 com.atlassian.user.User createUser(String username)
           
 com.atlassian.user.User createUser(com.atlassian.user.User userTemplate, com.atlassian.user.security.password.Credential credential)
           
 com.atlassian.user.repository.RepositoryIdentifier getIdentifier()
           
 com.atlassian.user.repository.RepositoryIdentifier getRepository(com.atlassian.user.Entity entity)
           
 com.atlassian.user.User getUser(String username)
           
 com.atlassian.user.search.page.Pager<String> getUserNames()
           
 com.atlassian.user.search.page.Pager<com.atlassian.user.User> getUsers()
           
 boolean isCreative()
           
 boolean isReadOnly(com.atlassian.user.User user)
           
 void removeUser(com.atlassian.user.User user)
           
 void saveUser(com.atlassian.user.User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceUserManager

public ConfluenceUserManager(com.atlassian.user.UserManager delegate,
                             ConfluenceUserDao dao)
Method Detail

getIdentifier

public com.atlassian.user.repository.RepositoryIdentifier getIdentifier()
Specified by:
getIdentifier in interface com.atlassian.user.EntityManager

getRepository

public com.atlassian.user.repository.RepositoryIdentifier getRepository(com.atlassian.user.Entity entity)
                                                                 throws com.atlassian.user.EntityException
Specified by:
getRepository in interface com.atlassian.user.EntityManager
Throws:
com.atlassian.user.EntityException

isCreative

public boolean isCreative()
Specified by:
isCreative in interface com.atlassian.user.EntityManager

getUsers

public com.atlassian.user.search.page.Pager<com.atlassian.user.User> getUsers()
                                                                       throws com.atlassian.user.EntityException
Specified by:
getUsers in interface com.atlassian.user.UserManager
Throws:
com.atlassian.user.EntityException

getUserNames

public com.atlassian.user.search.page.Pager<String> getUserNames()
                                                          throws com.atlassian.user.EntityException
Specified by:
getUserNames in interface com.atlassian.user.UserManager
Throws:
com.atlassian.user.EntityException

getUser

public com.atlassian.user.User getUser(String username)
                                throws com.atlassian.user.EntityException
Specified by:
getUser in interface com.atlassian.user.UserManager
Throws:
com.atlassian.user.EntityException

createUser

public com.atlassian.user.User createUser(String username)
                                   throws com.atlassian.user.EntityException
Specified by:
createUser in interface com.atlassian.user.UserManager
Throws:
com.atlassian.user.EntityException

createUser

public com.atlassian.user.User createUser(com.atlassian.user.User userTemplate,
                                          com.atlassian.user.security.password.Credential credential)
                                   throws com.atlassian.user.EntityException,
                                          UnsupportedOperationException,
                                          IllegalArgumentException
Specified by:
createUser in interface com.atlassian.user.UserManager
Throws:
com.atlassian.user.EntityException
UnsupportedOperationException
IllegalArgumentException

saveUser

public void saveUser(com.atlassian.user.User user)
              throws com.atlassian.user.EntityException,
                     IllegalArgumentException
Specified by:
saveUser in interface com.atlassian.user.UserManager
Throws:
com.atlassian.user.EntityException
IllegalArgumentException

removeUser

public void removeUser(com.atlassian.user.User user)
                throws com.atlassian.user.EntityException,
                       IllegalArgumentException
Specified by:
removeUser in interface com.atlassian.user.UserManager
Throws:
com.atlassian.user.EntityException
IllegalArgumentException

alterPassword

public void alterPassword(com.atlassian.user.User user,
                          String plainTextPass)
                   throws com.atlassian.user.EntityException
Specified by:
alterPassword in interface com.atlassian.user.UserManager
Throws:
com.atlassian.user.EntityException

isReadOnly

public boolean isReadOnly(com.atlassian.user.User user)
                   throws com.atlassian.user.EntityException
Specified by:
isReadOnly in interface com.atlassian.user.UserManager
Throws:
com.atlassian.user.EntityException


Copyright © 2003–2015 Atlassian. All rights reserved.