Class ResourcesGuardService


  • public class ResourcesGuardService
    extends java.lang.Object
    Service 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
      boolean isResourceDisabled​(java.lang.String extensionName, java.lang.String resourcePath)
      Method checks if the resource path is disabled for extension.
      boolean isResourceEnabled​(java.lang.String extensionName, java.lang.String resourcePath)
      Method checks if the resource path is enabled for extension.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourcesGuardService

        public ResourcesGuardService()
        Default constructor used by Spring. Uses Registry classes to get properties
    • 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 extension
        resourcePath - 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 extension
        resourcePath - resource path (must start with /)
        Returns:
        boolean true if resource path is disabled