Class GeneratedPromotionUserRestriction

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

public abstract class GeneratedPromotionUserRestriction extends AbstractPromotionRestriction
Generated class for type PromotionUserRestriction.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedPromotionUserRestriction

      public GeneratedPromotionUserRestriction()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class GeneratedAbstractPromotionRestriction
    • isPositive

      public Boolean isPositive(SessionContext ctx)
      Generated method - Getter of the PromotionUserRestriction.positive attribute.
      Returns:
      the positive - Specifies if this restriction is a positive (true) or negative (false) one.
    • isPositive

      public Boolean isPositive()
      Generated method - Getter of the PromotionUserRestriction.positive attribute.
      Returns:
      the positive - Specifies if this restriction is a positive (true) or negative (false) one.
    • isPositiveAsPrimitive

      public boolean isPositiveAsPrimitive(SessionContext ctx)
      Generated method - Getter of the PromotionUserRestriction.positive attribute.
      Returns:
      the positive - Specifies if this restriction is a positive (true) or negative (false) one.
    • isPositiveAsPrimitive

      public boolean isPositiveAsPrimitive()
      Generated method - Getter of the PromotionUserRestriction.positive attribute.
      Returns:
      the positive - Specifies if this restriction is a positive (true) or negative (false) one.
    • setPositive

      public void setPositive(SessionContext ctx, Boolean value)
      Generated method - Setter of the PromotionUserRestriction.positive attribute.
      Parameters:
      value - the positive - Specifies if this restriction is a positive (true) or negative (false) one.
    • setPositive

      public void setPositive(Boolean value)
      Generated method - Setter of the PromotionUserRestriction.positive attribute.
      Parameters:
      value - the positive - Specifies if this restriction is a positive (true) or negative (false) one.
    • setPositive

      public void setPositive(SessionContext ctx, boolean value)
      Generated method - Setter of the PromotionUserRestriction.positive attribute.
      Parameters:
      value - the positive - Specifies if this restriction is a positive (true) or negative (false) one.
    • setPositive

      public void setPositive(boolean value)
      Generated method - Setter of the PromotionUserRestriction.positive attribute.
      Parameters:
      value - the positive - Specifies if this restriction is a positive (true) or negative (false) one.
    • getUsers

      public Collection<Principal> getUsers(SessionContext ctx)
      Generated method - Getter of the PromotionUserRestriction.users attribute.
      Returns:
      the users - The principals the promotion is not applied for
    • getUsers

      public Collection<Principal> getUsers()
      Generated method - Getter of the PromotionUserRestriction.users attribute.
      Returns:
      the users - The principals the promotion is not applied for
    • setUsers

      public void setUsers(SessionContext ctx, Collection<Principal> value)
      Generated method - Setter of the PromotionUserRestriction.users attribute.
      Parameters:
      value - the users - The principals the promotion is not applied for
    • setUsers

      public void setUsers(Collection<Principal> value)
      Generated method - Setter of the PromotionUserRestriction.users attribute.
      Parameters:
      value - the users - The principals the promotion is not applied for