Class DigitalSubscriptionProperties

  • All Implemented Interfaces:
    Serializable

    public class DigitalSubscriptionProperties
    extends AgreementProperties
    DigitalSubscriptionProperties describes the agreement between a subscriber to one or more digital products.
    See Also:
    Serialized Form
    • Constructor Detail

      • DigitalSubscriptionProperties

        public DigitalSubscriptionProperties()
        Default constructor
      • DigitalSubscriptionProperties

        public DigitalSubscriptionProperties​(DigitalSubscriptionProperties template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getSupportLevel

        public String getSupportLevel()
        Return the level of support offered in this subscription.
        Returns:
        string
      • setSupportLevel

        public void setSupportLevel​(String supportLevel)
        Set up the level of support offered in this subscription.
        Parameters:
        supportLevel - string
      • getServiceLevels

        public Map<String,​String> getServiceLevels()
        Return the map of service levels agreed in this subscription.
        Returns:
        map
      • setServiceLevels

        public void setServiceLevels​(Map<String,​String> serviceLevels)
        Set up the map of service levels agreed in this subscription.
        Parameters:
        serviceLevels - int
      • toString

        public String toString()
        JSON-style toString
        Overrides:
        toString in class AgreementProperties
        Returns:
        return string containing the property names and values
      • equals

        public boolean equals​(Object objectToCompare)
        Return comparison result based on the content of the properties.
        Overrides:
        equals in class AgreementProperties
        Parameters:
        objectToCompare - test object
        Returns:
        result of comparison
      • hashCode

        public int hashCode()
        Return hash code for this object
        Overrides:
        hashCode in class AgreementProperties
        Returns:
        int hash code