Class ResourcesGuardService
- java.lang.Object
-
- de.hybris.platform.servicelayer.web.ResourcesGuardService
-
public class ResourcesGuardService extends java.lang.ObjectService which keeps configuration of enabled/disabled endpoints per web app.
-
-
Constructor Summary
Constructors Constructor Description ResourcesGuardService()Default constructor used by Spring.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisResourceDisabled(java.lang.String extensionName, java.lang.String resourcePath)Method checks if the resource path is disabled for extension.booleanisResourceEnabled(java.lang.String extensionName, java.lang.String resourcePath)Method checks if the resource path is enabled for extension.
-
-
-
Method Detail
-
isResourceEnabled
public boolean isResourceEnabled(java.lang.String extensionName, java.lang.String resourcePath)Method checks if the resource path is enabled for extension.- Parameters:
extensionName- name of the extensionresourcePath- resource path (must start with /)- Returns:
- boolean true if resource path is enabled
-
isResourceDisabled
public boolean isResourceDisabled(java.lang.String extensionName, java.lang.String resourcePath)Method checks if the resource path is disabled for extension.- Parameters:
extensionName- name of the extensionresourcePath- resource path (must start with /)- Returns:
- boolean true if resource path is disabled
-
-