Interface LicenseService

  • All Known Implementing Classes:
    LicenseServiceImpl

    public interface LicenseService
    Service for licence handling.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long count()
      Return count of licenses.
      void deleteByUrl​(URL url)
      Delete a license by url
      void deleteByUuid​(UUID uuid)
      Delete a license by UUID
      void deleteByUuids​(List<UUID> uuids)
      Delete licenses by their UUIDs
      de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.legal.License> find​(de.digitalcollections.model.list.paging.PageRequest pageRequest)
      Return all licenses paged.
      List<de.digitalcollections.model.legal.License> getAll()
      Return list of all licenses
      de.digitalcollections.model.legal.License getByUrl​(URL url)
      Return license with url
      de.digitalcollections.model.legal.License getByUuid​(UUID uuid)
      Return license with uuid
      de.digitalcollections.model.legal.License save​(de.digitalcollections.model.legal.License license)
      Save a license.
      de.digitalcollections.model.legal.License update​(de.digitalcollections.model.legal.License license)
      Update a license.
    • Method Detail

      • count

        long count()
        Return count of licenses.
        Returns:
        the count of licenses
      • deleteByUrl

        void deleteByUrl​(URL url)
        Delete a license by url
        Parameters:
        url - unique url of license
      • deleteByUuid

        void deleteByUuid​(UUID uuid)
        Delete a license by UUID
        Parameters:
        uuid - unique uuid of license
      • deleteByUuids

        void deleteByUuids​(List<UUID> uuids)
        Delete licenses by their UUIDs
        Parameters:
        uuids - list of uuids of licenses
      • find

        de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.legal.License> find​(de.digitalcollections.model.list.paging.PageRequest pageRequest)
        Return all licenses paged.
        Parameters:
        pageRequest - the paging parameters
        Returns:
        Paged list of all licenses
      • getAll

        List<de.digitalcollections.model.legal.License> getAll()
        Return list of all licenses
        Returns:
        list of all licenses
      • getByUrl

        de.digitalcollections.model.legal.License getByUrl​(URL url)
        Return license with url
        Parameters:
        url - the url of the license
        Returns:
        The found license
      • getByUuid

        de.digitalcollections.model.legal.License getByUuid​(UUID uuid)
        Return license with uuid
        Parameters:
        uuid - the uuid of the license
        Returns:
        The found license
      • save

        de.digitalcollections.model.legal.License save​(de.digitalcollections.model.legal.License license)
        Save a license.
        Parameters:
        license - the license to be saved
        Returns:
        the saved license
      • update

        de.digitalcollections.model.legal.License update​(de.digitalcollections.model.legal.License license)
        Update a license.
        Parameters:
        license - the license to be updated
        Returns:
        the updated license