Class ResourcesGuardService
java.lang.Object
de.hybris.platform.servicelayer.web.ResourcesGuardService
Service which keeps configuration of enabled/disabled endpoints per web app.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisResourceDisabled(String extensionName, String resourcePath) Method checks if the resource path is disabled for extension.booleanisResourceEnabled(String extensionName, String resourcePath) Method checks if the resource path is enabled for extension.
-
Constructor Details
-
ResourcesGuardService
public ResourcesGuardService()Default constructor used by Spring. Uses Registry classes to get properties
-
-
Method Details
-
isResourceEnabled
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
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
-