Class TenantContextUtils

java.lang.Object
com.broadleafcommerce.order.service.util.TenantContextUtils

public final class TenantContextUtils extends Object
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 Details

    • isTenantAdminContext

      public static boolean isTenantAdminContext(@NonNull @NonNull com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Checks if the ContextInfo 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