public interface EventService
| Modifier and Type | Method and Description |
|---|---|
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.
|
List<EventInvitee> |
getAttending(String eventId)
Retrieves the list of an event's invitees who have accepted the invitation.
|
List<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.
|
List<Invitation> |
getInvitations()
Retrieves a list of up to 25 events that the authenticated user has been invited to.
|
List<Invitation> |
getInvitations(int offset,
int limit)
Retrieves a list of events that the authenticated user has been invited to.
|
List<Invitation> |
getInvitations(String userId)
Retrieves a list of events that the specified user has been invited to.
|
List<Invitation> |
getInvitations(String userId,
int offset,
int limit)
Retrieves a list of events that the specified user has been invited to.
|
List<EventInvitee> |
getInvited(String eventId)
Retrieves the list of an event's invitees.
|
List<EventInvitee> |
getMaybeAttending(String eventId)
Retrieves the list of an event's invitees who have indicated that they may attend the event.
|
List<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.
|
List<Event> |
search(String query)
Search for events.
|
List<Event> |
search(String query,
int offset,
int limit)
Search for events.
|
List<Invitation> getInvitations()
Invitations for the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_events" or "friends_events" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Invitation> getInvitations(int offset, int limit)
offset - the offset into the list of eventslimit - the maximum number of events to returnInvitations for the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_events" or "friends_events" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Invitation> getInvitations(String userId)
userId - the user's IDInvitations for the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_events" or "friends_events" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Invitation> getInvitations(String userId, int offset, int limit)
userId - the user's IDoffset - the offset into the list of eventslimit - the maximum number of events to returnInvitations for the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_events" or "friends_events" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Event getEvent(String eventId)
eventId - the event IDEvent objectApiException - if there is an error while communicating with Facebook.byte[] getEventImage(String eventId)
eventId - the event IDApiException - 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)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.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "create_event" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.void deleteEvent(String eventId)
eventId - the ID of the eventApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "create_event" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<EventInvitee> getInvited(String eventId)
eventId - the event ID.EventInvitees for the event.ApiException - if there is an error while communicating with Facebook.List<EventInvitee> getAttending(String eventId)
eventId - the event ID.EventInvitees for the event.ApiException - if there is an error while communicating with Facebook.List<EventInvitee> getMaybeAttending(String eventId)
eventId - the event ID.EventInvitees for the event.ApiException - if there is an error while communicating with Facebook.List<EventInvitee> getNoReplies(String eventId)
eventId - the event ID.EventInvitees for the event.ApiException - if there is an error while communicating with Facebook.List<EventInvitee> getDeclined(String eventId)
eventId - the event ID.EventInvitees for the event.ApiException - if there is an error while communicating with Facebook.void acceptInvitation(String eventId)
eventId - the event IDApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "rsvp_event" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.void maybeInvitation(String eventId)
eventId - the event IDApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "rsvp_event" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.void declineInvitation(String eventId)
eventId - the event IDApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "rsvp_event" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Event> search(String query)
query - the search query (e.g., "Spring User Group")Events matching the search queryApiException - if there is an error while communicating with Facebook.List<Event> search(String query, int offset, int limit)
query - the search query (e.g., "Spring User Group")offset - the offset into the list of eventslimit - the maximum number of events to returnEvents matching the search queryApiException - if there is an error while communicating with Facebook.Copyright © 2011-2013 Seam Framework. All Rights Reserved.