public interface EventOperations
Modifier and Type | Method and Description |
---|---|
void |
acceptInvitation(String eventId)
Accepts an invitation to an event.
|
void |
declineInvitation(String eventId)
Declines an invitation to an event.
|
PagedList<Invitation> |
getAttending()
Retrieves a list of invitations for events that the authenticated user is attending.
|
PagedList<Invitation> |
getAttending(PagingParameters pagingParams)
Retrieves a list of invitations for events that the authenticated user is attending.
|
PagedList<EventInvitee> |
getAttending(String eventId)
Retrieves the list of an event's invitees who have accepted the invitation.
|
PagedList<Invitation> |
getCreated()
Retrieves a list of invitations for events that the authenticated user has created.
|
PagedList<Invitation> |
getCreated(PagingParameters pagingParams)
Retrieves a list of invitations for events that the authenticated user has created.
|
PagedList<Invitation> |
getDeclined()
Retrieves a list of invitations for events that the authenticated user has declined.
|
PagedList<Invitation> |
getDeclined(PagingParameters pagingParams)
Retrieves a list of invitations for events that the authenticated user has declined.
|
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<EventInvitee> |
getInvited(String eventId)
Retrieves the list of an event's invitees.
|
PagedList<Invitation> |
getMaybeAttending()
Retrieves a list of invitations for events that the authenticated user may be attending.
|
PagedList<Invitation> |
getMaybeAttending(PagingParameters pagingParams)
Retrieves a list of invitations for events that the authenticated user may be attending.
|
PagedList<EventInvitee> |
getMaybeAttending(String eventId)
Retrieves the list of an event's invitees who have indicated that they may attend the event.
|
PagedList<Invitation> |
getNoReplies()
Retrieves a list of invitations for events that the authenticated user has not replied.
|
PagedList<Invitation> |
getNoReplies(PagingParameters pagingParams)
Retrieves a list of invitations for events that the authenticated user has not replied.
|
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,
PagingParameters pagedListParameters)
Search for events.
|
Event getEvent(String eventId)
eventId
- the event IDEvent
objectorg.springframework.social.ApiException
- if there is an error while communicating with Facebook.byte[] getEventImage(String eventId)
eventId
- the event IDorg.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.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<Invitation> getCreated()
Invitation
s for events that the user has created.org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" permission.org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<Invitation> getCreated(PagingParameters pagingParams)
pagingParams
- paging parametersInvitation
s for events that the user has created.org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" permission.org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<Invitation> getAttending()
Invitation
s for events that the user is attending.org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" permission.org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<Invitation> getAttending(PagingParameters pagingParams)
pagingParams
- paging parametersInvitation
s for events that the user is attending.org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" permission.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<Invitation> getMaybeAttending()
Invitation
s for events that the user is attending.org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" permission.org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<Invitation> getMaybeAttending(PagingParameters pagingParams)
pagingParams
- paging parametersInvitation
s for events that the user is attending.org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" permission.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<Invitation> getNoReplies()
Invitation
s for events that the user has not replied.org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" permission.org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<Invitation> getNoReplies(PagingParameters pagingParams)
pagingParams
- paging parametersInvitation
s for events that the user has not replied.org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" permission.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<Invitation> getDeclined()
Invitation
s for events that the user has declined.org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" permission.org.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<Invitation> getDeclined(PagingParameters pagingParams)
pagingParams
- paging parametersInvitation
s for events that the user has declined.org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_events" permission.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 IDorg.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 IDorg.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 IDorg.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 queryorg.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 queryorg.springframework.social.ApiException
- if there is an error while communicating with Facebook.