Interface RenderingTemplateRepository


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

    Modifier and Type Method Description
    long count()
    Return count of templates.
    de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.view.RenderingTemplate> find​(de.digitalcollections.model.api.paging.PageRequest pageRequest)
    Return all templates
    de.digitalcollections.model.impl.view.RenderingTemplate findOne​(java.util.UUID uuid)
    Return template with uuid
    de.digitalcollections.model.impl.view.RenderingTemplate save​(de.digitalcollections.model.impl.view.RenderingTemplate template)
    Save a template.
    de.digitalcollections.model.impl.view.RenderingTemplate update​(de.digitalcollections.model.impl.view.RenderingTemplate template)
    Update a template.
  • Method Details

    • count

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

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

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

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

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