Tabnine Logo
ActivityStreamService.getActivityEntries
Code IndexAdd Tabnine to your IDE (free)

How to use
getActivityEntries
method
in
org.apache.shindig.social.opensocial.spi.ActivityStreamService

Best Java code snippets using org.apache.shindig.social.opensocial.spi.ActivityStreamService.getActivityEntries (Showing top 6 results out of 315)

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

    request.getToken());
 } else {
  return service.getActivityEntries(userIds.iterator().next(), request.getGroup(),
    request.getAppId(), request.getFields(), options, optionalActivityIds, request.getToken());
return service.getActivityEntries(userIds, request.getGroup(),
  request.getAppId(),
origin: org.wso2.org.apache.shindig/shindig-social-api

    request.getToken());
 } else {
  return service.getActivityEntries(userIds.iterator().next(), request.getGroup(),
    request.getAppId(), request.getFields(), options, optionalActivityIds, request.getToken());
return service.getActivityEntries(userIds, request.getGroup(),
  request.getAppId(),
origin: org.wso2.org.apache.shindig/shindig-social-api

@Test
public void testHandleGetPlural() throws Exception {
 String path = "/activitystreams/john.doe,jane.doe/@self/@app";
 RestHandler operation = registry.getRestHandler(path, "GET");
 List<ActivityEntry> entries = ImmutableList.of();
 RestfulCollection<ActivityEntry> data = new RestfulCollection<ActivityEntry>(entries);
 Set<UserId> userIdSet = Sets.newLinkedHashSet(JOHN_DOE);
 userIdSet.add(new UserId(UserId.Type.userId, "jane.doe"));
 org.easymock.EasyMock.expect(service.getActivityEntries(eq(userIdSet),
   eq(new GroupId(GroupId.Type.self, null)), eq("appId"),eq(ImmutableSet.<String>of()),
   org.easymock.EasyMock.isA((CollectionOptions.class)), eq(token))).andReturn(
    Futures.immediateFuture(data));
 replay();
 assertEquals(data, operation.execute(Maps.<String, String[]>newHashMap(),
   null, token, converter).get());
 verify();
 reset();
}
origin: org.wso2.org.apache.shindig/shindig-social-api

private void assertHandleGetForGroup(GroupId.Type group) throws Exception {
 String path = "/activitystreams/john.doe/@" + group.toString();
 RestHandler operation = registry.getRestHandler(path, "GET");
 List<ActivityEntry> entries = ImmutableList.of();
 RestfulCollection<ActivityEntry> data = new RestfulCollection<ActivityEntry>(entries);
 org.easymock.EasyMock.expect(service.getActivityEntries(eq(JOHN_DOE),
   eq(new GroupId(group, null)), (String)isNull(), eq(ImmutableSet.<String>of()),
   org.easymock.EasyMock.isA(CollectionOptions.class), eq(token))).
   andReturn(Futures.immediateFuture(data));
 replay();
 assertEquals(data, operation.execute(Maps.<String, String[]>newHashMap(),
   null, token, converter).get());
 verify();
 reset();
}
origin: org.apache.shindig/shindig-social-api

@Test
public void testHandleGetPlural() throws Exception {
 String path = "/activitystreams/john.doe,jane.doe/@self/@app";
 RestHandler operation = registry.getRestHandler(path, "GET");
 List<ActivityEntry> entries = ImmutableList.of();
 RestfulCollection<ActivityEntry> data = new RestfulCollection<ActivityEntry>(entries);
 Set<UserId> userIdSet = Sets.newLinkedHashSet(JOHN_DOE);
 userIdSet.add(new UserId(UserId.Type.userId, "jane.doe"));
 org.easymock.EasyMock.expect(service.getActivityEntries(eq(userIdSet),
   eq(new GroupId(GroupId.Type.self, null)), eq("appId"),eq(ImmutableSet.<String>of()),
   org.easymock.EasyMock.isA((CollectionOptions.class)), eq(token))).andReturn(
    Futures.immediateFuture(data));
 replay();
 assertEquals(data, operation.execute(Maps.<String, String[]>newHashMap(),
   null, token, converter).get());
 verify();
 reset();
}
origin: org.apache.shindig/shindig-social-api

private void assertHandleGetForGroup(GroupId.Type group) throws Exception {
 String path = "/activitystreams/john.doe/@" + group.toString();
 RestHandler operation = registry.getRestHandler(path, "GET");
 List<ActivityEntry> entries = ImmutableList.of();
 RestfulCollection<ActivityEntry> data = new RestfulCollection<ActivityEntry>(entries);
 org.easymock.EasyMock.expect(service.getActivityEntries(eq(JOHN_DOE),
   eq(new GroupId(group, null)), (String)isNull(), eq(ImmutableSet.<String>of()),
   org.easymock.EasyMock.isA(CollectionOptions.class), eq(token))).
   andReturn(Futures.immediateFuture(data));
 replay();
 assertEquals(data, operation.execute(Maps.<String, String[]>newHashMap(),
   null, token, converter).get());
 verify();
 reset();
}
org.apache.shindig.social.opensocial.spiActivityStreamServicegetActivityEntries

Javadoc

Returns a list of activities that correspond to the passed in users and group.

Popular methods of ActivityStreamService

  • createActivityEntry
    Creates the passed in activity for the passed in user and group. Once createActivity is called, getA
  • deleteActivityEntries
    Deletes the activity for the passed in user and group that corresponds to the activityId.
  • getActivityEntry
    Returns an activity for the passed in user and group that corresponds to a single activityId.
  • updateActivityEntry
    Updates the specified Activity.

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JPanel (javax.swing)
  • Option (scala)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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