Class PromotionUserRestrictionModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class PromotionUserRestrictionModel
    extends AbstractPromotionRestrictionModel
    Generated model class for type PromotionUserRestriction first defined at extension promotions.
    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

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

        public static final java.lang.String POSITIVE
        Generated constant - Attribute key of PromotionUserRestriction.positive attribute defined at extension promotions.
        See Also:
        Constant Field Values
      • USERS

        public static final java.lang.String USERS
        Generated constant - Attribute key of PromotionUserRestriction.users attribute defined at extension promotions.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PromotionUserRestrictionModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public PromotionUserRestrictionModel​(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:
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getPositive

        @Accessor(qualifier="positive",
                  type=GETTER)
        public java.lang.Boolean getPositive()
        Generated method - Getter of the PromotionUserRestriction.positive attribute defined at extension promotions.
        Returns:
        the positive - Specifies if this restriction is a positive (true) or negative (false) one.
      • getUsers

        @Accessor(qualifier="users",
                  type=GETTER)
        public java.util.Collection<PrincipalModel> getUsers()
        Generated method - Getter of the PromotionUserRestriction.users attribute defined at extension promotions. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the users - The principals the promotion is not applied for
      • setPositive

        @Accessor(qualifier="positive",
                  type=SETTER)
        public void setPositive​(java.lang.Boolean value)
        Generated method - Setter of PromotionUserRestriction.positive attribute defined at extension promotions.
        Parameters:
        value - the positive - Specifies if this restriction is a positive (true) or negative (false) one.
      • setUsers

        @Accessor(qualifier="users",
                  type=SETTER)
        public void setUsers​(java.util.Collection<PrincipalModel> value)
        Generated method - Setter of PromotionUserRestriction.users attribute defined at extension promotions.
        Parameters:
        value - the users - The principals the promotion is not applied for