Class UserResource
- java.lang.Object
-
- com.atlassian.confluence.functest.rest.admin.UserResource
-
public class UserResource extends Object
User management features missing from core Confluence today.Shamelessly copy-pasta'd from the Crowd REST Plugin SearchResource and SearchController, with simplifications to make it use the CrowdService, instead of the ApplicationService.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SEARCH_RESULT_SIZE
-
Constructor Summary
Constructors Constructor Description UserResource(com.atlassian.crowd.embedded.api.CrowdService crowdService, PersonService personService, UserAccessor userAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
countUnsyncedUsers()
LongTaskSubmission
deleteUser(String userKey)
javax.ws.rs.core.Response
searchGroups(SearchRestrictionEntity searchRestrictionEntity, int startIndex, int maxResults)
javax.ws.rs.core.Response
searchUsers(SearchRestrictionEntity searchRestrictionEntity, int startIndex, int maxResults)
void
unsyncUser(String username)
-
-
-
Field Detail
-
DEFAULT_SEARCH_RESULT_SIZE
public static final String DEFAULT_SEARCH_RESULT_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserResource
public UserResource(com.atlassian.crowd.embedded.api.CrowdService crowdService, PersonService personService, UserAccessor userAccessor)
-
-
Method Detail
-
searchUsers
public javax.ws.rs.core.Response searchUsers(SearchRestrictionEntity searchRestrictionEntity, int startIndex, int maxResults)
-
searchGroups
public javax.ws.rs.core.Response searchGroups(SearchRestrictionEntity searchRestrictionEntity, int startIndex, int maxResults)
-
deleteUser
public LongTaskSubmission deleteUser(String userKey)
-
unsyncUser
public void unsyncUser(String username) throws com.atlassian.crowd.exception.OperationNotPermittedException
- Throws:
com.atlassian.crowd.exception.OperationNotPermittedException
-
countUnsyncedUsers
public javax.ws.rs.core.Response countUnsyncedUsers()
-
-