Class TenantContextUtils
java.lang.Object
com.broadleafcommerce.order.service.util.TenantContextUtils
Utility class to check a given
ContextInfo
for tenant information, such as checking if
the ContextInfo
has application information or not.- Author:
- Julia Lopez-Pozas (jlopezpozas)
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isTenantAdminContext
(@NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Checks if theContextInfo
object has tenant and application information, and returns true if the context is only for tenant.
-
Method Details
-
isTenantAdminContext
public static boolean isTenantAdminContext(@NonNull @NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Checks if theContextInfo
object has tenant and application information, and returns true if the context is only for tenant.- Parameters:
contextInfo
- current context information surrounding the sandboxing and multitenant state- Returns:
- true if the
ContextInfo
object has a tenant ID and no application ID, and false otherwise
-