|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventOperations
Defines operations for creating and reading event data as well as RSVP'ing to events on behalf of a user.
Method Summary | |
---|---|
void |
acceptInvitation(String eventId)
Accepts an invitation to an event. |
String |
createEvent(String name,
String startTime,
String endTime)
Creates an event. |
void |
declineInvitation(String eventId)
Declines an invitation to an event. |
void |
deleteEvent(String eventId)
Deletes an event. |
PagedList<EventInvitee> |
getAttending(String eventId)
Retrieves the list of an event's invitees who have accepted the invitation. |
PagedList<EventInvitee> |
getDeclined(String eventId)
Retrieves the list of an event's invitees who have declined the invitation. |
Event |
getEvent(String eventId)
Retrieves event data for a specified event. |
byte[] |
getEventImage(String eventId)
Retrieves an event's image as an array of bytes. |
byte[] |
getEventImage(String eventId,
ImageType imageType)
Retrieves an event's image as an array of bytes. |
PagedList<Invitation> |
getInvitations()
Retrieves a list of up to 25 events that the authenticated user has been invited to. |
PagedList<Invitation> |
getInvitations(int offset,
int limit)
Deprecated. Use getInvitations(PagingParameters) instead |
PagedList<Invitation> |
getInvitations(PagingParameters pagedListParameters)
Retrieves a list of events that the authenticated user has been invited to. |
PagedList<Invitation> |
getInvitations(String userId)
Retrieves a list of events that the specified user has been invited to. |
PagedList<Invitation> |
getInvitations(String userId,
int offset,
int limit)
Deprecated. Use getInvitations(String, PagingParameters) instead |
PagedList<Invitation> |
getInvitations(String userId,
PagingParameters pagedListParameters)
Retrieves a list of events that the specified user has been invited to. |
PagedList<EventInvitee> |
getInvited(String eventId)
Retrieves the list of an event's invitees. |
PagedList<EventInvitee> |
getMaybeAttending(String eventId)
Retrieves the list of an event's invitees who have indicated that they may attend the event. |
PagedList<EventInvitee> |
getNoReplies(String eventId)
Retrieves the list of an event's invitees who have not yet RSVP'd. |
void |
maybeInvitation(String eventId)
RSVPs to an event with a maybe. |
PagedList<Event> |
search(String query)
Search for events. |
PagedList<Event> |
search(String query,
int offset,
int limit)
Deprecated. Use search(String, PagingParameters) instead. |
PagedList<Event> |
search(String query,
PagingParameters pagedListParameters)
Search for events. |
void |
sendInvitation(String eventId,
String... userIds)
Sends an event invitation to one or more users. |
Method Detail |
---|
PagedList<Invitation> getInvitations()
Invitation
s for the user, or an empty list if not available.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" or "friends_events" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.@Deprecated PagedList<Invitation> getInvitations(int offset, int limit)
getInvitations(PagingParameters)
instead
offset
- the offset into the list of eventslimit
- the maximum number of events to return
Invitation
s for the user, or an empty list if not available.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" or "friends_events" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Invitation> getInvitations(PagingParameters pagedListParameters)
pagedListParameters
- the parameters defining the bounds of the list to return.
Invitation
s for the user, or an empty list if not available.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" or "friends_events" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Invitation> getInvitations(String userId)
userId
- the user's ID
Invitation
s for the user, or an empty list if not available.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" or "friends_events" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.@Deprecated PagedList<Invitation> getInvitations(String userId, int offset, int limit)
getInvitations(String, PagingParameters)
instead
userId
- the user's IDoffset
- the offset into the list of eventslimit
- the maximum number of events to return
Invitation
s for the user, or an empty list if not available.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" or "friends_events" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Invitation> getInvitations(String userId, PagingParameters pagedListParameters)
userId
- the user's IDpagedListParameters
- the parameters defining the bounds of the list to return.
Invitation
s for the user, or an empty list if not available.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" or "friends_events" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.Event getEvent(String eventId)
eventId
- the event ID
Event
object
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.byte[] getEventImage(String eventId)
eventId
- the event ID
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.byte[] getEventImage(String eventId, ImageType imageType)
eventId
- the event IDimageType
- the image type (eg., small, normal, large. square)
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.String createEvent(String name, String startTime, String endTime)
name
- the name of the eventstartTime
- the start time of the event.endTime
- the end time of the event.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "create_event" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.void deleteEvent(String eventId)
eventId
- the ID of the event
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "create_event" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.void sendInvitation(String eventId, String... userIds)
eventId
- the ID of the eventuserIds
- a list of one or more users to invite to the event
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "create_event" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<EventInvitee> getInvited(String eventId)
eventId
- the event ID.
EventInvitee
s for the event.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<EventInvitee> getAttending(String eventId)
eventId
- the event ID.
EventInvitee
s for the event.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<EventInvitee> getMaybeAttending(String eventId)
eventId
- the event ID.
EventInvitee
s for the event.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<EventInvitee> getNoReplies(String eventId)
eventId
- the event ID.
EventInvitee
s for the event.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<EventInvitee> getDeclined(String eventId)
eventId
- the event ID.
EventInvitee
s for the event.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.void acceptInvitation(String eventId)
eventId
- the event ID
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "rsvp_event" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.void maybeInvitation(String eventId)
eventId
- the event ID
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "rsvp_event" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.void declineInvitation(String eventId)
eventId
- the event ID
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "rsvp_event" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Event> search(String query)
query
- the search query (e.g., "Spring User Group")
Event
s matching the search query
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.@Deprecated PagedList<Event> search(String query, int offset, int limit)
search(String, PagingParameters)
instead.
query
- the search query (e.g., "Spring User Group")offset
- the offset into the list of eventslimit
- the maximum number of events to return
Event
s matching the search query
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<Event> search(String query, PagingParameters pagedListParameters)
query
- the search query (e.g., "Spring User Group")pagedListParameters
- the parameters defining the bounds of the list to return.
Event
s matching the search query
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |