Class FilteredAccounts

java.lang.Object
com.broadleafcommerce.subscriptionoperation.domain.FilteredAccounts

public class FilteredAccounts extends Object
Filtered, valid accounts based on a list of candidate accounts narrowed by inclusion and exclusion customer segments.
  • Constructor Details

    • FilteredAccounts

      public FilteredAccounts(Set<String> candidateAccounts, Set<String> includeSegmentIds, Set<String> excludeSegmentIds, Set<String> accounts, Map<String,Object> additionalFields)
      Creates a new FilteredAccounts instance.
      Parameters:
      candidateAccounts - The set of requested candidate accounts that were filtered.
      includeSegmentIds - The set of accounts that were included in the final result. Optional. If null, then all candidates are considered included.
      excludeSegmentIds - The set of accounts that were excluded from the final result. Optional. If null, then no candidates are considered excluded.
      accounts - The filtered set of accounts that are valid based on the inclusion and exclusion segments.
      additionalFields -
    • FilteredAccounts

      public FilteredAccounts()
  • Method Details

    • getCandidateAccounts

      public Set<String> getCandidateAccounts()
      The set of requested candidate accounts that were filtered.
    • getIncludeSegmentIds

      public Set<String> getIncludeSegmentIds()
      The set of accounts that were included in the final result. Optional. If null, then all candidates are considered included.
    • getExcludeSegmentIds

      public Set<String> getExcludeSegmentIds()
      The set of accounts that were excluded from the final result. Optional. If null, then no candidates are considered excluded.
    • getAccounts

      public Set<String> getAccounts()
      The filtered set of accounts that are valid based on the inclusion and exclusion segments.
    • getAdditionalFields

      public Map<String,Object> getAdditionalFields()
    • setCandidateAccounts

      public void setCandidateAccounts(Set<String> candidateAccounts)
      The set of requested candidate accounts that were filtered.
    • setIncludeSegmentIds

      public void setIncludeSegmentIds(Set<String> includeSegmentIds)
      The set of accounts that were included in the final result. Optional. If null, then all candidates are considered included.
    • setExcludeSegmentIds

      public void setExcludeSegmentIds(Set<String> excludeSegmentIds)
      The set of accounts that were excluded from the final result. Optional. If null, then no candidates are considered excluded.
    • setAccounts

      public void setAccounts(Set<String> accounts)
      The filtered set of accounts that are valid based on the inclusion and exclusion segments.
    • setAdditionalFields

      public void setAdditionalFields(Map<String,Object> additionalFields)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object