Class LicenseImpl
java.lang.Object
de.digitalcollections.model.impl.legal.LicenseImpl
- All Implemented Interfaces:
License
public class LicenseImpl extends java.lang.Object implements License
-
Constructor Summary
Constructors Constructor Description LicenseImpl() -
Method Summary
Modifier and Type Method Description java.lang.StringgetAcronym()java.time.LocalDateTimegetCreated()LocalizedTextgetLabel()java.time.LocalDateTimegetLastModified()java.util.List<ImageFileResource>getSymbolImages()java.net.URLgetUrl()java.util.UUIDgetUuid()voidsetAcronym(java.lang.String acronym)voidsetCreated(java.time.LocalDateTime created)voidsetLabel(LocalizedText label)voidsetLastModified(java.time.LocalDateTime lastModified)voidsetSymbolImages(java.util.List<ImageFileResource> symbolImages)voidsetUrl(java.net.URL url)voidsetUuid(java.util.UUID uuid)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LicenseImpl
public LicenseImpl()
-
-
Method Details
-
getAcronym
public java.lang.String getAcronym()- Specified by:
getAcronymin interfaceLicense- Returns:
- the (language independent/english) acronym for this license, e.g. "CC0 1.0" for "Public Domain" or "CC BY-NC-SA 3.0"
-
setAcronym
public void setAcronym(java.lang.String acronym)- Specified by:
setAcronymin interfaceLicense
-
getCreated
public java.time.LocalDateTime getCreated()- Specified by:
getCreatedin interfaceLicense- Returns:
- date of creation of this license description
-
setCreated
public void setCreated(java.time.LocalDateTime created)- Specified by:
setCreatedin interfaceLicense
-
getLabel
-
setLabel
-
getLastModified
public java.time.LocalDateTime getLastModified()- Specified by:
getLastModifiedin interfaceLicense
-
setLastModified
public void setLastModified(java.time.LocalDateTime lastModified)- Specified by:
setLastModifiedin interfaceLicense
-
getSymbolImages
- Specified by:
getSymbolImagesin interfaceLicense- 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...
-
setSymbolImages
- Specified by:
setSymbolImagesin interfaceLicense
-
getUrl
public java.net.URL getUrl() -
setUrl
public void setUrl(java.net.URL url) -
getUuid
public java.util.UUID getUuid() -
setUuid
public void setUuid(java.util.UUID uuid)
-