Class GeneratedProductEntitlement

    • Field Detail

      • ID

        public static final java.lang.String ID
        Qualifier of the ProductEntitlement.id attribute
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        Qualifier of the ProductEntitlement.description attribute
        See Also:
        Constant Field Values
      • CATALOGVERSION

        public static final java.lang.String CATALOGVERSION
        Qualifier of the ProductEntitlement.catalogVersion attribute
        See Also:
        Constant Field Values
      • TIMEUNIT

        public static final java.lang.String TIMEUNIT
        Qualifier of the ProductEntitlement.timeUnit attribute
        See Also:
        Constant Field Values
      • TIMEUNITSTART

        public static final java.lang.String TIMEUNITSTART
        Qualifier of the ProductEntitlement.timeUnitStart attribute
        See Also:
        Constant Field Values
      • TIMEUNITDURATION

        public static final java.lang.String TIMEUNITDURATION
        Qualifier of the ProductEntitlement.timeUnitDuration attribute
        See Also:
        Constant Field Values
      • CONDITIONSTRING

        public static final java.lang.String CONDITIONSTRING
        Qualifier of the ProductEntitlement.conditionString attribute
        See Also:
        Constant Field Values
      • CONDITIONPATH

        public static final java.lang.String CONDITIONPATH
        Qualifier of the ProductEntitlement.conditionPath attribute
        See Also:
        Constant Field Values
      • CONDITIONGEO

        public static final java.lang.String CONDITIONGEO
        Qualifier of the ProductEntitlement.conditionGeo attribute
        See Also:
        Constant Field Values
      • QUANTITY

        public static final java.lang.String QUANTITY
        Qualifier of the ProductEntitlement.quantity attribute
        See Also:
        Constant Field Values
      • SUBSCRIPTIONPRODUCT

        public static final java.lang.String SUBSCRIPTIONPRODUCT
        Qualifier of the ProductEntitlement.subscriptionProduct attribute
        See Also:
        Constant Field Values
      • ENTITLEMENT

        public static final java.lang.String ENTITLEMENT
        Qualifier of the ProductEntitlement.entitlement 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

      • GeneratedProductEntitlement

        public GeneratedProductEntitlement()
    • Method Detail

      • getCatalogVersion

        public CatalogVersion getCatalogVersion​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.catalogVersion attribute.
        Returns:
        the catalogVersion - Catalog Version
      • getCatalogVersion

        public CatalogVersion getCatalogVersion()
        Generated method - Getter of the ProductEntitlement.catalogVersion attribute.
        Returns:
        the catalogVersion - Catalog Version
      • setCatalogVersion

        protected void setCatalogVersion​(SessionContext ctx,
                                         CatalogVersion value)
        Generated method - Setter of the ProductEntitlement.catalogVersion attribute.
        Parameters:
        value - the catalogVersion - Catalog Version
      • setCatalogVersion

        protected void setCatalogVersion​(CatalogVersion value)
        Generated method - Setter of the ProductEntitlement.catalogVersion attribute.
        Parameters:
        value - the catalogVersion - Catalog Version
      • getConditionGeo

        public java.util.Collection<java.lang.String> getConditionGeo​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.conditionGeo attribute.
        Returns:
        the conditionGeo - Geo Condition
      • getConditionGeo

        public java.util.Collection<java.lang.String> getConditionGeo()
        Generated method - Getter of the ProductEntitlement.conditionGeo attribute.
        Returns:
        the conditionGeo - Geo Condition
      • setConditionGeo

        public void setConditionGeo​(SessionContext ctx,
                                    java.util.Collection<java.lang.String> value)
        Generated method - Setter of the ProductEntitlement.conditionGeo attribute.
        Parameters:
        value - the conditionGeo - Geo Condition
      • setConditionGeo

        public void setConditionGeo​(java.util.Collection<java.lang.String> value)
        Generated method - Setter of the ProductEntitlement.conditionGeo attribute.
        Parameters:
        value - the conditionGeo - Geo Condition
      • getConditionPath

        public java.lang.String getConditionPath​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.conditionPath attribute.
        Returns:
        the conditionPath - Path Condition
      • getConditionPath

        public java.lang.String getConditionPath()
        Generated method - Getter of the ProductEntitlement.conditionPath attribute.
        Returns:
        the conditionPath - Path Condition
      • setConditionPath

        public void setConditionPath​(SessionContext ctx,
                                     java.lang.String value)
        Generated method - Setter of the ProductEntitlement.conditionPath attribute.
        Parameters:
        value - the conditionPath - Path Condition
      • setConditionPath

        public void setConditionPath​(java.lang.String value)
        Generated method - Setter of the ProductEntitlement.conditionPath attribute.
        Parameters:
        value - the conditionPath - Path Condition
      • getConditionString

        public java.lang.String getConditionString​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.conditionString attribute.
        Returns:
        the conditionString - String Condition
      • getConditionString

        public java.lang.String getConditionString()
        Generated method - Getter of the ProductEntitlement.conditionString attribute.
        Returns:
        the conditionString - String Condition
      • setConditionString

        public void setConditionString​(SessionContext ctx,
                                       java.lang.String value)
        Generated method - Setter of the ProductEntitlement.conditionString attribute.
        Parameters:
        value - the conditionString - String Condition
      • setConditionString

        public void setConditionString​(java.lang.String value)
        Generated method - Setter of the ProductEntitlement.conditionString attribute.
        Parameters:
        value - the conditionString - String Condition
      • 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
      • getDescription

        public java.lang.String getDescription​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.description attribute.
        Returns:
        the description - Description
      • getDescription

        public java.lang.String getDescription()
        Generated method - Getter of the ProductEntitlement.description attribute.
        Returns:
        the description - Description
      • getAllDescription

        public java.util.Map<Language,​java.lang.String> getAllDescription​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.description attribute.
        Returns:
        the localized description - Description
      • getAllDescription

        public java.util.Map<Language,​java.lang.String> getAllDescription()
        Generated method - Getter of the ProductEntitlement.description attribute.
        Returns:
        the localized description - Description
      • setDescription

        public void setDescription​(SessionContext ctx,
                                   java.lang.String value)
        Generated method - Setter of the ProductEntitlement.description attribute.
        Parameters:
        value - the description - Description
      • setDescription

        public void setDescription​(java.lang.String value)
        Generated method - Setter of the ProductEntitlement.description attribute.
        Parameters:
        value - the description - Description
      • setAllDescription

        public void setAllDescription​(SessionContext ctx,
                                      java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the ProductEntitlement.description attribute.
        Parameters:
        value - the description - Description
      • setAllDescription

        public void setAllDescription​(java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the ProductEntitlement.description attribute.
        Parameters:
        value - the description - Description
      • getEntitlement

        public Entitlement getEntitlement​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.entitlement attribute.
        Returns:
        the entitlement
      • getEntitlement

        public Entitlement getEntitlement()
        Generated method - Getter of the ProductEntitlement.entitlement attribute.
        Returns:
        the entitlement
      • setEntitlement

        public void setEntitlement​(SessionContext ctx,
                                   Entitlement value)
        Generated method - Setter of the ProductEntitlement.entitlement attribute.
        Parameters:
        value - the entitlement
      • setEntitlement

        public void setEntitlement​(Entitlement value)
        Generated method - Setter of the ProductEntitlement.entitlement attribute.
        Parameters:
        value - the entitlement
      • getId

        public java.lang.String getId​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.id attribute.
        Returns:
        the id - Identifier
      • getId

        public java.lang.String getId()
        Generated method - Getter of the ProductEntitlement.id attribute.
        Returns:
        the id - Identifier
      • setId

        protected void setId​(SessionContext ctx,
                             java.lang.String value)
        Generated method - Setter of the ProductEntitlement.id attribute.
        Parameters:
        value - the id - Identifier
      • setId

        protected void setId​(java.lang.String value)
        Generated method - Setter of the ProductEntitlement.id attribute.
        Parameters:
        value - the id - Identifier
      • getQuantity

        public java.lang.Integer getQuantity​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.quantity attribute.
        Returns:
        the quantity - Quantity
      • getQuantity

        public java.lang.Integer getQuantity()
        Generated method - Getter of the ProductEntitlement.quantity attribute.
        Returns:
        the quantity - Quantity
      • getQuantityAsPrimitive

        public int getQuantityAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.quantity attribute.
        Returns:
        the quantity - Quantity
      • getQuantityAsPrimitive

        public int getQuantityAsPrimitive()
        Generated method - Getter of the ProductEntitlement.quantity attribute.
        Returns:
        the quantity - Quantity
      • setQuantity

        public void setQuantity​(SessionContext ctx,
                                java.lang.Integer value)
        Generated method - Setter of the ProductEntitlement.quantity attribute.
        Parameters:
        value - the quantity - Quantity
      • setQuantity

        public void setQuantity​(java.lang.Integer value)
        Generated method - Setter of the ProductEntitlement.quantity attribute.
        Parameters:
        value - the quantity - Quantity
      • setQuantity

        public void setQuantity​(SessionContext ctx,
                                int value)
        Generated method - Setter of the ProductEntitlement.quantity attribute.
        Parameters:
        value - the quantity - Quantity
      • setQuantity

        public void setQuantity​(int value)
        Generated method - Setter of the ProductEntitlement.quantity attribute.
        Parameters:
        value - the quantity - Quantity
      • getSubscriptionProduct

        public Product getSubscriptionProduct​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.subscriptionProduct attribute.
        Returns:
        the subscriptionProduct
      • getSubscriptionProduct

        public Product getSubscriptionProduct()
        Generated method - Getter of the ProductEntitlement.subscriptionProduct attribute.
        Returns:
        the subscriptionProduct
      • setSubscriptionProduct

        public void setSubscriptionProduct​(SessionContext ctx,
                                           Product value)
        Generated method - Setter of the ProductEntitlement.subscriptionProduct attribute.
        Parameters:
        value - the subscriptionProduct
      • setSubscriptionProduct

        public void setSubscriptionProduct​(Product value)
        Generated method - Setter of the ProductEntitlement.subscriptionProduct attribute.
        Parameters:
        value - the subscriptionProduct
      • getTimeUnit

        public EnumerationValue getTimeUnit​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.timeUnit attribute.
        Returns:
        the timeUnit - Time Unit
      • getTimeUnit

        public EnumerationValue getTimeUnit()
        Generated method - Getter of the ProductEntitlement.timeUnit attribute.
        Returns:
        the timeUnit - Time Unit
      • setTimeUnit

        public void setTimeUnit​(SessionContext ctx,
                                EnumerationValue value)
        Generated method - Setter of the ProductEntitlement.timeUnit attribute.
        Parameters:
        value - the timeUnit - Time Unit
      • setTimeUnit

        public void setTimeUnit​(EnumerationValue value)
        Generated method - Setter of the ProductEntitlement.timeUnit attribute.
        Parameters:
        value - the timeUnit - Time Unit
      • getTimeUnitDuration

        public java.lang.Integer getTimeUnitDuration​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.timeUnitDuration attribute.
        Returns:
        the timeUnitDuration - Duration
      • getTimeUnitDuration

        public java.lang.Integer getTimeUnitDuration()
        Generated method - Getter of the ProductEntitlement.timeUnitDuration attribute.
        Returns:
        the timeUnitDuration - Duration
      • getTimeUnitDurationAsPrimitive

        public int getTimeUnitDurationAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.timeUnitDuration attribute.
        Returns:
        the timeUnitDuration - Duration
      • getTimeUnitDurationAsPrimitive

        public int getTimeUnitDurationAsPrimitive()
        Generated method - Getter of the ProductEntitlement.timeUnitDuration attribute.
        Returns:
        the timeUnitDuration - Duration
      • setTimeUnitDuration

        public void setTimeUnitDuration​(SessionContext ctx,
                                        java.lang.Integer value)
        Generated method - Setter of the ProductEntitlement.timeUnitDuration attribute.
        Parameters:
        value - the timeUnitDuration - Duration
      • setTimeUnitDuration

        public void setTimeUnitDuration​(java.lang.Integer value)
        Generated method - Setter of the ProductEntitlement.timeUnitDuration attribute.
        Parameters:
        value - the timeUnitDuration - Duration
      • setTimeUnitDuration

        public void setTimeUnitDuration​(SessionContext ctx,
                                        int value)
        Generated method - Setter of the ProductEntitlement.timeUnitDuration attribute.
        Parameters:
        value - the timeUnitDuration - Duration
      • setTimeUnitDuration

        public void setTimeUnitDuration​(int value)
        Generated method - Setter of the ProductEntitlement.timeUnitDuration attribute.
        Parameters:
        value - the timeUnitDuration - Duration
      • getTimeUnitStart

        public java.lang.Integer getTimeUnitStart​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.timeUnitStart attribute.
        Returns:
        the timeUnitStart - Start
      • getTimeUnitStart

        public java.lang.Integer getTimeUnitStart()
        Generated method - Getter of the ProductEntitlement.timeUnitStart attribute.
        Returns:
        the timeUnitStart - Start
      • getTimeUnitStartAsPrimitive

        public int getTimeUnitStartAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the ProductEntitlement.timeUnitStart attribute.
        Returns:
        the timeUnitStart - Start
      • getTimeUnitStartAsPrimitive

        public int getTimeUnitStartAsPrimitive()
        Generated method - Getter of the ProductEntitlement.timeUnitStart attribute.
        Returns:
        the timeUnitStart - Start
      • setTimeUnitStart

        public void setTimeUnitStart​(SessionContext ctx,
                                     java.lang.Integer value)
        Generated method - Setter of the ProductEntitlement.timeUnitStart attribute.
        Parameters:
        value - the timeUnitStart - Start
      • setTimeUnitStart

        public void setTimeUnitStart​(java.lang.Integer value)
        Generated method - Setter of the ProductEntitlement.timeUnitStart attribute.
        Parameters:
        value - the timeUnitStart - Start
      • setTimeUnitStart

        public void setTimeUnitStart​(SessionContext ctx,
                                     int value)
        Generated method - Setter of the ProductEntitlement.timeUnitStart attribute.
        Parameters:
        value - the timeUnitStart - Start
      • setTimeUnitStart

        public void setTimeUnitStart​(int value)
        Generated method - Setter of the ProductEntitlement.timeUnitStart attribute.
        Parameters:
        value - the timeUnitStart - Start