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.Configapplication(String... applicationIds)This route will only be returned when the application in context is one of the provided applications.TenancyRoutePredicateFactory.ConfigapplicationOnly()This route will only be returned when there is an application in the context.protected booleancanEqual(Object other)booleanequals(Object o)protected Collection<String>getApplicationIds()protected Collection<String>getTenantIds()inthashCode()protected booleanisApplicationOnly()protected booleanisTenantOnly()protected voidsetApplicationIds(Collection<String> applicationIds)protected voidsetApplicationOnly(boolean applicationOnly)protected voidsetTenantIds(Collection<String> tenantIds)protected voidsetTenantOnly(boolean tenantOnly)TenancyRoutePredicateFactory.Configtenant(String... tenantIds)This route will only be returned when the tenant in context is one of the provided tenants.TenancyRoutePredicateFactory.ConfigtenantOnly()This route will only be returned when there is no application in the context.StringtoString()
-
-
-
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)
-
-