Class EntitlementModel

  • All Implemented Interfaces:
    java.io.Serializable

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

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • _PRODUCTENTITLEMENT2ENTITLEMENTRELATION

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

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

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

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

        public static final java.lang.String PRODUCTENTITLEMENTS
        Generated constant - Attribute key of Entitlement.productEntitlements attribute defined at extension entitlementservices.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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​(java.lang.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​(java.lang.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 Detail

      • getDescription

        @Accessor(qualifier="description",
                  type=GETTER)
        public java.lang.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 java.lang.String getDescription​(java.util.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:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • getId

        @Accessor(qualifier="id",
                  type=GETTER)
        public java.lang.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 java.lang.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 java.lang.String getName​(java.util.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:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • getProductEntitlements

        @Accessor(qualifier="productEntitlements",
                  type=GETTER)
        public java.util.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​(java.lang.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​(java.lang.String value,
                                   java.util.Locale loc)
        Generated method - Setter of Entitlement.description attribute defined at extension entitlementservices.
        Parameters:
        value - the description - Description
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setId

        @Accessor(qualifier="id",
                  type=SETTER)
        public void setId​(java.lang.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​(java.lang.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​(java.lang.String value,
                            java.util.Locale loc)
        Generated method - Setter of Entitlement.name attribute defined at extension entitlementservices.
        Parameters:
        value - the name - Name
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setProductEntitlements

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