Class LicenseImpl

    • Constructor Detail

      • LicenseImpl

        public LicenseImpl()
    • Method Detail

      • getAcronym

        public 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"
      • getCreated

        public LocalDateTime getCreated()
        Specified by:
        getCreated in interface License
        Returns:
        date of creation of this license description
      • 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"
      • getSymbolImages

        public 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...
      • getUrl

        public 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​(URL url)
        Specified by:
        setUrl in interface License
      • getUuid

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

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