Class SearchController

java.lang.Object
com.atlassian.crowd.plugin.rest.service.controller.AbstractResourceController
com.atlassian.crowd.plugin.rest.service.controller.SearchController

@Named public class SearchController extends AbstractResourceController
Controller for the Search resource.
  • Constructor Details

  • 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 returned
      maxResults - maximum number of results to return
      startIndex - starting index of the result
      expandGroup - set to true if the group details should be expanded.
      expandAttributes - set to true if 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 Language
      maxResults - maximum number of results to return
      startIndex - starting index of the result
      expandGroup - set to true if the group details should be expanded.
      expandAttributes - set to true if the group's attributes should be expanded - requires that group details are expanded.
      baseUri - Base URI of the REST service
      Returns:
      GroupEntityList
    • fromCqlSearchRestriction

      public SearchRestriction fromCqlSearchRestriction(String cqlSearchRestriction)
    • 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 returned
      maxResults - maximum number of results to return
      startIndex - starting index of the result
      expandGroup - set to true if the group details should be expanded.
      expandAttributes - set to true if 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 returned
      maxResults - maximum number of results to return
      startIndex - starting index of the result
      expandUser - set to true if the user details should be expanded.
      expandAttributes - set to true if the user's attributes should be expanded - requires that user details are expanded.
      baseUri - Base URI of the REST service
      Returns:
      UserEntityList