Class GeneratedPromotionUserRestriction

    • Field Detail

      • POSITIVE

        public static final java.lang.String POSITIVE
        Qualifier of the PromotionUserRestriction.positive attribute
        See Also:
        Constant Field Values
      • USERS

        public static final java.lang.String USERS
        Qualifier of the PromotionUserRestriction.users attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedPromotionUserRestriction

        public GeneratedPromotionUserRestriction()
    • Method Detail

      • isPositive

        public java.lang.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 java.lang.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,
                                java.lang.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​(java.lang.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 java.util.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 java.util.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,
                             java.util.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​(java.util.Collection<Principal> value)
        Generated method - Setter of the PromotionUserRestriction.users attribute.
        Parameters:
        value - the users - The principals the promotion is not applied for