public interface IMicroBlogAdapter extends IServiceAdapter, IBridgingServiceAdapter
Implementations of this interface must ensure that the following properties are set and can be retrieved.
Property: /config/soccom/bridging/adapter/impl/<name>/microblog
Value: A string that contains the fully qualified name of the class that implements the IMicroBlogAdapter interface.
Where: <name> is the short name used to identify this implementation.
Example: /config/soccom/bridging/adapter/impl/facebook/microblog = "com.ibm.commerce.soccom.bridging.facebook.FacebookMicroBlogAdapter"
Property: /config/soccom/bridging/adapter/<name>/shareImagePath
Value: A string that defines the content sharing icon. The path should be given relative to the HTML root directory.
Where: <name> is the short name used to identify this implementation.
Example: /config/soccom/bridging/adapter/facebook/shareImagePath = "/ibm/social/images/facebook.jpg"
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copy Right Statement
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | getName()
Gets the human-readable name of this MicroBlog adapter.
|
int | postUserData(java.util.Map<java.lang.String,java.lang.String> microBlogEntry)
Post social content to a social network site.
|
static final java.lang.String COPYRIGHT
java.lang.String getName()
int postUserData(java.util.Map<java.lang.String,java.lang.String> microBlogEntry) throws AdapterException
microBlogEntry A map containing the following keys with the requested data to be posted to social network site.
content: The social content body to be posted to social network.
contentTitle: The social content title to be posted to social network.
contentLink: A link that points back to store web site containing the social content.
contentMessage: A text message that an end-user wish to include with this post.