Class TenancyRoutePredicateFactory.Config

java.lang.Object
com.broadleafcommerce.metadata.route.predicate.TenancyRoutePredicateFactory.Config
Enclosing class:
TenancyRoutePredicateFactory

public static class TenancyRoutePredicateFactory.Config extends Object
  • Constructor Details

    • Config

      public Config()
  • Method Details

    • tenantOnly

      This route will only be returned when there is no application in the context.
      Returns:
      this
    • applicationOnly

      public TenancyRoutePredicateFactory.Config applicationOnly()
      This route will only be returned when there is an application in the context.
      Returns:
      this
    • tenant

      public TenancyRoutePredicateFactory.Config tenant(String... tenantIds)
      This route will only be returned when the tenant in context is one of the provided tenants.
      Parameters:
      tenantIds - the set of valid tenants
      Returns:
      this
    • application

      public TenancyRoutePredicateFactory.Config application(String... applicationIds)
      This route will only be returned when the application in context is one of the provided applications.
      Parameters:
      applicationIds - the set of valid applications
      Returns:
      this
    • isTenantOnly

      protected boolean isTenantOnly()
    • isApplicationOnly

      protected boolean isApplicationOnly()
    • getTenantIds

      protected Collection<String> getTenantIds()
    • getApplicationIds

      protected Collection<String> getApplicationIds()
    • setTenantOnly

      protected void setTenantOnly(boolean tenantOnly)
    • setApplicationOnly

      protected void setApplicationOnly(boolean applicationOnly)
    • setTenantIds

      protected void setTenantIds(Collection<String> tenantIds)
    • setApplicationIds

      protected void setApplicationIds(Collection<String> applicationIds)
    • 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