Interface Scope

  • All Known Subinterfaces:
    ScopeWithPrivileges

    public interface Scope
    The Scope provides a simple API to handle scopes
    • Method Detail

      • getName

        java.lang.String getName()
        Get the scope name
        Returns:
        the scope name
      • getResourcePath

        java.lang.String getResourcePath​(User user)
        Get the resource path associated with the scope
        Parameters:
        user - The authenticated user
        Returns:
        The resource path associated to the scope
      • getEndpoint

        java.lang.String getEndpoint()
        Get the endpoint associated with the scope
        Returns:
        the endpoint associated to the scope
      • getDescription

        java.lang.String getDescription​(HttpServletRequest request)
        Get the description associated with the scope
        Parameters:
        request - The HttpServletRequest request
        Returns:
        the scope description