Class License
- java.lang.Object
-
- de.digitalcollections.model.legal.License
-
public class License extends Object
License model/description containing all relevant metadata of a license that can be used to specify the license under which an object is available or distributed.
-
-
Constructor Summary
Constructors Constructor Description License()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAcronym()LocalDateTimegetCreated()LocalizedTextgetLabel()LocalDateTimegetLastModified()List<ImageFileResource>getSymbolImages()URLgetUrl()UUIDgetUuid()voidsetAcronym(String acronym)voidsetCreated(LocalDateTime created)voidsetLabel(LocalizedText label)voidsetLastModified(LocalDateTime lastModified)voidsetSymbolImages(List<ImageFileResource> symbolImages)voidsetUrl(URL url)voidsetUuid(UUID uuid)
-
-
-
Method Detail
-
getAcronym
public String getAcronym()
- Returns:
- the (language independent/english) acronym for this license, e.g. "CC0 1.0" for "Public Domain" or "CC BY-NC-SA 3.0"
-
getCreated
public LocalDateTime getCreated()
- Returns:
- date of creation of this license description
-
getLabel
public LocalizedText getLabel()
- Returns:
- multilingual license title, e.g. "URHEBERRECHTSSCHUTZ - NICHT KOMMERZIELLE NUTZUNG GESTATTET", "IN COPYRIGHT - NON-COMMERCIAL USE PERMITTED"
-
getLastModified
public LocalDateTime getLastModified()
-
getSymbolImages
public List<ImageFileResource> getSymbolImages()
- Returns:
- (downloaded, locally managed ImageFileResource) list of symbol images representing the license, e.g. like downloaded image https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png. A list because different sized may be available, e.g. compact one https://licensebuttons.net/l/by-nc-sa/4.0/80x15.png. Client can choose of list for example by minimal height...
-
getUrl
public URL getUrl()
- Returns:
- the url to the official public accessible documentation/specification of the license, e.g. "http://rightsstatements.org/vocab/InC-NC/1.0/"
-
getUuid
public UUID getUuid()
- Returns:
- unique identifier / license key within the system
-
setAcronym
public void setAcronym(String acronym)
-
setCreated
public void setCreated(LocalDateTime created)
-
setLabel
public void setLabel(LocalizedText label)
-
setLastModified
public void setLastModified(LocalDateTime lastModified)
-
setSymbolImages
public void setSymbolImages(List<ImageFileResource> symbolImages)
-
setUrl
public void setUrl(URL url)
-
setUuid
public void setUuid(UUID uuid)
-
-