Class ResourcesGuardService

java.lang.Object
de.hybris.platform.servicelayer.web.ResourcesGuardService

public class ResourcesGuardService extends Object
Service which keeps configuration of enabled/disabled endpoints per web app.
  • Constructor Details

    • ResourcesGuardService

      public ResourcesGuardService()
      Default constructor used by Spring. Uses Registry classes to get properties
  • Method Details

    • isResourceEnabled

      public boolean isResourceEnabled(String extensionName, String resourcePath)
      Method checks if the resource path is enabled for extension.
      Parameters:
      extensionName - name of the extension
      resourcePath - resource path (must start with /)
      Returns:
      boolean true if resource path is enabled
    • isResourceDisabled

      public boolean isResourceDisabled(String extensionName, String resourcePath)
      Method checks if the resource path is disabled for extension.
      Parameters:
      extensionName - name of the extension
      resourcePath - resource path (must start with /)
      Returns:
      boolean true if resource path is disabled