@ProviderType
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(java.lang.String name)
Creates a smart list with a given name.
|
SmartList |
createSmartList(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> properties)
Creates a smart list with a given name.
|
void |
deleteSmartList(java.lang.String path)
Removes the
SmartList . |
SmartList |
getSmartList(java.lang.String path)
Returns a smart list for the given
path or an ID uniquely identifying the SmartList to the
external commerce engine. |
java.util.List<SmartList> |
getSmartLists(java.lang.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(java.lang.String path)
Mark the current smart list as default smart list.
|
void |
shareSmartList(java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> properties)
Share the current smart list with third party customers.
|
void |
updateSmartList(java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> properties)
Updates the
SmartList . |
SmartList getSmartList(java.lang.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.java.util.List<SmartList> getSmartLists(java.lang.String filter)
filter
- An optional implementation-specific predicate name. For example to filter personal lists and lists
shared by friends.SmartList
objects.SmartList createSmartList(java.lang.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(java.lang.String name, java.util.Map<java.lang.String,java.lang.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(java.lang.String path, java.util.Map<java.lang.String,java.lang.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(java.lang.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(java.lang.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(java.lang.String path, java.util.Map<java.lang.String,java.lang.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 defaultCopyright © 2010 - 2020 Adobe. All Rights Reserved