Skip navigation links
com.adobe.cq.commerce.api.smartlist

Interface SmartListManager

    • Method Detail

      • getSmartList

        SmartList getSmartList(String path)
        Returns a smart list for the given 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.
        Parameters:
        path - The path/ID that represents the smart list
        Returns:
        The SmartList representing the smart list or null if not found.
      • getSmartLists

        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.
        Parameters:
        filter - An optional implementation-specific predicate name. For example to filter personal lists and lists shared by friends.
        Returns:
        a list of SmartList objects.
      • createSmartList

        SmartList createSmartList(String name)
                           throws CommerceException
        Creates a smart list with a given name.
        Parameters:
        name - The name of the smart list.
        Returns:
        The SmartList representing the created smart list.
        Throws:
        CommerceException - if the smart list was not created
      • createSmartList

        SmartList createSmartList(String name,
                                  Map<String,Object> properties)
                           throws CommerceException
        Creates a smart list with a given name.
        Parameters:
        name - The name of the smart list.
        properties - The additional data like description for the smart list.
        Returns:
        The SmartList representing the created smart list.
        Throws:
        CommerceException - if the smart list was not created
      • updateSmartList

        void updateSmartList(String path,
                             Map<String,Object> properties)
                      throws CommerceException
        Updates the SmartList.
        Parameters:
        path - The path/ID that represents the smart list to be updated.
        properties - The additional data for smart list like title or description
        Throws:
        CommerceException - if the smart list was not updated
      • makeSmartListDefault

        void makeSmartListDefault(String path)
                           throws CommerceException
        Mark the current smart list as default smart list. This implies, depending on the implementation, all other smart list of the same owner are marked as non default.
        Parameters:
        path - The path/ID that represents the smart list to be marked as default.
        Throws:
        CommerceException - if the smart list was not marked as default
      • shareSmartList

        void shareSmartList(String path,
                            Map<String,Object> properties)
                     throws CommerceException
        Share the current smart list with third party customers. Sharing information (recipients, sharing state, messages) are provided via the properties parameter. Use null for properties to "unshare" a smart-list and set it back to personal.
        Parameters:
        path - The path/ID that represents the smart list to be shared.
        properties - The sharing properties.
        Throws:
        CommerceException - if the smart list was not marked as default

"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"