Class ClassificationSystemCPQAttributesContainer

java.lang.Object
de.hybris.platform.sap.productconfig.runtime.interf.services.impl.ClassificationSystemCPQAttributesContainer

public class ClassificationSystemCPQAttributesContainer extends 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.
  • Field Details

  • Constructor Details

    • ClassificationSystemCPQAttributesContainer

      public ClassificationSystemCPQAttributesContainer(String code, String name, String description, Map<String,String> valueNames, Map<String,String> valueDescriptions, Collection<MediaModel> csticMedia, Map<String,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 Details

    • getName

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

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

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

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

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

      public Map<String,String> getValueDescriptions()
      Returns:
      the valueDescriptions
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object