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 Details

    • LicenseImpl

      public LicenseImpl()
  • Method Details

    • getAcronym

      public java.lang.String getAcronym()
      Specified by:
      getAcronym in interface License
      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:
      setAcronym in interface License
    • getCreated

      public java.time.LocalDateTime getCreated()
      Specified by:
      getCreated in interface License
      Returns:
      date of creation of this license description
    • setCreated

      public void setCreated​(java.time.LocalDateTime created)
      Specified by:
      setCreated in interface License
    • getLabel

      public LocalizedText getLabel()
      Specified by:
      getLabel in interface License
      Returns:
      multilingual license title, e.g. "URHEBERRECHTSSCHUTZ - NICHT KOMMERZIELLE NUTZUNG GESTATTET", "IN COPYRIGHT - NON-COMMERCIAL USE PERMITTED"
    • setLabel

      public void setLabel​(LocalizedText label)
      Specified by:
      setLabel in interface License
    • getLastModified

      public java.time.LocalDateTime getLastModified()
      Specified by:
      getLastModified in interface License
    • setLastModified

      public void setLastModified​(java.time.LocalDateTime lastModified)
      Specified by:
      setLastModified in interface License
    • getSymbolImages

      public java.util.List<ImageFileResource> getSymbolImages()
      Specified by:
      getSymbolImages in interface License
      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

      public void setSymbolImages​(java.util.List<ImageFileResource> symbolImages)
      Specified by:
      setSymbolImages in interface License
    • getUrl

      public java.net.URL getUrl()
      Specified by:
      getUrl in interface License
      Returns:
      the url to the official public accessible documentation/specification of the license, e.g. "http://rightsstatements.org/vocab/InC-NC/1.0/"
    • setUrl

      public void setUrl​(java.net.URL url)
      Specified by:
      setUrl in interface License
    • getUuid

      public java.util.UUID getUuid()
      Specified by:
      getUuid in interface License
      Returns:
      unique identifier / license key within the system
    • setUuid

      public void setUuid​(java.util.UUID uuid)
      Specified by:
      setUuid in interface License