Class AuthorizationRestRepository

    • Constructor Detail

      • AuthorizationRestRepository

        public AuthorizationRestRepository()
    • Method Detail

      • 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 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:
        AuthorizeException
        SQLException
      • findAll

        public org.springframework.data.domain.Page<AuthorizationRest> findAll​(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: