Class TemplateItemRestRepository

    • Constructor Detail

      • TemplateItemRestRepository

        public TemplateItemRestRepository()
    • Method Detail

      • findOne

        @PreAuthorize("permitAll()")
        public TemplateItemRest findOne​(org.dspace.core.Context context,
                                        UUID uuid)
        Description copied from class: DSpaceRestRepository
        Method to implement to support retrieval of a specific REST object instance
        Specified by:
        findOne in class DSpaceRestRepository<TemplateItemRest,​UUID>
        Parameters:
        context - the dspace context
        uuid - the rest object id
        Returns:
        the REST object identified by its ID
      • findAll

        public org.springframework.data.domain.Page<TemplateItemRest> 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<TemplateItemRest,​UUID>
        Parameters:
        context - the dspace context
        pageable - object embedding the requested pagination info
        Returns:
      • patchTemplateItem

        public TemplateItemRest patchTemplateItem​(TemplateItem templateItem,
                                                  com.fasterxml.jackson.databind.JsonNode jsonNode)
                                           throws SQLException,
                                                  org.dspace.authorize.AuthorizeException
        Modify a template Item which is a template Item
        Parameters:
        templateItem - The Item to be modified
        jsonNode - The patch to be applied
        Returns:
        The Item as it is after applying the patch
        Throws:
        SQLException
        org.dspace.authorize.AuthorizeException
      • removeTemplateItem

        public void removeTemplateItem​(org.dspace.core.Context context,
                                       TemplateItem templateItem)
                                throws SQLException,
                                       IOException,
                                       org.dspace.authorize.AuthorizeException
        Remove an Item which is a template for a Collection. Note: The caller is responsible for checking that this item is in fact a template item.
        Parameters:
        context -
        templateItem - The item to be removed
        Throws:
        SQLException
        IOException
        org.dspace.authorize.AuthorizeException