Class AdministratorOfFeature

  • All Implemented Interfaces:
    AuthorizationFeature

    @Component
    @AuthorizationFeatureDocumentation(name="administratorOf",
                                       description="It can be used for verify that an user has access to the administrative features of the repository or of a specific community and collection")
    public class AdministratorOfFeature
    extends Object
    implements AuthorizationFeature
    The administrator feature. It can be used for verify that an user has access to the administrative features of the repository or of a specific community and collection.
    Author:
    Mykhaylo Boychuk (mykhaylo.boychuk at 4science.it)
    • Constructor Detail

      • AdministratorOfFeature

        public AdministratorOfFeature()
    • Method Detail

      • isAuthorized

        public boolean isAuthorized​(org.dspace.core.Context context,
                                    BaseObjectRest object)
                             throws SQLException
        Description copied from interface: AuthorizationFeature
        Check if the eperson in the provided context, or the anonymous user if not loggedin, has access to the feature for the requested object
        Specified by:
        isAuthorized in interface AuthorizationFeature
        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