Class PromotionUserRestrictionModel

All Implemented Interfaces:
Serializable

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

    • _TYPECODE

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

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

      public static final String USERS
      Generated constant - Attribute key of PromotionUserRestriction.users attribute defined at extension promotions.
      See Also:
  • Constructor Details

    • 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 Details

    • getPositive

      @Accessor(qualifier="positive", type=GETTER) public 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 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(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(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