Tabnine Logo
CollectionOptions.setFilterOperation
Code IndexAdd Tabnine to your IDE (free)

How to use
setFilterOperation
method
in
org.apache.shindig.social.opensocial.spi.CollectionOptions

Best Java code snippets using org.apache.shindig.social.opensocial.spi.CollectionOptions.setFilterOperation (Showing top 12 results out of 315)

origin: org.apache.shindig/shindig-social-api

@VisibleForTesting
public CollectionOptions(RequestItem request) {
 this.sortBy = request.getSortBy();
 this.sortOrder = request.getSortOrder();
 this.setFilter(request.getFilterBy());
 this.setFilterOperation(request.getFilterOperation());
 this.setFilterValue(request.getFilterValue());
 this.setFirst(request.getStartIndex());
 this.setMax(request.getCount());
 this.setUpdatedSince(request.getUpdatedSince());
 Set<String> parameterNames = Sets.newHashSet(request.getParameterNames());
 parameterNames.removeAll(Arrays.asList(predefinedParameters));
 Map<String, String> optionalParameters = Maps.newHashMap();
 for (String parameter : parameterNames) {
  optionalParameters.put(parameter, request.getParameter(parameter));
 }
 this.setOptionalParameters(optionalParameters);
}
/**
origin: org.wso2.org.apache.shindig/shindig-social-api

@VisibleForTesting
public CollectionOptions(RequestItem request) {
 this.sortBy = request.getSortBy();
 this.sortOrder = request.getSortOrder();
 this.setFilter(request.getFilterBy());
 this.setFilterOperation(request.getFilterOperation());
 this.setFilterValue(request.getFilterValue());
 this.setFirst(request.getStartIndex());
 this.setMax(request.getCount());
 this.setUpdatedSince(request.getUpdatedSince());
 Set<String> parameterNames = Sets.newHashSet(request.getParameterNames());
 parameterNames.removeAll(Arrays.asList(predefinedParameters));
 Map<String, String> optionalParameters = Maps.newHashMap();
 for (String parameter : parameterNames) {
  optionalParameters.put(parameter, request.getParameter(parameter));
 }
 this.setOptionalParameters(optionalParameters);
}
/**
origin: com.lmco.shindig/shindig-social-api

public CollectionOptions(RequestItem request) {
 this.sortBy = request.getSortBy();
 this.sortOrder = request.getSortOrder();
 this.setFilter(request.getFilterBy());
 this.setFilterOperation(request.getFilterOperation());
 this.setFilterValue(request.getFilterValue());
 this.setFirst(request.getStartIndex());
 this.setMax(request.getCount());
 this.setUpdatedSince(request.getUpdatedSince());
}
/**
origin: org.wso2.org.apache.shindig/shindig-social-api

options.setSortOrder(SortOrder.descending);
options.setFilter(PersonService.TOP_FRIENDS_FILTER);
options.setFilterOperation(FilterOperation.present);
options.setFilterValue("cassie");
options.setFirst(5);
origin: org.apache.shindig/shindig-social-api

options.setSortOrder(SortOrder.descending);
options.setFilter(PersonService.TOP_FRIENDS_FILTER);
options.setFilterOperation(FilterOperation.present);
options.setFilterValue("cassie");
options.setFirst(5);
origin: com.lmco.shindig/shindig-social-api

options.setSortOrder(SortOrder.descending);
options.setFilter(PersonService.TOP_FRIENDS_FILTER);
options.setFilterOperation(FilterOperation.present);
options.setFilterValue("cassie");
options.setFirst(5);
origin: org.wso2.org.apache.shindig/shindig-social-api

@Test
public void testGetExpectedUsersForPlural() throws Exception {
 CollectionOptions options = new CollectionOptions();
 options.setSortBy(PersonService.TOP_FRIENDS_SORT);
 options.setSortOrder(SortOrder.ascending);
 options.setFilter(null);
 options.setFilterOperation(FilterOperation.contains);
 options.setFilterValue("");
 options.setFirst(0);
 options.setMax(20);
 RestfulCollection<Person> responseItem = db.getPeople(
   ImmutableSet.of(JOHN_DOE, JANE_DOE), new GroupId(GroupId.Type.friends, null),
   options, Collections.<String>emptySet(), token).get();
 assertNotNull(responseItem);
 assertEquals(4, responseItem.getTotalResults());
 // Test a couple of users
 assertEquals("john.doe", responseItem.getList().get(0).getId());
 assertEquals("jane.doe", responseItem.getList().get(1).getId());
}
origin: org.apache.shindig/shindig-social-api

@Test
public void testGetExpectedFriends() throws Exception {
 CollectionOptions options = new CollectionOptions();
 options.setSortBy(PersonService.TOP_FRIENDS_SORT);
 options.setSortOrder(SortOrder.ascending);
 options.setFilter(null);
 options.setFilterOperation(FilterOperation.contains);
 options.setFilterValue("");
 options.setFirst(0);
 options.setMax(20);
 RestfulCollection<Person> responseItem = db.getPeople(
   ImmutableSet.of(CANON_USER), new GroupId(GroupId.Type.friends, null),
   options, Collections.<String>emptySet(), token).get();
 assertNotNull(responseItem);
 assertEquals(4, responseItem.getTotalResults());
 // Test a couple of users
 assertEquals("john.doe", responseItem.getList().get(0).getId());
 assertEquals("jane.doe", responseItem.getList().get(1).getId());
}
origin: org.wso2.org.apache.shindig/shindig-social-api

@Test
public void testGetExpectedFriends() throws Exception {
 CollectionOptions options = new CollectionOptions();
 options.setSortBy(PersonService.TOP_FRIENDS_SORT);
 options.setSortOrder(SortOrder.ascending);
 options.setFilter(null);
 options.setFilterOperation(FilterOperation.contains);
 options.setFilterValue("");
 options.setFirst(0);
 options.setMax(20);
 RestfulCollection<Person> responseItem = db.getPeople(
   ImmutableSet.of(CANON_USER), new GroupId(GroupId.Type.friends, null),
   options, Collections.<String>emptySet(), token).get();
 assertNotNull(responseItem);
 assertEquals(4, responseItem.getTotalResults());
 // Test a couple of users
 assertEquals("john.doe", responseItem.getList().get(0).getId());
 assertEquals("jane.doe", responseItem.getList().get(1).getId());
}
origin: org.apache.shindig/shindig-social-api

@Test
public void testGetExpectedUsersForPlural() throws Exception {
 CollectionOptions options = new CollectionOptions();
 options.setSortBy(PersonService.TOP_FRIENDS_SORT);
 options.setSortOrder(SortOrder.ascending);
 options.setFilter(null);
 options.setFilterOperation(FilterOperation.contains);
 options.setFilterValue("");
 options.setFirst(0);
 options.setMax(20);
 RestfulCollection<Person> responseItem = db.getPeople(
   ImmutableSet.of(JOHN_DOE, JANE_DOE), new GroupId(GroupId.Type.friends, null),
   options, Collections.<String>emptySet(), token).get();
 assertNotNull(responseItem);
 assertEquals(4, responseItem.getTotalResults());
 // Test a couple of users
 assertEquals("john.doe", responseItem.getList().get(0).getId());
 assertEquals("jane.doe", responseItem.getList().get(1).getId());
}
origin: com.lmco.shindig/shindig-social-api

@Test
public void testGetExpectedFriends() throws Exception {
 CollectionOptions options = new CollectionOptions();
 options.setSortBy(PersonService.TOP_FRIENDS_SORT);
 options.setSortOrder(SortOrder.ascending);
 options.setFilter(null);
 options.setFilterOperation(FilterOperation.contains);
 options.setFilterValue("");
 options.setFirst(0);
 options.setMax(20);
 RestfulCollection<Person> responseItem = db.getPeople(
   ImmutableSet.of(CANON_USER), new GroupId(GroupId.Type.friends, null),
   options, Collections.<String>emptySet(), token).get();
 assertNotNull(responseItem);
 assertEquals(4, responseItem.getTotalResults());
 // Test a couple of users
 assertEquals("john.doe", responseItem.getEntry().get(0).getId());
 assertEquals("jane.doe", responseItem.getEntry().get(1).getId());
}
origin: com.lmco.shindig/shindig-social-api

@Test
public void testGetExpectedUsersForPlural() throws Exception {
 CollectionOptions options = new CollectionOptions();
 options.setSortBy(PersonService.TOP_FRIENDS_SORT);
 options.setSortOrder(SortOrder.ascending);
 options.setFilter(null);
 options.setFilterOperation(FilterOperation.contains);
 options.setFilterValue("");
 options.setFirst(0);
 options.setMax(20);
 RestfulCollection<Person> responseItem = db.getPeople(
   ImmutableSet.of(JOHN_DOE, JANE_DOE), new GroupId(GroupId.Type.friends, null),
   options, Collections.<String>emptySet(), token).get();
 assertNotNull(responseItem);
 assertEquals(4, responseItem.getTotalResults());
 // Test a couple of users
 assertEquals("john.doe", responseItem.getEntry().get(0).getId());
 assertEquals("jane.doe", responseItem.getEntry().get(1).getId());
}
org.apache.shindig.social.opensocial.spiCollectionOptionssetFilterOperation

Popular methods of CollectionOptions

  • <init>
  • setFirst
  • setMax
  • getFilter
    This filter can be any field of the object being filtered or the special js filters, hasApp or topF
  • getSortBy
    This sortBy can be any field of the object being sorted or the special js sort of topFriends.
  • getSortOrder
  • setFilter
  • setFilterValue
  • setSortBy
  • setSortOrder
  • getFilterOperation
  • getFilterValue
    Where a field filter has been specified (ie a non special filter) then this is the value of the filt
  • getFilterOperation,
  • getFilterValue,
  • getFirst,
  • getMax,
  • setUpdatedSince,
  • getOptionalParameter,
  • setOptionalParameters

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JLabel (javax.swing)
  • JList (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now