public interface SmartListManager
SmartListManager defines the API to get, create and delete smart lists SmartList and methods
related to sharing of a smart list.
A SmartListManager can be retrieved from the CommerceSession.| Modifier and Type | Method and Description |
|---|---|
SmartList |
createSmartList(String name)
Creates a smart list with a given name.
|
SmartList |
createSmartList(String name,
Map<String,Object> properties)
Creates a smart list with a given name.
|
void |
deleteSmartList(String path)
Removes the
SmartList. |
SmartList |
getSmartList(String path)
Returns a smart list for the given
path or an ID uniquely identifying the SmartList to the
external commerce engine. |
List<SmartList> |
getSmartLists(String filter)
Get a list of smart lists, based on the provided filter, this can be all, only personal lists or lists shared by
friends.
|
void |
makeSmartListDefault(String path)
Mark the current smart list as default smart list.
|
void |
shareSmartList(String path,
Map<String,Object> properties)
Share the current smart list with third party customers.
|
void |
updateSmartList(String path,
Map<String,Object> properties)
Updates the
SmartList. |
SmartList getSmartList(String path)
path or an ID uniquely identifying the SmartList to the
external commerce engine. It returns null if given path/ID is not a smart list or is not defined.path - The path/ID that represents the smart listSmartList representing the smart list or null if not found.List<SmartList> getSmartLists(String filter)
filter - An optional implementation-specific predicate name. For example to filter personal lists and lists
shared by friends.SmartList objects.SmartList createSmartList(String name) throws CommerceException
name - The name of the smart list.SmartList representing the created smart list.CommerceException - if the smart list was not createdSmartList createSmartList(String name, Map<String,Object> properties) throws CommerceException
name - The name of the smart list.properties - The additional data like description for the smart list.SmartList representing the created smart list.CommerceException - if the smart list was not createdvoid updateSmartList(String path, Map<String,Object> properties) throws CommerceException
SmartList.path - The path/ID that represents the smart list to be updated.properties - The additional data for smart list like title or descriptionCommerceException - if the smart list was not updatedvoid deleteSmartList(String path) throws CommerceException
SmartList.path - The path/ID that represents the smart list to be deleted.CommerceException - if the smart list was not deletedvoid makeSmartListDefault(String path) throws CommerceException
path - The path/ID that represents the smart list to be marked as default.CommerceException - if the smart list was not marked as defaultvoid shareSmartList(String path, Map<String,Object> properties) throws CommerceException
null for properties to "unshare" a smart-list and
set it back to personal.path - The path/ID that represents the smart list to be shared.properties - The sharing properties.CommerceException - if the smart list was not marked as default"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"