|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bucket.user.DefaultUserAccessor
public class DefaultUserAccessor
Field Summary | |
---|---|
java.lang.String |
DEFAULT_GROUP_NAME
|
com.atlassian.user.Group |
defaultGroup
|
Constructor Summary | |
---|---|
DefaultUserAccessor()
|
Method Summary | |
---|---|
com.atlassian.user.Group |
addGroup(java.lang.String name)
|
void |
addMembership(com.atlassian.user.Group group,
com.atlassian.user.User user)
|
void |
addMembership(java.lang.String groupname,
java.lang.String username)
|
com.atlassian.user.User |
addUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullname)
|
com.atlassian.user.User |
addUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullname,
java.lang.String[] groups)
|
void |
alterPassword(com.atlassian.user.User user,
java.lang.String plainTextPassword)
|
boolean |
authenticate(java.lang.String username,
java.lang.String password)
|
protected void |
checkConfiguration()
|
com.atlassian.user.Group |
createGroup(java.lang.String groupname)
Note that this method creates a group with case sensitive name. |
com.atlassian.user.User |
createUser(java.lang.String username)
|
void |
deactivateUser(com.atlassian.user.User user)
|
com.atlassian.user.search.SearchResult |
findGroups(com.atlassian.user.search.query.Query query)
Generates a SearchResult object for each repository the
entityQueryParser can search. |
com.atlassian.user.search.SearchResult |
findGroups(com.atlassian.user.search.query.Query query,
com.atlassian.user.search.query.QueryContext context)
Allows specification of QueryContext . |
com.atlassian.user.search.SearchResult |
findUsers(com.atlassian.user.search.query.Query query)
|
com.atlassian.user.search.SearchResult |
findUsers(com.atlassian.user.search.query.Query query,
com.atlassian.user.search.query.QueryContext context)
Allows specification of QueryContext . |
protected com.atlassian.user.security.authentication.Authenticator |
getAuthenticator()
|
com.atlassian.user.Group |
getDefaultGroup()
|
java.util.List |
getDelegatingRepositories()
|
protected com.atlassian.user.search.query.EntityQueryParser |
getEntityQueryParser()
|
com.atlassian.user.search.page.Pager<java.lang.String> |
getExternallMembers(com.atlassian.user.Group group)
|
com.atlassian.user.Group |
getGroup(java.lang.String name)
|
com.atlassian.user.Group |
getGroupCreateIfNecessary(java.lang.String name)
Get a group - and if it does not exist, create it first. |
protected com.atlassian.user.GroupManager |
getGroupManager()
|
com.atlassian.user.search.page.Pager<com.atlassian.user.Group> |
getGroups()
|
com.atlassian.user.search.page.Pager<com.atlassian.user.Group> |
getGroups(com.atlassian.user.User user)
|
com.atlassian.user.search.page.Pager<java.lang.String> |
getLocalMembers(com.atlassian.user.Group group)
|
com.atlassian.user.search.page.Pager<java.lang.String> |
getMemberNames(com.atlassian.user.Group group)
|
com.opensymphony.module.propertyset.PropertySet |
getPropertySet(com.atlassian.user.User user)
|
protected com.atlassian.user.properties.PropertySetFactory |
getPropertySetFactory()
|
com.atlassian.user.repository.RepositoryIdentifier |
getRepository(com.atlassian.user.Entity entity)
|
com.atlassian.user.User |
getUser(java.lang.String name)
|
protected com.atlassian.user.UserManager |
getUserManager()
|
com.atlassian.user.search.page.Pager<java.lang.String> |
getUserNames()
|
com.atlassian.core.user.preferences.UserPreferences |
getUserPreferences(com.atlassian.user.User user)
|
com.atlassian.user.search.page.Pager<com.atlassian.user.User> |
getUsers()
|
com.atlassian.user.search.SearchResult |
getUsersByEmail(java.lang.String email)
|
com.atlassian.user.search.page.Pager<com.atlassian.user.User> |
getUsersWithConfluenceAccess()
|
boolean |
hasMembership(com.atlassian.user.Group group,
com.atlassian.user.User user)
|
boolean |
hasMembership(java.lang.String groupname,
java.lang.String username)
|
boolean |
isDeactivated(java.lang.String username)
|
boolean |
isDeactivated(com.atlassian.user.User user)
|
boolean |
isLicensedToAddMoreUsers()
|
boolean |
isUserRemovable(com.atlassian.user.User user)
|
void |
reactivateUser(com.atlassian.user.User user)
|
void |
removeGroup(com.atlassian.user.Group group)
|
boolean |
removeMembership(com.atlassian.user.Group group,
com.atlassian.user.User user)
|
boolean |
removeMembership(java.lang.String groupname,
java.lang.String username)
|
void |
removeUser(com.atlassian.user.User user)
|
protected void |
removeUserFromAllGroups(com.atlassian.user.User user)
|
void |
saveUser(com.atlassian.user.User user)
|
void |
setAtlassianUserConfiguration(com.atlassian.user.configuration.Configuration atlassianUserConfiguration)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public com.atlassian.user.Group defaultGroup
public final java.lang.String DEFAULT_GROUP_NAME
Constructor Detail |
---|
public DefaultUserAccessor()
Method Detail |
---|
public com.atlassian.user.repository.RepositoryIdentifier getRepository(com.atlassian.user.Entity entity) throws com.atlassian.user.EntityException
getRepository
in interface UserAccessor
com.atlassian.user.EntityException
public com.atlassian.user.User addUser(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String fullname, java.lang.String[] groups)
addUser
in interface UserAccessor
public com.atlassian.user.User addUser(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String fullname)
addUser
in interface UserAccessor
public com.atlassian.user.search.page.Pager<java.lang.String> getUserNames()
getUserNames
in interface UserAccessor
public com.atlassian.user.search.page.Pager<com.atlassian.user.User> getUsers()
getUsers
in interface UserAccessor
public com.atlassian.user.User getUser(java.lang.String name)
getUser
in interface UserAccessor
public com.atlassian.user.search.page.Pager<com.atlassian.user.Group> getGroups()
getGroups
in interface UserAccessor
public com.atlassian.user.Group addGroup(java.lang.String name)
addGroup
in interface UserAccessor
public void removeGroup(com.atlassian.user.Group group)
removeGroup
in interface UserAccessor
public void removeUser(com.atlassian.user.User user)
removeUser
in interface UserAccessor
public void saveUser(com.atlassian.user.User user)
saveUser
in interface UserAccessor
public com.atlassian.user.search.SearchResult findUsers(com.atlassian.user.search.query.Query query) throws com.atlassian.user.EntityException
findUsers
in interface UserAccessor
findUsers
in interface com.atlassian.user.search.query.EntityQueryParser
com.atlassian.user.EntityException
public com.atlassian.user.search.SearchResult findGroups(com.atlassian.user.search.query.Query query) throws com.atlassian.user.EntityException
SearchResult
object for each repository the
entityQueryParser can search. These are grouped in an array and returned.
Thus, if the entityQueryParser only knows about one configuration, the array
will either have a size of 0 (no sucesses) or 1.
findGroups
in interface com.atlassian.user.search.query.EntityQueryParser
com.atlassian.user.EntityException
public com.atlassian.user.search.SearchResult findUsers(com.atlassian.user.search.query.Query query, com.atlassian.user.search.query.QueryContext context) throws com.atlassian.user.EntityException
QueryContext
.
findUsers
in interface com.atlassian.user.search.query.EntityQueryParser
com.atlassian.user.EntityException
public com.atlassian.user.search.SearchResult findGroups(com.atlassian.user.search.query.Query query, com.atlassian.user.search.query.QueryContext context) throws com.atlassian.user.EntityException
QueryContext
.
findGroups
in interface com.atlassian.user.search.query.EntityQueryParser
com.atlassian.user.EntityException
public com.atlassian.user.search.SearchResult getUsersByEmail(java.lang.String email)
getUsersByEmail
in interface UserAccessor
public com.atlassian.user.Group getGroup(java.lang.String name)
getGroup
in interface UserAccessor
public com.atlassian.user.Group getGroupCreateIfNecessary(java.lang.String name)
getGroupCreateIfNecessary
in interface UserAccessor
public com.atlassian.core.user.preferences.UserPreferences getUserPreferences(com.atlassian.user.User user)
getUserPreferences
in interface UserAccessor
protected void removeUserFromAllGroups(com.atlassian.user.User user)
public void deactivateUser(com.atlassian.user.User user)
deactivateUser
in interface UserAccessor
public void reactivateUser(com.atlassian.user.User user)
reactivateUser
in interface UserAccessor
public com.atlassian.user.search.page.Pager<com.atlassian.user.User> getUsersWithConfluenceAccess()
getUsersWithConfluenceAccess
in interface UserAccessor
public boolean isLicensedToAddMoreUsers()
isLicensedToAddMoreUsers
in interface UserAccessor
public boolean isUserRemovable(com.atlassian.user.User user) throws com.atlassian.user.EntityException
isUserRemovable
in interface UserAccessor
com.atlassian.user.EntityException
public com.atlassian.user.Group getDefaultGroup()
getDefaultGroup
in interface UserAccessor
public com.atlassian.user.search.page.Pager<com.atlassian.user.Group> getGroups(com.atlassian.user.User user)
getGroups
in interface UserAccessor
public boolean hasMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
hasMembership
in interface UserAccessor
public boolean hasMembership(java.lang.String groupname, java.lang.String username)
hasMembership
in interface UserAccessor
public void addMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
addMembership
in interface UserAccessor
public void addMembership(java.lang.String groupname, java.lang.String username)
addMembership
in interface UserAccessor
public boolean removeMembership(com.atlassian.user.Group group, com.atlassian.user.User user)
removeMembership
in interface UserAccessor
public boolean removeMembership(java.lang.String groupname, java.lang.String username)
removeMembership
in interface UserAccessor
public com.opensymphony.module.propertyset.PropertySet getPropertySet(com.atlassian.user.User user)
getPropertySet
in interface UserAccessor
public com.atlassian.user.search.page.Pager<java.lang.String> getMemberNames(com.atlassian.user.Group group)
getMemberNames
in interface UserAccessor
public com.atlassian.user.search.page.Pager<java.lang.String> getLocalMembers(com.atlassian.user.Group group)
getLocalMembers
in interface UserAccessor
public com.atlassian.user.search.page.Pager<java.lang.String> getExternallMembers(com.atlassian.user.Group group)
getExternallMembers
in interface UserAccessor
public com.atlassian.user.User createUser(java.lang.String username)
createUser
in interface UserAccessor
public com.atlassian.user.Group createGroup(java.lang.String groupname)
createGroup
in interface UserAccessor
public boolean isDeactivated(com.atlassian.user.User user)
isDeactivated
in interface UserAccessor
public boolean isDeactivated(java.lang.String username)
isDeactivated
in interface UserAccessor
public boolean authenticate(java.lang.String username, java.lang.String password)
authenticate
in interface UserAccessor
public void alterPassword(com.atlassian.user.User user, java.lang.String plainTextPassword) throws com.atlassian.user.EntityException
alterPassword
in interface UserAccessor
com.atlassian.user.EntityException
public java.util.List getDelegatingRepositories()
getDelegatingRepositories
in interface UserAccessor
DelegatingRepository
representing all Repositories being delegated or null (if there
is no delegation).protected com.atlassian.user.UserManager getUserManager()
protected com.atlassian.user.GroupManager getGroupManager()
protected com.atlassian.user.security.authentication.Authenticator getAuthenticator()
protected com.atlassian.user.properties.PropertySetFactory getPropertySetFactory()
protected com.atlassian.user.search.query.EntityQueryParser getEntityQueryParser()
protected void checkConfiguration()
public void setAtlassianUserConfiguration(com.atlassian.user.configuration.Configuration atlassianUserConfiguration)
setAtlassianUserConfiguration
in interface UserAccessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |