com.atlassian.crowd.plugin.rest.service.controller
Class SearchController

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

public class SearchController
extends java.lang.Object

Controller for the Search resource.


Constructor Summary
SearchController(ApplicationService applicationService, ApplicationManager applicationManager)
           
 
Method Summary
 GroupEntityList searchGroups(java.lang.String applicationName, SearchRestrictionEntity searchRestrictionEntity, int maxResults, int startIndex, boolean expandGroup, java.net.URI baseUri)
          Searches for groups satisfying the restriction.
 UserEntityList searchUsers(java.lang.String applicationName, SearchRestrictionEntity searchRestrictionEntity, int maxResults, int startIndex, boolean expandUser, java.net.URI baseUri)
          Searches for users satisfying the restriction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchController

public SearchController(ApplicationService applicationService,
                        ApplicationManager applicationManager)
Method Detail

searchGroups

public GroupEntityList searchGroups(java.lang.String applicationName,
                                    SearchRestrictionEntity searchRestrictionEntity,
                                    int maxResults,
                                    int startIndex,
                                    boolean expandGroup,
                                    java.net.URI baseUri)
Searches for groups satisfying the restriction.

Parameters:
applicationName - name of the application.
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.
baseUri - Base URI of the REST service
Returns:
GroupEntityList

searchUsers

public UserEntityList searchUsers(java.lang.String applicationName,
                                  SearchRestrictionEntity searchRestrictionEntity,
                                  int maxResults,
                                  int startIndex,
                                  boolean expandUser,
                                  java.net.URI baseUri)
Searches for users satisfying the restriction.

Parameters:
applicationName - name of the application.
searchRestrictionEntity - 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.
baseUri - Base URI of the REST service
Returns:
UserEntityList


Copyright © 2010 Atlassian. All Rights Reserved.