Interface RenderingTemplateRepository


  • public interface RenderingTemplateRepository
    Repository for rendering templates persistence handling.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long count()
      Return count of templates.
      de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.view.RenderingTemplate> find​(de.digitalcollections.model.list.paging.PageRequest pageRequest)
      Return all templates
      de.digitalcollections.model.view.RenderingTemplate getByUuid​(UUID uuid)
      Return template with uuid
      de.digitalcollections.model.view.RenderingTemplate save​(de.digitalcollections.model.view.RenderingTemplate template)
      Save a template.
      de.digitalcollections.model.view.RenderingTemplate update​(de.digitalcollections.model.view.RenderingTemplate template)
      Update a template.
    • Method Detail

      • count

        long count()
        Return count of templates.
        Returns:
        the count of templates
      • find

        de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.view.RenderingTemplate> find​(de.digitalcollections.model.list.paging.PageRequest pageRequest)
        Return all templates
        Parameters:
        pageRequest - the paging parameters
        Returns:
        Paged list of all rendering templates
      • getByUuid

        de.digitalcollections.model.view.RenderingTemplate getByUuid​(UUID uuid)
        Return template with uuid
        Parameters:
        uuid - the uuid of the rendering template
        Returns:
        The found rendering template
      • save

        de.digitalcollections.model.view.RenderingTemplate save​(de.digitalcollections.model.view.RenderingTemplate template)
        Save a template.
        Parameters:
        template - the template to be saved
        Returns:
        the saved template
      • update

        de.digitalcollections.model.view.RenderingTemplate update​(de.digitalcollections.model.view.RenderingTemplate template)
        Update a template.
        Parameters:
        template - the template to be updated
        Returns:
        the updated template