|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.user.util.DefaultUserManager
public class DefaultUserManager
Constructor Summary | |
---|---|
DefaultUserManager(com.opensymphony.user.UserManager osuserManager,
com.atlassian.event.api.EventPublisher eventPublisher)
Use the static factory method if you are simply passing
the current user manager singleton |
Method Summary | |
---|---|
static UserManager |
get()
Static factory method. |
java.util.Set<com.opensymphony.user.Group> |
getAllGroups()
Returns all groups defined in JIRA. |
java.util.Set<com.opensymphony.user.User> |
getAllUsers()
Returns all users defined in JIRA, regardless of whether they are active or not. |
com.opensymphony.user.Group |
getGroup(java.lang.String groupName)
Returns a Group based on user name. |
int |
getTotalUserCount()
Returns the total number of users defined in JIRA, regardless of whether they are active or not. |
com.opensymphony.user.User |
getUser(java.lang.String userName)
Returns a User based on user name. |
void |
onClearCache(ClearCacheEvent event)
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultUserManager(com.opensymphony.user.UserManager osuserManager, com.atlassian.event.api.EventPublisher eventPublisher)
static factory method
if you are simply passing
the current user manager singleton
osuserManager
- the osuser user managereventPublisher
- Method Detail |
---|
public static UserManager get()
public void start() throws java.lang.Exception
Startable
start
in interface Startable
java.lang.Exception
- Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public int getTotalUserCount()
UserManager
getTotalUserCount
in interface UserManager
public java.util.Set<com.opensymphony.user.User> getAllUsers()
UserManager
getAllUsers
in interface UserManager
public com.opensymphony.user.User getUser(java.lang.String userName)
UserManager
User
based on user name.
getUser
in interface UserManager
userName
- the user name of the user
public java.util.Set<com.opensymphony.user.Group> getAllGroups()
UserManager
getAllGroups
in interface UserManager
public com.opensymphony.user.Group getGroup(java.lang.String groupName)
UserManager
Group
based on user name.
getGroup
in interface UserManager
groupName
- the user name of the group
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |