public class UserResource extends Object
Shamelessly copy-pasta'd from the Crowd REST Plugin SearchResource and SearchController, with simplifications to make it use the CrowdService, instead of the ApplicationService.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SEARCH_RESULT_SIZE |
Constructor and Description |
---|
UserResource(com.atlassian.crowd.embedded.api.CrowdService crowdService,
PersonService personService,
UserAccessor userAccessor) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
countUnsyncedUsers() |
LongTaskSubmission |
deleteUser(String userKey) |
com.atlassian.crowd.plugin.rest.entity.GroupEntityList |
searchGroups(SearchRestrictionEntity searchRestrictionEntity,
int startIndex,
int maxResults) |
com.atlassian.crowd.plugin.rest.entity.UserEntityList |
searchUsers(SearchRestrictionEntity searchRestrictionEntity,
int startIndex,
int maxResults) |
void |
unsyncUser(String username) |
public static final String DEFAULT_SEARCH_RESULT_SIZE
public UserResource(com.atlassian.crowd.embedded.api.CrowdService crowdService, PersonService personService, UserAccessor userAccessor)
public com.atlassian.crowd.plugin.rest.entity.UserEntityList searchUsers(SearchRestrictionEntity searchRestrictionEntity, int startIndex, int maxResults)
public com.atlassian.crowd.plugin.rest.entity.GroupEntityList searchGroups(SearchRestrictionEntity searchRestrictionEntity, int startIndex, int maxResults)
public LongTaskSubmission deleteUser(String userKey)
public void unsyncUser(String username) throws com.atlassian.crowd.exception.OperationNotPermittedException
com.atlassian.crowd.exception.OperationNotPermittedException
public javax.ws.rs.core.Response countUnsyncedUsers()
Copyright © 2003–2020 Atlassian. All rights reserved.