Class Proposition


  • public class Proposition
    extends Object
    • Method Detail

      • getId

        public String getId()
        Gets the Proposition identifier.
        Returns:
        String containing the Proposition identifier.
      • getOffers

        public List<Offer> getOffers()
        Gets the Proposition items.
        Returns:
        List<Offer> containing the Proposition items.
      • getScope

        public String getScope()
        Gets the Proposition scope.
        Returns:
        String containing the encoded Proposition scope.
      • getScopeDetails

        public Map<String,​Object> getScopeDetails()
        Gets the Proposition scope details.
        Returns:
        Map<String, Object> containing the Proposition scope details.
      • generateReferenceXdm

        public Map<String,​Object> generateReferenceXdm()
        Generates a map containing XDM formatted data for Experience Event - Proposition Reference field group from this Proposition.

        The returned XDM data does not contain eventType for the Experience Event.

        Returns:
        Map<String, Object> containing the XDM data for the proposition reference.
      • fromEventData

        public static Proposition fromEventData​(Map<String,​Object> data)
        Creates a Proposition object using information provided in data map.

        This method returns null if the provided data is empty or null or if it does not contain required info for creating a Proposition object.

        Parameters:
        data - Map<String, Object> containing proposition data.
        Returns:
        Proposition object or null.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object