Class UserTargetFilterInfo
java.lang.Object
com.broadleafcommerce.pricing.domain.UserTargetFilterInfo
This class is used by
BasicUserTargetFilterService
to allow fine grained control of the
user targets an implementation wishes to allow for pricing via configuration.
This can be significant for- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
List of excluded target types.List of included target types.For each type that exists after considering the included and excluded parameters, this property allows fine grained control of applicable values.int
hashCode()
boolean
Setting this property to true will result in no user targeting price lists being considered.void
setExcludeAllTargetTypes
(boolean excludeAllTargetTypes) Setting this property to true will result in no user targeting price lists being considered.void
setExcludedTargetTypes
(List<String> excludedTargetTypes) List of excluded target types.void
setIncludedTargetTypes
(List<String> includedTargetTypes) List of included target types.void
setIncludedTargetValues
(Map<String, List<String>> includedTargetValues) For each type that exists after considering the included and excluded parameters, this property allows fine grained control of applicable values.toString()
-
Constructor Details
-
UserTargetFilterInfo
public UserTargetFilterInfo()
-
-
Method Details
-
isExcludeAllTargetTypes
public boolean isExcludeAllTargetTypes()Setting this property to true will result in no user targeting price lists being considered. It should only be used for installations that do not use user targeted PriceLists (e.g. including typical usages of Account based pricing or CustomerSegment driven sales.- Returns:
- the list of target types to exclude
-
getIncludedTargetTypes
List of included target types. If set, only target types in this list are considered. This list should not be consulted ifisExcludeAllTargetTypes()
is true.- Returns:
- the list of target types to exclude
-
getExcludedTargetTypes
List of excluded target types. This list is only consulted if thegetIncludedTargetTypes()
is empty.- Returns:
- the list of target types to exclude
-
getIncludedTargetValues
For each type that exists after considering the included and excluded parameters, this property allows fine grained control of applicable values. If the value is empty, all values will be considered valid. This call is especially useful for implementations that use a large number of CustomerSegments but only a few of them apply to Pricing. In this case, they would create an inclusion list for the specific segments.- Returns:
-
setExcludeAllTargetTypes
public void setExcludeAllTargetTypes(boolean excludeAllTargetTypes) Setting this property to true will result in no user targeting price lists being considered. It should only be used for installations that do not use user targeted PriceLists (e.g. including typical usages of Account based pricing or CustomerSegment driven sales.- Parameters:
excludedTargetTypes
- the list of types to exclude
-
setIncludedTargetTypes
List of included target types. If set, only target types in this list are considered. This list should not be consulted ifisExcludeAllTargetTypes()
is true.- Parameters:
excludedTargetTypes
- the list of types to exclude
-
setExcludedTargetTypes
List of excluded target types. This list is only consulted if thegetIncludedTargetTypes()
is empty.- Parameters:
excludedTargetTypes
- the list of types to exclude
-
setIncludedTargetValues
For each type that exists after considering the included and excluded parameters, this property allows fine grained control of applicable values. If the value is empty, all values will be considered valid. This call is especially useful for implementations that use a large number of CustomerSegments but only a few of them apply to Pricing. In this case, they would create an inclusion list for the specific segments.- Parameters:
includedTargetValues
- a map of type to values
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-