Class EntitlementModel

All Implemented Interfaces:
Serializable

public class EntitlementModel extends ItemModel
Generated model class for type Entitlement first defined at extension entitlementservices.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _PRODUCTENTITLEMENT2ENTITLEMENTRELATION

      public static final String _PRODUCTENTITLEMENT2ENTITLEMENTRELATION
      Generated relation code constant for relation ProductEntitlement2EntitlementRelation defining source attribute productEntitlements in extension entitlementservices.
      See Also:
    • ID

      public static final String ID
      Generated constant - Attribute key of Entitlement.id attribute defined at extension entitlementservices.
      See Also:
    • NAME

      public static final String NAME
      Generated constant - Attribute key of Entitlement.name attribute defined at extension entitlementservices.
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      Generated constant - Attribute key of Entitlement.description attribute defined at extension entitlementservices.
      See Also:
    • PRODUCTENTITLEMENTS

      public static final String PRODUCTENTITLEMENTS
      Generated constant - Attribute key of Entitlement.productEntitlements attribute defined at extension entitlementservices.
      See Also:
  • Constructor Details

    • EntitlementModel

      public EntitlementModel()
      Generated constructor - Default constructor for generic creation.
    • EntitlementModel

      public EntitlementModel(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • EntitlementModel

      @Deprecated(since="4.1.1", forRemoval=true) public EntitlementModel(String _id)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _id - initial attribute declared by type Entitlement at extension entitlementservices
    • EntitlementModel

      @Deprecated(since="4.1.1", forRemoval=true) public EntitlementModel(String _id, ItemModel _owner)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _id - initial attribute declared by type Entitlement at extension entitlementservices
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription()
      Generated method - Getter of the Entitlement.description attribute defined at extension entitlementservices.
      Returns:
      the description - Description
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription(Locale loc)
      Generated method - Getter of the Entitlement.description attribute defined at extension entitlementservices.
      Parameters:
      loc - the value localization key
      Returns:
      the description - Description
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getId

      @Accessor(qualifier="id", type=GETTER) public String getId()
      Generated method - Getter of the Entitlement.id attribute defined at extension entitlementservices.
      Returns:
      the id - Identifier
    • getName

      @Accessor(qualifier="name", type=GETTER) public String getName()
      Generated method - Getter of the Entitlement.name attribute defined at extension entitlementservices.
      Returns:
      the name - Name
    • getName

      @Accessor(qualifier="name", type=GETTER) public String getName(Locale loc)
      Generated method - Getter of the Entitlement.name attribute defined at extension entitlementservices.
      Parameters:
      loc - the value localization key
      Returns:
      the name - Name
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getProductEntitlements

      @Accessor(qualifier="productEntitlements", type=GETTER) public Collection<ProductEntitlementModel> getProductEntitlements()
      Generated method - Getter of the Entitlement.productEntitlements attribute defined at extension entitlementservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the productEntitlements
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
      Generated method - Setter of Entitlement.description attribute defined at extension entitlementservices.
      Parameters:
      value - the description - Description
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc)
      Generated method - Setter of Entitlement.description attribute defined at extension entitlementservices.
      Parameters:
      value - the description - Description
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setId

      @Accessor(qualifier="id", type=SETTER) public void setId(String value)
      Generated method - Initial setter of Entitlement.id attribute defined at extension entitlementservices. Can only be used at creation of model - before first save.
      Parameters:
      value - the id - Identifier
    • setName

      @Accessor(qualifier="name", type=SETTER) public void setName(String value)
      Generated method - Setter of Entitlement.name attribute defined at extension entitlementservices.
      Parameters:
      value - the name - Name
    • setName

      @Accessor(qualifier="name", type=SETTER) public void setName(String value, Locale loc)
      Generated method - Setter of Entitlement.name attribute defined at extension entitlementservices.
      Parameters:
      value - the name - Name
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setProductEntitlements

      @Accessor(qualifier="productEntitlements", type=SETTER) public void setProductEntitlements(Collection<ProductEntitlementModel> value)
      Generated method - Setter of Entitlement.productEntitlements attribute defined at extension entitlementservices.
      Parameters:
      value - the productEntitlements