@Component(value="mirrorTemplate") public class MirrorTemplate extends Object
| Constructor and Description |
|---|
MirrorTemplate() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteContact(String contactId) |
void |
deleteSubscription(String id)
Subscribes to notifications on the user's timeline.
|
void |
deleteTimelineItem(String timelineItemId) |
String |
getAttachmentContentType(String timelineItemId,
String attachmentId) |
InputStream |
getAttachmentInputStream(String timelineItemId,
String attachmentId) |
com.google.api.services.mirror.model.Contact |
getContact(String id) |
com.google.api.services.mirror.Mirror |
getMirror() |
com.google.api.services.mirror.model.Contact |
insertContact(com.google.api.services.mirror.model.Contact contact) |
com.google.api.services.mirror.model.Subscription |
insertSubscription(String callbackUrl,
String collection) |
com.google.api.services.mirror.model.TimelineItem |
insertTimelineItem(com.google.api.services.mirror.model.TimelineItem item)
Inserts a simple timeline item.
|
void |
insertTimelineItem(com.google.api.services.mirror.model.TimelineItem item,
String attachmentContentType,
byte[] attachmentData)
Inserts an item with an attachment provided as a byte array.
|
void |
insertTimelineItem(com.google.api.services.mirror.model.TimelineItem item,
String attachmentContentType,
InputStream attachmentInputStream)
Inserts an item with an attachment provided as an input stream.
|
com.google.api.services.mirror.model.ContactsListResponse |
listContacts() |
com.google.api.services.mirror.model.TimelineListResponse |
listItems(long count) |
com.google.api.services.mirror.model.SubscriptionsListResponse |
listSubscriptions(com.google.api.client.auth.oauth2.Credential credential) |
com.google.api.services.mirror.model.TimelineItem |
render(org.springframework.web.servlet.ModelAndView mav) |
public com.google.api.services.mirror.Mirror getMirror()
public com.google.api.services.mirror.model.Contact insertContact(com.google.api.services.mirror.model.Contact contact)
throws IOException
IOExceptionpublic void deleteContact(String contactId) throws IOException
IOExceptionpublic com.google.api.services.mirror.model.ContactsListResponse listContacts()
throws IOException
IOExceptionpublic com.google.api.services.mirror.model.Contact getContact(String id) throws IOException
IOExceptionpublic com.google.api.services.mirror.model.TimelineListResponse listItems(long count)
throws IOException
IOExceptionpublic com.google.api.services.mirror.model.Subscription insertSubscription(String callbackUrl, String collection) throws IOException
IOExceptionpublic void deleteSubscription(String id) throws IOException
IOExceptionpublic com.google.api.services.mirror.model.SubscriptionsListResponse listSubscriptions(com.google.api.client.auth.oauth2.Credential credential)
throws IOException
IOExceptionpublic com.google.api.services.mirror.model.TimelineItem insertTimelineItem(com.google.api.services.mirror.model.TimelineItem item)
throws IOException
getCredential - (credential) the user's credentialitem - the item to insertIOExceptionpublic void insertTimelineItem(com.google.api.services.mirror.model.TimelineItem item,
String attachmentContentType,
byte[] attachmentData)
throws IOException
item - the item to insertattachmentContentType - the MIME type of the attachment (or null if none)attachmentData - data for the attachment (or null if none)IOExceptionpublic void insertTimelineItem(com.google.api.services.mirror.model.TimelineItem item,
String attachmentContentType,
InputStream attachmentInputStream)
throws IOException
item - the item to insertattachmentContentType - the MIME type of the attachment (or null if none)attachmentInputStream - input stream for the attachment (or null if none)IOExceptionpublic InputStream getAttachmentInputStream(String timelineItemId, String attachmentId) throws IOException
IOExceptionpublic String getAttachmentContentType(String timelineItemId, String attachmentId) throws IOException
IOExceptionpublic void deleteTimelineItem(String timelineItemId) throws IOException
IOExceptionCopyright © 2014 Eteration A.S.. All rights reserved.