Class Campaign

  • All Implemented Interfaces:
    com.anaptecs.jeaf.core.api.ServiceObject, java.io.Serializable

    @Valid
    public class Campaign
    extends java.lang.Object
    implements com.anaptecs.jeaf.core.api.ServiceObject
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Campaign.Builder
      Class implements builder to create a new instance of class Campaign.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Campaign()
      Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
      protected Campaign​(Campaign.Builder pBuilder)
      Initialize object using the passed builder.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addToDiscountOffers​(java.lang.String pDiscountOffers)
      Deprecated.
      void addToDiscountOffers​(java.util.Collection<java.lang.String> pDiscountOffers)
      Deprecated.
      void addToMoreLinks​(java.lang.Long pMoreLinks)
      Deprecated.
      No good any more (since: 1.2, removed with: 3.0)
      void addToMoreLinks​(java.util.Collection<java.lang.Long> pMoreLinks)
      Deprecated.
      No good any more (since: 1.2, removed with: 3.0)
      static Campaign.Builder builder()
      Method returns a new builder.
      static Campaign.Builder builder​(Campaign pObject)
      Method creates a new builder and initialize it with the data from the passed object.
      void clearDiscountOffers()
      Deprecated.
      void clearMoreLinks()
      Deprecated.
      java.util.List<java.lang.String> getDiscountOffers()
      Deprecated.
      java.util.Set<java.lang.Long> getMoreLinks()
      Deprecated.
      No good any more (since: 1.2, removed with: 3.0)
      long getTheLink()
      Deprecated.
      Please use "moreLinks" instead
      void removeFromDiscountOffers​(java.lang.String pDiscountOffers)
      Deprecated.
      void removeFromMoreLinks​(java.lang.Long pMoreLinks)
      Deprecated.
      void setTheLink​(long pTheLink)
      Deprecated.
      Please use "moreLinks" instead
      java.lang.String toString()
      Method creates a new String with the values of all attributes of this class.
      java.lang.StringBuilder toStringBuilder​(java.lang.String pIndent)
      Method returns a StringBuilder that can be used to create a String representation of this object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Campaign

        protected Campaign()
        Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
      • Campaign

        protected Campaign​(Campaign.Builder pBuilder)
        Initialize object using the passed builder.
        Parameters:
        pBuilder - Builder that should be used to initialize this object. The parameter must not be null.
    • Method Detail

      • builder

        public static Campaign.Builder builder()
        Method returns a new builder.
        Returns:
        Campaign.Builder New builder that can be used to create new Campaign objects.
      • builder

        public static Campaign.Builder builder​(Campaign pObject)
        Method creates a new builder and initialize it with the data from the passed object.
        Parameters:
        pObject - Object that should be used to initialize the builder. The parameter may be null.
        Returns:
        Campaign.Builder New builder that can be used to create new Campaign objects. The method never returns null.
      • getTheLink

        @Deprecated
        public long getTheLink()
        Deprecated.
        Please use "moreLinks" instead. (since: 2.3.1, removed with: 2.4)
        Method returns association theLink.

        This class uses so called soft links for decoupling. The actual type that is hidden by theLink is com.anaptecs.jeaf.junit.openapi.base.LinkObject
        The magic link.

        Returns:
        long Value to which theLink is set.
      • setTheLink

        @Deprecated
        public void setTheLink​(long pTheLink)
        Deprecated.
        Please use "moreLinks" instead. (since: 2.3.1, removed with: 2.4)
        Method sets association theLink.
        The magic link.
        Parameters:
        pTheLink - Value to which theLink should be set.
      • getMoreLinks

        @Deprecated
        public java.util.Set<java.lang.Long> getMoreLinks()
        Deprecated.
        No good any more (since: 1.2, removed with: 3.0)
        Method returns association moreLinks.

        This class uses so called soft links for decoupling. The actual type that is hidden by moreLinks is com.anaptecs.jeaf.junit.openapi.base.LinkObject

        Returns:
        Set Value to which moreLinks is set. The method never returns null and the returned collection is modifiable.
      • addToMoreLinks

        @Deprecated
        public void addToMoreLinks​(java.lang.Long pMoreLinks)
        Deprecated.
        No good any more (since: 1.2, removed with: 3.0)
        Method adds the passed object to moreLinks.
        Parameters:
        pMoreLinks - Object that should be added to moreLinks. The parameter must not be null.
      • addToMoreLinks

        @Deprecated
        public void addToMoreLinks​(java.util.Collection<java.lang.Long> pMoreLinks)
        Deprecated.
        No good any more (since: 1.2, removed with: 3.0)
        Method adds all passed objects to moreLinks.
        Parameters:
        pMoreLinks - Collection with all objects that should be added to moreLinks. The parameter must not be null.
      • removeFromMoreLinks

        @Deprecated
        public void removeFromMoreLinks​(java.lang.Long pMoreLinks)
        Deprecated.
        Method removes the passed object from moreLinks.
        Parameters:
        pMoreLinks - Object that should be removed from moreLinks. The parameter must not be null.
      • clearMoreLinks

        @Deprecated
        public void clearMoreLinks()
        Deprecated.
        Method removes all objects from moreLinks.
      • getDiscountOffers

        @Deprecated
        public java.util.List<java.lang.String> getDiscountOffers()
        Deprecated.
        Method returns association discountOffers.

        This class uses so called soft links for decoupling. The actual type that is hidden by discountOffers is com.anaptecs.jeaf.junit.openapi.base.DiscountOffer

        Returns:
        List Value to which discountOffers is set. The method never returns null and the returned collection is modifiable.
      • addToDiscountOffers

        @Deprecated
        public void addToDiscountOffers​(java.lang.String pDiscountOffers)
        Deprecated.
        Method adds the passed object to discountOffers.
        Parameters:
        pDiscountOffers - Object that should be added to discountOffers. The parameter must not be null.
      • addToDiscountOffers

        @Deprecated
        public void addToDiscountOffers​(java.util.Collection<java.lang.String> pDiscountOffers)
        Deprecated.
        Method adds all passed objects to discountOffers.
        Parameters:
        pDiscountOffers - Collection with all objects that should be added to discountOffers. The parameter must not be null.
      • removeFromDiscountOffers

        @Deprecated
        public void removeFromDiscountOffers​(java.lang.String pDiscountOffers)
        Deprecated.
        Method removes the passed object from discountOffers.
        Parameters:
        pDiscountOffers - Object that should be removed from discountOffers. The parameter must not be null.
      • clearDiscountOffers

        @Deprecated
        public void clearDiscountOffers()
        Deprecated.
        Method removes all objects from discountOffers.
      • toStringBuilder

        public java.lang.StringBuilder toStringBuilder​(java.lang.String pIndent)
        Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.
        Returns:
        StringBuilder StringBuilder representing this object. The method never returns null.
      • toString

        public java.lang.String toString()
        Method creates a new String with the values of all attributes of this class. All references to other objects will be ignored.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String String representation of this object. The method never returns null.