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