Class GeneratedProductInterest

    • Field Detail

      • EXPIRYDATE

        public static final java.lang.String EXPIRYDATE
        Qualifier of the ProductInterest.expiryDate attribute
        See Also:
        Constant Field Values
      • BASESTORE

        public static final java.lang.String BASESTORE
        Qualifier of the ProductInterest.baseStore attribute
        See Also:
        Constant Field Values
      • NOTIFICATIONTYPE

        public static final java.lang.String NOTIFICATIONTYPE
        Qualifier of the ProductInterest.notificationType attribute
        See Also:
        Constant Field Values
      • EMAILENABLED

        public static final java.lang.String EMAILENABLED
        Qualifier of the ProductInterest.emailEnabled attribute
        See Also:
        Constant Field Values
      • SMSENABLED

        public static final java.lang.String SMSENABLED
        Qualifier of the ProductInterest.smsEnabled attribute
        See Also:
        Constant Field Values
      • NOTIFICATIONCHANNELS

        public static final java.lang.String NOTIFICATIONCHANNELS
        Qualifier of the ProductInterest.notificationChannels attribute
        See Also:
        Constant Field Values
      • BASESITE

        public static final java.lang.String BASESITE
        Qualifier of the ProductInterest.baseSite attribute
        See Also:
        Constant Field Values
      • LANGUAGE

        public static final java.lang.String LANGUAGE
        Qualifier of the ProductInterest.language attribute
        See Also:
        Constant Field Values
      • CUSTOMER

        public static final java.lang.String CUSTOMER
        Qualifier of the ProductInterest.customer attribute
        See Also:
        Constant Field Values
      • PRODUCT

        public static final java.lang.String PRODUCT
        Qualifier of the ProductInterest.product attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedProductInterest

        public GeneratedProductInterest()
    • Method Detail

      • getBaseSite

        public BaseSite getBaseSite​(SessionContext ctx)
        Generated method - Getter of the ProductInterest.baseSite attribute.
        Returns:
        the baseSite - Attribute contains base site object that will be used in the process.
      • getBaseSite

        public BaseSite getBaseSite()
        Generated method - Getter of the ProductInterest.baseSite attribute.
        Returns:
        the baseSite - Attribute contains base site object that will be used in the process.
      • setBaseSite

        public void setBaseSite​(SessionContext ctx,
                                BaseSite value)
        Generated method - Setter of the ProductInterest.baseSite attribute.
        Parameters:
        value - the baseSite - Attribute contains base site object that will be used in the process.
      • setBaseSite

        public void setBaseSite​(BaseSite value)
        Generated method - Setter of the ProductInterest.baseSite attribute.
        Parameters:
        value - the baseSite - Attribute contains base site object that will be used in the process.
      • getBaseStore

        public BaseStore getBaseStore​(SessionContext ctx)
        Generated method - Getter of the ProductInterest.baseStore attribute.
        Returns:
        the baseStore
      • getBaseStore

        public BaseStore getBaseStore()
        Generated method - Getter of the ProductInterest.baseStore attribute.
        Returns:
        the baseStore
      • setBaseStore

        public void setBaseStore​(SessionContext ctx,
                                 BaseStore value)
        Generated method - Setter of the ProductInterest.baseStore attribute.
        Parameters:
        value - the baseStore
      • setBaseStore

        public void setBaseStore​(BaseStore value)
        Generated method - Setter of the ProductInterest.baseStore attribute.
        Parameters:
        value - the baseStore
      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        Description copied from class: Item
        Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

        In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
        Sn example:

        
         public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
         ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
         man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
         // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
         SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
         super.getNonInitialAttributes( ctx, allAttributes );
         // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
        
         
        Overrides:
        createItem in class GenericItem
        Parameters:
        ctx - the current session context which this item is created within
        type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • getCustomer

        public Customer getCustomer​(SessionContext ctx)
        Generated method - Getter of the ProductInterest.customer attribute.
        Returns:
        the customer
      • getCustomer

        public Customer getCustomer()
        Generated method - Getter of the ProductInterest.customer attribute.
        Returns:
        the customer
      • setCustomer

        public void setCustomer​(SessionContext ctx,
                                Customer value)
        Generated method - Setter of the ProductInterest.customer attribute.
        Parameters:
        value - the customer
      • setCustomer

        public void setCustomer​(Customer value)
        Generated method - Setter of the ProductInterest.customer attribute.
        Parameters:
        value - the customer
      • isEmailEnabled

        public java.lang.Boolean isEmailEnabled​(SessionContext ctx)
        Generated method - Getter of the ProductInterest.emailEnabled attribute.
        Returns:
        the emailEnabled
      • isEmailEnabled

        public java.lang.Boolean isEmailEnabled()
        Generated method - Getter of the ProductInterest.emailEnabled attribute.
        Returns:
        the emailEnabled
      • isEmailEnabledAsPrimitive

        public boolean isEmailEnabledAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the ProductInterest.emailEnabled attribute.
        Returns:
        the emailEnabled
      • isEmailEnabledAsPrimitive

        public boolean isEmailEnabledAsPrimitive()
        Generated method - Getter of the ProductInterest.emailEnabled attribute.
        Returns:
        the emailEnabled
      • setEmailEnabled

        public void setEmailEnabled​(SessionContext ctx,
                                    java.lang.Boolean value)
        Generated method - Setter of the ProductInterest.emailEnabled attribute.
        Parameters:
        value - the emailEnabled
      • setEmailEnabled

        public void setEmailEnabled​(java.lang.Boolean value)
        Generated method - Setter of the ProductInterest.emailEnabled attribute.
        Parameters:
        value - the emailEnabled
      • setEmailEnabled

        public void setEmailEnabled​(SessionContext ctx,
                                    boolean value)
        Generated method - Setter of the ProductInterest.emailEnabled attribute.
        Parameters:
        value - the emailEnabled
      • setEmailEnabled

        public void setEmailEnabled​(boolean value)
        Generated method - Setter of the ProductInterest.emailEnabled attribute.
        Parameters:
        value - the emailEnabled
      • getExpiryDate

        public java.util.Date getExpiryDate​(SessionContext ctx)
        Generated method - Getter of the ProductInterest.expiryDate attribute.
        Returns:
        the expiryDate - Deprecated since 1905, will be replaced by creation time plus expiryDay.
      • getExpiryDate

        public java.util.Date getExpiryDate()
        Generated method - Getter of the ProductInterest.expiryDate attribute.
        Returns:
        the expiryDate - Deprecated since 1905, will be replaced by creation time plus expiryDay.
      • setExpiryDate

        public void setExpiryDate​(SessionContext ctx,
                                  java.util.Date value)
        Generated method - Setter of the ProductInterest.expiryDate attribute.
        Parameters:
        value - the expiryDate - Deprecated since 1905, will be replaced by creation time plus expiryDay.
      • setExpiryDate

        public void setExpiryDate​(java.util.Date value)
        Generated method - Setter of the ProductInterest.expiryDate attribute.
        Parameters:
        value - the expiryDate - Deprecated since 1905, will be replaced by creation time plus expiryDay.
      • getLanguage

        public Language getLanguage​(SessionContext ctx)
        Generated method - Getter of the ProductInterest.language attribute.
        Returns:
        the language
      • getLanguage

        public Language getLanguage()
        Generated method - Getter of the ProductInterest.language attribute.
        Returns:
        the language
      • setLanguage

        public void setLanguage​(SessionContext ctx,
                                Language value)
        Generated method - Setter of the ProductInterest.language attribute.
        Parameters:
        value - the language
      • setLanguage

        public void setLanguage​(Language value)
        Generated method - Setter of the ProductInterest.language attribute.
        Parameters:
        value - the language
      • getNotificationChannels

        public java.util.Set<EnumerationValue> getNotificationChannels​(SessionContext ctx)
        Generated method - Getter of the ProductInterest.notificationChannels attribute.
        Returns:
        the notificationChannels
      • getNotificationChannels

        public java.util.Set<EnumerationValue> getNotificationChannels()
        Generated method - Getter of the ProductInterest.notificationChannels attribute.
        Returns:
        the notificationChannels
      • setNotificationChannels

        public void setNotificationChannels​(SessionContext ctx,
                                            java.util.Set<EnumerationValue> value)
        Generated method - Setter of the ProductInterest.notificationChannels attribute.
        Parameters:
        value - the notificationChannels
      • setNotificationChannels

        public void setNotificationChannels​(java.util.Set<EnumerationValue> value)
        Generated method - Setter of the ProductInterest.notificationChannels attribute.
        Parameters:
        value - the notificationChannels
      • getNotificationType

        public EnumerationValue getNotificationType​(SessionContext ctx)
        Generated method - Getter of the ProductInterest.notificationType attribute.
        Returns:
        the notificationType
      • getNotificationType

        public EnumerationValue getNotificationType()
        Generated method - Getter of the ProductInterest.notificationType attribute.
        Returns:
        the notificationType
      • setNotificationType

        public void setNotificationType​(SessionContext ctx,
                                        EnumerationValue value)
        Generated method - Setter of the ProductInterest.notificationType attribute.
        Parameters:
        value - the notificationType
      • setNotificationType

        public void setNotificationType​(EnumerationValue value)
        Generated method - Setter of the ProductInterest.notificationType attribute.
        Parameters:
        value - the notificationType
      • getProduct

        public Product getProduct​(SessionContext ctx)
        Generated method - Getter of the ProductInterest.product attribute.
        Returns:
        the product
      • getProduct

        public Product getProduct()
        Generated method - Getter of the ProductInterest.product attribute.
        Returns:
        the product
      • setProduct

        public void setProduct​(SessionContext ctx,
                               Product value)
        Generated method - Setter of the ProductInterest.product attribute.
        Parameters:
        value - the product
      • setProduct

        public void setProduct​(Product value)
        Generated method - Setter of the ProductInterest.product attribute.
        Parameters:
        value - the product
      • isSmsEnabled

        public java.lang.Boolean isSmsEnabled​(SessionContext ctx)
        Generated method - Getter of the ProductInterest.smsEnabled attribute.
        Returns:
        the smsEnabled
      • isSmsEnabled

        public java.lang.Boolean isSmsEnabled()
        Generated method - Getter of the ProductInterest.smsEnabled attribute.
        Returns:
        the smsEnabled
      • isSmsEnabledAsPrimitive

        public boolean isSmsEnabledAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the ProductInterest.smsEnabled attribute.
        Returns:
        the smsEnabled
      • isSmsEnabledAsPrimitive

        public boolean isSmsEnabledAsPrimitive()
        Generated method - Getter of the ProductInterest.smsEnabled attribute.
        Returns:
        the smsEnabled
      • setSmsEnabled

        public void setSmsEnabled​(SessionContext ctx,
                                  java.lang.Boolean value)
        Generated method - Setter of the ProductInterest.smsEnabled attribute.
        Parameters:
        value - the smsEnabled
      • setSmsEnabled

        public void setSmsEnabled​(java.lang.Boolean value)
        Generated method - Setter of the ProductInterest.smsEnabled attribute.
        Parameters:
        value - the smsEnabled
      • setSmsEnabled

        public void setSmsEnabled​(SessionContext ctx,
                                  boolean value)
        Generated method - Setter of the ProductInterest.smsEnabled attribute.
        Parameters:
        value - the smsEnabled
      • setSmsEnabled

        public void setSmsEnabled​(boolean value)
        Generated method - Setter of the ProductInterest.smsEnabled attribute.
        Parameters:
        value - the smsEnabled