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 booleanbooleanprotected Collection<String>protected Collection<String>inthashCode()protected booleanprotected booleanprotected voidsetApplicationIds(Collection<String> applicationIds) protected voidsetApplicationOnly(boolean applicationOnly) protected voidsetTenantIds(Collection<String> tenantIds) protected voidsetTenantOnly(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
-