Class GeneratedProductEntitlement

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
ProductEntitlement

public abstract class GeneratedProductEntitlement extends GenericItem
Generated class for type ProductEntitlement.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedProductEntitlement

      public GeneratedProductEntitlement()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • 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 Collection<String> getConditionGeo(SessionContext ctx)
      Generated method - Getter of the ProductEntitlement.conditionGeo attribute.
      Returns:
      the conditionGeo - Geo Condition
    • getConditionGeo

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

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

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

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

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

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

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

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

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

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

      public void setConditionString(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 String getDescription(SessionContext ctx)
      Generated method - Getter of the ProductEntitlement.description attribute.
      Returns:
      the description - Description
    • getDescription

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

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

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

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

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

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

      public void setAllDescription(Map<Language,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 String getId(SessionContext ctx)
      Generated method - Getter of the ProductEntitlement.id attribute.
      Returns:
      the id - Identifier
    • getId

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

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

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

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

      public 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, Integer value)
      Generated method - Setter of the ProductEntitlement.quantity attribute.
      Parameters:
      value - the quantity - Quantity
    • setQuantity

      public void setQuantity(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 Integer getTimeUnitDuration(SessionContext ctx)
      Generated method - Getter of the ProductEntitlement.timeUnitDuration attribute.
      Returns:
      the timeUnitDuration - Duration
    • getTimeUnitDuration

      public 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, Integer value)
      Generated method - Setter of the ProductEntitlement.timeUnitDuration attribute.
      Parameters:
      value - the timeUnitDuration - Duration
    • setTimeUnitDuration

      public void setTimeUnitDuration(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 Integer getTimeUnitStart(SessionContext ctx)
      Generated method - Getter of the ProductEntitlement.timeUnitStart attribute.
      Returns:
      the timeUnitStart - Start
    • getTimeUnitStart

      public 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, Integer value)
      Generated method - Setter of the ProductEntitlement.timeUnitStart attribute.
      Parameters:
      value - the timeUnitStart - Start
    • setTimeUnitStart

      public void setTimeUnitStart(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