Class SearchController
java.lang.Object
com.atlassian.crowd.plugin.rest.service.controller.AbstractResourceController
com.atlassian.crowd.plugin.rest.service.controller.SearchController
Controller for the Search resource.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchController(ApplicationService applicationService, CqlQueryParser cqlQueryParser, AuthenticatedApplicationHolder authenticatedApplicationHolder) -
Method Summary
Modifier and TypeMethodDescriptionfromCqlSearchRestriction(String cqlSearchRestriction) searchGroups(SearchRestriction searchRestriction, int maxResults, int startIndex, boolean expandGroup, boolean expandAttributes, URI baseUri) Searches for groups satisfying the restriction.searchGroups(SearchRestrictionEntity searchRestrictionEntity, int maxResults, int startIndex, boolean expandGroup, boolean expandAttributes, URI baseUri) Searches for groups satisfying the restriction.searchGroups(String cqlSearchRestriction, int maxResults, int startIndex, boolean expandGroup, boolean expandAttributes, URI baseUri) Searches for groups satisfying the restriction.searchUsers(SearchRestriction searchRestriction, int maxResults, int startIndex, boolean expandUser, boolean expandAttributes, URI baseUri) Searches for users satisfying the restriction.Methods inherited from class com.atlassian.crowd.plugin.rest.service.controller.AbstractResourceController
getAuthenticatedApplication
-
Constructor Details
-
SearchController
@Inject public SearchController(ApplicationService applicationService, CqlQueryParser cqlQueryParser, AuthenticatedApplicationHolder authenticatedApplicationHolder)
-
-
Method Details
-
searchGroups
public GroupEntityList searchGroups(SearchRestrictionEntity searchRestrictionEntity, int maxResults, int startIndex, boolean expandGroup, boolean expandAttributes, URI baseUri) Searches for groups satisfying the restriction.- Parameters:
searchRestrictionEntity- criteria for a group to be returnedmaxResults- maximum number of results to returnstartIndex- starting index of the resultexpandGroup- set totrueif the group details should be expanded.expandAttributes- set totrueif the group's attributes should be expanded - requires that group details are expanded.baseUri- Base URI of the REST service- Returns:
- GroupEntityList
-
searchGroups
public GroupEntityList searchGroups(String cqlSearchRestriction, int maxResults, int startIndex, boolean expandGroup, boolean expandAttributes, URI baseUri) Searches for groups satisfying the restriction.- Parameters:
cqlSearchRestriction- criteria for a group to be returned in the Crowd Query LanguagemaxResults- maximum number of results to returnstartIndex- starting index of the resultexpandGroup- set totrueif the group details should be expanded.expandAttributes- set totrueif the group's attributes should be expanded - requires that group details are expanded.baseUri- Base URI of the REST service- Returns:
- GroupEntityList
-
fromCqlSearchRestriction
-
searchGroups
public GroupEntityList searchGroups(SearchRestriction searchRestriction, int maxResults, int startIndex, boolean expandGroup, boolean expandAttributes, URI baseUri) Searches for groups satisfying the restriction.- Parameters:
searchRestriction- criteria for a group to be returnedmaxResults- maximum number of results to returnstartIndex- starting index of the resultexpandGroup- set totrueif the group details should be expanded.expandAttributes- set totrueif the group's attributes should be expanded - requires that group details are expanded.baseUri- Base URI of the REST service- Returns:
- GroupEntityList
-
searchUsers
public UserEntityList searchUsers(SearchRestriction searchRestriction, int maxResults, int startIndex, boolean expandUser, boolean expandAttributes, URI baseUri) Searches for users satisfying the restriction.- Parameters:
searchRestriction- criteria for a user to be returnedmaxResults- maximum number of results to returnstartIndex- starting index of the resultexpandUser- set totrueif the user details should be expanded.expandAttributes- set totrueif the user's attributes should be expanded - requires that user details are expanded.baseUri- Base URI of the REST service- Returns:
- UserEntityList
-