Class ApplicationSecurityUtil

java.lang.Object
com.broadleafcommerce.tenant.service.ApplicationSecurityUtil

public class ApplicationSecurityUtil extends Object
Utility methods to read a user's available applications.
  • Field Details

  • Constructor Details

    • ApplicationSecurityUtil

      public ApplicationSecurityUtil(com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils)
  • Method Details

    • hasAccessToApplication

      public boolean hasAccessToApplication(String applicationId)
      Return true if the user has access to the application ID supplied, else false.
      Parameters:
      applicationId - The application id
      Returns:
      true if the user has access to the application ID, else false.
    • readUserAccessibleApplicationIds

      public Collection<String> readUserAccessibleApplicationIds()
      Read the IDs of the applications this user has access to.
      Returns:
      The applications the user has access to.
    • hasFullApplicationAccess

      public boolean hasFullApplicationAccess()
      Returns whether this user has all application access. All application access is denoted by an absence of application restrictions.
      Returns:
      true if the user has access to all applications, else false.
    • readApplicationIds

      protected Set<String> readApplicationIds()
    • getAuthenticationUtils

      protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils()