Interface AuthorizationFeature

    • Method Detail

      • isAuthorized

        boolean isAuthorized​(Context context,
                             BaseObjectRest object)
                      throws SQLException
        Check if the eperson in the provided context, or the anonymous user if not loggedin, has access to the feature for the requested object
        Parameters:
        context - the DSpace Context
        object - the object target by the feature (MUST be NOT null). Use the SiteRest object for repository wide feature
        Returns:
        true if the user associated with the context has access to the feature for the specified object
        Throws:
        SQLException
      • getName

        default String getName()
        Return the name of the feature
        Returns:
        the name of the feature
      • getDescription

        default String getDescription()
        Return the description of the feature
        Returns:
        the description of the feature