Class LicenseServiceImpl

    • Method Summary

      All Methods Instance Methods Concrete 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.
    • Constructor Detail

    • Method Detail

      • count

        public long count()
        Description copied from interface: LicenseService
        Return count of licenses.
        Specified by:
        count in interface LicenseService
        Returns:
        the count of licenses
      • deleteByUrl

        public void deleteByUrl​(URL url)
        Description copied from interface: LicenseService
        Delete a license by url
        Specified by:
        deleteByUrl in interface LicenseService
        Parameters:
        url - unique url of license
      • deleteByUuid

        public void deleteByUuid​(UUID uuid)
        Description copied from interface: LicenseService
        Delete a license by UUID
        Specified by:
        deleteByUuid in interface LicenseService
        Parameters:
        uuid - unique uuid of license
      • deleteByUuids

        public void deleteByUuids​(List<UUID> uuids)
        Description copied from interface: LicenseService
        Delete licenses by their UUIDs
        Specified by:
        deleteByUuids in interface LicenseService
        Parameters:
        uuids - list of uuids of licenses
      • find

        public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.legal.License> find​(de.digitalcollections.model.list.paging.PageRequest pageRequest)
        Description copied from interface: LicenseService
        Return all licenses paged.
        Specified by:
        find in interface LicenseService
        Parameters:
        pageRequest - the paging parameters
        Returns:
        Paged list of all licenses
      • getAll

        public List<de.digitalcollections.model.legal.License> getAll()
        Description copied from interface: LicenseService
        Return list of all licenses
        Specified by:
        getAll in interface LicenseService
        Returns:
        list of all licenses
      • getByUrl

        public de.digitalcollections.model.legal.License getByUrl​(URL url)
        Description copied from interface: LicenseService
        Return license with url
        Specified by:
        getByUrl in interface LicenseService
        Parameters:
        url - the url of the license
        Returns:
        The found license
      • getByUuid

        public de.digitalcollections.model.legal.License getByUuid​(UUID uuid)
        Description copied from interface: LicenseService
        Return license with uuid
        Specified by:
        getByUuid in interface LicenseService
        Parameters:
        uuid - the uuid of the license
        Returns:
        The found license
      • save

        public de.digitalcollections.model.legal.License save​(de.digitalcollections.model.legal.License license)
        Description copied from interface: LicenseService
        Save a license.
        Specified by:
        save in interface LicenseService
        Parameters:
        license - the license to be saved
        Returns:
        the saved license
      • update

        public de.digitalcollections.model.legal.License update​(de.digitalcollections.model.legal.License license)
        Description copied from interface: LicenseService
        Update a license.
        Specified by:
        update in interface LicenseService
        Parameters:
        license - the license to be updated
        Returns:
        the updated license