Class AuthorizationRestRepository

    • Constructor Detail

      • AuthorizationRestRepository

        public AuthorizationRestRepository()
    • Method Detail

      • findOne

        @PreAuthorize("hasPermission(#id, \'authorization\', \'READ\')")
        public AuthorizationRest findOne​(org.dspace.core.Context context,
                                         String id)
        Description copied from class: DSpaceRestRepository
        Method to implement to support retrieval of a specific REST object instance
        Specified by:
        findOne in class DSpaceRestRepository<AuthorizationRest,​String>
        Parameters:
        context - the dspace context
        id - the rest object id
        Returns:
        the REST object identified by its ID
      • findByObject

        @PreAuthorize("#epersonUuid==null || hasPermission(#epersonUuid, \'EPERSON\', \'READ\')")
        public org.springframework.data.domain.Page<AuthorizationRest> findByObject​(String uri,
                                                                                    UUID epersonUuid,
                                                                                    String featureName,
                                                                                    org.springframework.data.domain.Pageable pageable)
                                                                             throws org.dspace.authorize.AuthorizeException,
                                                                                    SQLException
        It returns the list of matching available authorizations granted to the specified eperson or to the anonymous user. Only administrators and the user identified by the epersonUuid parameter can access this method
        Parameters:
        uri - the uri of the object to check the authorization against
        epersonUuid - the eperson uuid to use in the authorization evaluation
        pageable - the pagination options
        Returns:
        the list of matching authorization available for the requested user and object, filtered by feature if provided
        Throws:
        org.dspace.authorize.AuthorizeException
        SQLException
      • findAll

        public org.springframework.data.domain.Page<AuthorizationRest> findAll​(org.dspace.core.Context context,
                                                                               org.springframework.data.domain.Pageable pageable)
        Description copied from class: DSpaceRestRepository
        Method to implement to support scroll of entity instances from the collection resource endpoint
        Specified by:
        findAll in class DSpaceRestRepository<AuthorizationRest,​String>
        Parameters:
        context - the dspace context
        pageable - object embedding the requested pagination info
        Returns: