Class ManageSubmitterGroupFeature

  • All Implemented Interfaces:
    AuthorizationFeature

    @Component
    @AuthorizationFeatureDocumentation(name="canManageSubmitterGroup",
                                       description="It can be used to verify if the collection submitter group can be created, deleted, viewed or edited.")
    public class ManageSubmitterGroupFeature
    extends Object
    implements AuthorizationFeature
    The manage submitter group feature. It can be used to verify if the collection submitter group can be created, deleted, viewed or edited. Authorization is granted if the current user has ADMIN permissions on the given collection and the configuration allows the collection admin to manage submitter groups, OR the current user has ADMIN permissions on the given collection's owning community and the configuration allows the community admin to manage submitter groups.
    • Constructor Detail

      • ManageSubmitterGroupFeature

        public ManageSubmitterGroupFeature()
    • 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