Class DiscriminatedPropertyContext

java.lang.Object
com.broadleafcommerce.common.extension.environment.DiscriminatedPropertyContext

public class DiscriminatedPropertyContext extends Object
Thread local context for holding any tenant related information for the current request. Generally set via DiscriminatedPropertyFilter.
  • Constructor Details

    • DiscriminatedPropertyContext

      public DiscriminatedPropertyContext()
  • Method Details

    • getContext

      public static DiscriminatedPropertyContext getContext()
    • clear

      public static void clear()
    • increment

      public void increment(String key)
    • reportUsage

      public void reportUsage(Map<String,String> information)
    • getTenantId

      public String getTenantId()
    • getApplicationId

      public String getApplicationId()
    • getCountByProperty

      public Map<String,Long> getCountByProperty()
    • setTenantId

      public void setTenantId(String tenantId)
    • setApplicationId

      public void setApplicationId(String applicationId)
    • setCountByProperty

      public void setCountByProperty(Map<String,Long> countByProperty)
    • 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