public interface IReviewAdapter extends IServiceAdapter
Implementations of this interface must ensure that the following property can be retrieved from the IConfigManager implementation being used in the application's AdapterEnvironment:
Property: /config/soccom/adapter/impl/<name>/review
Value: String containing a fully qualified name of the IReviewAdapter implementation class
Where: <name> is the short name used to identify this implementation.
Example: /config/soccom/adapter/impl/bv/review = "com.ibm.commerce.soccom.bv.ReviewAdapterImpl"
A review can contain one or both of the following types of information:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copy Right Statement
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> | create(java.lang.String itemHandle, java.lang.String title, java.lang.String rating, java.lang.String body, java.lang.String itemDescription)
Creates a review, rating, or both for an item.
|
java.util.Map<java.lang.String,java.lang.Object> | list(java.lang.String itemHandle, int pageSize, int onPage, java.util.List<java.util.Map<java.lang.String,java.lang.String>> sortOptions)
Returns a page of reviews associated with itemHandle.
|
java.util.Map<java.lang.String,java.lang.Object> | searchByUsername(java.lang.String username, int pageSize, int onPage, java.util.List<java.util.Map<java.lang.String,java.lang.String>> sortOptions)
Returns the reviews created by the user with user name username.
|
static final java.lang.String COPYRIGHT
java.util.Map<java.lang.String,java.lang.Object> create(java.lang.String itemHandle, java.lang.String title, java.lang.String rating, java.lang.String body, java.lang.String itemDescription) throws AdapterException
java.util.Map<java.lang.String,java.lang.Object> searchByUsername(java.lang.String username, int pageSize, int onPage, java.util.List<java.util.Map<java.lang.String,java.lang.String>> sortOptions) throws AdapterException
java.util.Map<java.lang.String,java.lang.Object> list(java.lang.String itemHandle, int pageSize, int onPage, java.util.List<java.util.Map<java.lang.String,java.lang.String>> sortOptions) throws AdapterException