Interface LicenseService
-
- All Known Implementing Classes:
LicenseServiceImpl
public interface LicenseServiceService for licence handling.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcount()Return count of licenses.voiddeleteByUrl(URL url)Delete a license by urlvoiddeleteByUuid(UUID uuid)Delete a license by UUIDvoiddeleteByUuids(List<UUID> uuids)Delete licenses by their UUIDsde.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 licensesde.digitalcollections.model.legal.LicensegetByUrl(URL url)Return license with urlde.digitalcollections.model.legal.LicensegetByUuid(UUID uuid)Return license with uuidde.digitalcollections.model.legal.Licensesave(de.digitalcollections.model.legal.License license)Save a license.de.digitalcollections.model.legal.Licenseupdate(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
-
-