Class TenancyRoutePredicateFactory.Config
- java.lang.Object
-
- com.broadleafcommerce.metadata.route.predicate.TenancyRoutePredicateFactory.Config
-
- Enclosing class:
- TenancyRoutePredicateFactory
public static class TenancyRoutePredicateFactory.Config extends Object
-
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TenancyRoutePredicateFactory.Config
application(String... applicationIds)
This route will only be returned when the application in context is one of the provided applications.TenancyRoutePredicateFactory.Config
applicationOnly()
This route will only be returned when there is an application in the context.protected boolean
canEqual(Object other)
boolean
equals(Object o)
protected Collection<String>
getApplicationIds()
protected Collection<String>
getTenantIds()
int
hashCode()
protected boolean
isApplicationOnly()
protected boolean
isTenantOnly()
protected void
setApplicationIds(Collection<String> applicationIds)
protected void
setApplicationOnly(boolean applicationOnly)
protected void
setTenantIds(Collection<String> tenantIds)
protected void
setTenantOnly(boolean tenantOnly)
TenancyRoutePredicateFactory.Config
tenant(String... tenantIds)
This route will only be returned when the tenant in context is one of the provided tenants.TenancyRoutePredicateFactory.Config
tenantOnly()
This route will only be returned when there is no application in the context.String
toString()
-
-
-
Method Detail
-
tenantOnly
public TenancyRoutePredicateFactory.Config 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)
-
canEqual
protected boolean canEqual(Object other)
-
-