Class ClassificationSystemCPQAttributesContainer


  • public class ClassificationSystemCPQAttributesContainer
    extends java.lang.Object
    Immutable Object.
    Container object for all CPQ related attributes of a single cstic within the hybris classification system.
    Can be uniquely identified by the specified code.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassificationSystemCPQAttributesContainer​(java.lang.String code, java.lang.String name, java.lang.String description, java.util.Map<java.lang.String,​java.lang.String> valueNames, java.util.Map<java.lang.String,​java.lang.String> valueDescriptions, java.util.Collection<MediaModel> csticMedia, java.util.Map<java.lang.String,​java.util.Collection<MediaModel>> csticValueMedia)
      Default Constructor.
      Because this object is immutable, all data has to be provided within this constructor call.
    • Constructor Detail

      • ClassificationSystemCPQAttributesContainer

        public ClassificationSystemCPQAttributesContainer​(java.lang.String code,
                                                          java.lang.String name,
                                                          java.lang.String description,
                                                          java.util.Map<java.lang.String,​java.lang.String> valueNames,
                                                          java.util.Map<java.lang.String,​java.lang.String> valueDescriptions,
                                                          java.util.Collection<MediaModel> csticMedia,
                                                          java.util.Map<java.lang.String,​java.util.Collection<MediaModel>> csticValueMedia)
        Default Constructor.
        Because this object is immutable, all data has to be provided within this constructor call.
        Parameters:
        code - unique identifier for this object, typically the cstic key
        name - display name for the cstic
        description - long text of the cstic
        valueNames - display names of all values belonging to this cstic, identified by the value name
        csticMedia - all medias assigned to this cstic
        csticValueMedia - all medias assigned to cstic values
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        display name of the cstic
      • getDescription

        public java.lang.String getDescription()
        Returns:
        long text of the cstic
      • getValueNames

        public java.util.Map<java.lang.String,​java.lang.String> getValueNames()
        Returns:
        cstic value display name map, value name is key
      • getCsticMedia

        public java.util.Collection<MediaModel> getCsticMedia()
        Returns:
        collection of cstic media assigned to the cstic represented by this container
      • getCsticValueMedia

        public java.util.Map<java.lang.String,​java.util.Collection<MediaModel>> getCsticValueMedia()
        Returns:
        map with medias for each cstic value belonging to the cstic represented by this container
      • getValueDescriptions

        public java.util.Map<java.lang.String,​java.lang.String> getValueDescriptions()
        Returns:
        the valueDescriptions
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object