com.atlassian.gadgets.opensocial.internal
Class ShindigActivityServiceImpl

java.lang.Object
  extended by com.atlassian.gadgets.opensocial.internal.ShindigActivityServiceImpl
All Implemented Interfaces:
org.apache.shindig.social.opensocial.spi.ActivityService

public class ShindigActivityServiceImpl
extends Object
implements org.apache.shindig.social.opensocial.spi.ActivityService

A service adapter that handles Shindig ActivityService requests and maps them to ActivityService requests.


Constructor Summary
ShindigActivityServiceImpl(PersonService personService, ActivityService activityService)
           
 
Method Summary
 Future<Void> createActivity(org.apache.shindig.social.opensocial.spi.UserId userId, org.apache.shindig.social.opensocial.spi.GroupId groupId, String appId, Set<String> fields, org.apache.shindig.social.opensocial.model.Activity activity, org.apache.shindig.auth.SecurityToken token)
           
 Future<Void> deleteActivities(org.apache.shindig.social.opensocial.spi.UserId userId, org.apache.shindig.social.opensocial.spi.GroupId groupId, String appId, Set<String> activityIds, org.apache.shindig.auth.SecurityToken token)
           
 Future<org.apache.shindig.social.opensocial.spi.RestfulCollection<org.apache.shindig.social.opensocial.model.Activity>> getActivities(Set<org.apache.shindig.social.opensocial.spi.UserId> userIds, org.apache.shindig.social.opensocial.spi.GroupId groupId, String appId, Set<String> fields, org.apache.shindig.auth.SecurityToken token)
           
 Future<org.apache.shindig.social.opensocial.spi.RestfulCollection<org.apache.shindig.social.opensocial.model.Activity>> getActivities(org.apache.shindig.social.opensocial.spi.UserId userId, org.apache.shindig.social.opensocial.spi.GroupId groupId, String appId, Set<String> fields, Set<String> activityIds, org.apache.shindig.auth.SecurityToken token)
           
 Future<org.apache.shindig.social.opensocial.model.Activity> getActivity(org.apache.shindig.social.opensocial.spi.UserId userId, org.apache.shindig.social.opensocial.spi.GroupId groupId, String appId, Set<String> fields, String activityId, org.apache.shindig.auth.SecurityToken token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShindigActivityServiceImpl

public ShindigActivityServiceImpl(PersonService personService,
                                  ActivityService activityService)
Method Detail

getActivities

public Future<org.apache.shindig.social.opensocial.spi.RestfulCollection<org.apache.shindig.social.opensocial.model.Activity>> getActivities(Set<org.apache.shindig.social.opensocial.spi.UserId> userIds,
                                                                                                                                             org.apache.shindig.social.opensocial.spi.GroupId groupId,
                                                                                                                                             String appId,
                                                                                                                                             Set<String> fields,
                                                                                                                                             org.apache.shindig.auth.SecurityToken token)
                                                                                                                                      throws org.apache.shindig.social.opensocial.spi.SocialSpiException
Specified by:
getActivities in interface org.apache.shindig.social.opensocial.spi.ActivityService
Throws:
org.apache.shindig.social.opensocial.spi.SocialSpiException

getActivities

public Future<org.apache.shindig.social.opensocial.spi.RestfulCollection<org.apache.shindig.social.opensocial.model.Activity>> getActivities(org.apache.shindig.social.opensocial.spi.UserId userId,
                                                                                                                                             org.apache.shindig.social.opensocial.spi.GroupId groupId,
                                                                                                                                             String appId,
                                                                                                                                             Set<String> fields,
                                                                                                                                             Set<String> activityIds,
                                                                                                                                             org.apache.shindig.auth.SecurityToken token)
                                                                                                                                      throws org.apache.shindig.social.opensocial.spi.SocialSpiException
Specified by:
getActivities in interface org.apache.shindig.social.opensocial.spi.ActivityService
Throws:
org.apache.shindig.social.opensocial.spi.SocialSpiException

getActivity

public Future<org.apache.shindig.social.opensocial.model.Activity> getActivity(org.apache.shindig.social.opensocial.spi.UserId userId,
                                                                               org.apache.shindig.social.opensocial.spi.GroupId groupId,
                                                                               String appId,
                                                                               Set<String> fields,
                                                                               String activityId,
                                                                               org.apache.shindig.auth.SecurityToken token)
                                                                        throws org.apache.shindig.social.opensocial.spi.SocialSpiException
Specified by:
getActivity in interface org.apache.shindig.social.opensocial.spi.ActivityService
Throws:
org.apache.shindig.social.opensocial.spi.SocialSpiException

deleteActivities

public Future<Void> deleteActivities(org.apache.shindig.social.opensocial.spi.UserId userId,
                                     org.apache.shindig.social.opensocial.spi.GroupId groupId,
                                     String appId,
                                     Set<String> activityIds,
                                     org.apache.shindig.auth.SecurityToken token)
                              throws org.apache.shindig.social.opensocial.spi.SocialSpiException
Specified by:
deleteActivities in interface org.apache.shindig.social.opensocial.spi.ActivityService
Throws:
org.apache.shindig.social.opensocial.spi.SocialSpiException

createActivity

public Future<Void> createActivity(org.apache.shindig.social.opensocial.spi.UserId userId,
                                   org.apache.shindig.social.opensocial.spi.GroupId groupId,
                                   String appId,
                                   Set<String> fields,
                                   org.apache.shindig.social.opensocial.model.Activity activity,
                                   org.apache.shindig.auth.SecurityToken token)
                            throws org.apache.shindig.social.opensocial.spi.SocialSpiException
Specified by:
createActivity in interface org.apache.shindig.social.opensocial.spi.ActivityService
Throws:
org.apache.shindig.social.opensocial.spi.SocialSpiException


Copyright © 2009 Atlassian. All Rights Reserved.