Package net.sourceforge.plantuml.version
Class LicenseInfo
- java.lang.Object
-
- net.sourceforge.plantuml.version.LicenseInfo
-
public class LicenseInfo extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static LicenseInfoNONE
-
Constructor Summary
Constructors Constructor Description LicenseInfo(LicenseType type, long generationDate, long expirationDate, String owner, String context, byte[] sha)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Collection<SFile>fileCandidates()StringgetContext()DategetExpirationDate()DategetGenerationDate()LicenseTypegetLicenseType()StringgetOwner()booleanhasExpired()booleanisNone()booleanisValid()static voidmain(String[] args)static voidpersistMe(String key)static LicenseInforetrieveDistributor()static BufferedImageretrieveDistributorImage(LicenseInfo licenseInfo)static LicenseInforetrieveNamed(String key)static booleanretrieveNamedOrDistributorQuickIsValid()static LicenseInforetrieveNamedSlow()static LicenseInforetrieveQuick()
-
-
-
Field Detail
-
NONE
public static final LicenseInfo NONE
-
-
Constructor Detail
-
LicenseInfo
public LicenseInfo(LicenseType type, long generationDate, long expirationDate, String owner, String context, byte[] sha)
-
-
Method Detail
-
persistMe
public static void persistMe(String key) throws BackingStoreException
- Throws:
BackingStoreException
-
retrieveQuick
public static LicenseInfo retrieveQuick()
-
retrieveNamedOrDistributorQuickIsValid
public static boolean retrieveNamedOrDistributorQuickIsValid()
-
retrieveNamedSlow
public static LicenseInfo retrieveNamedSlow()
-
retrieveNamed
public static LicenseInfo retrieveNamed(String key)
-
retrieveDistributorImage
public static BufferedImage retrieveDistributorImage(LicenseInfo licenseInfo)
-
retrieveDistributor
public static LicenseInfo retrieveDistributor()
-
fileCandidates
public static Collection<SFile> fileCandidates()
-
main
public static void main(String[] args)
-
getGenerationDate
public final Date getGenerationDate()
-
getExpirationDate
public final Date getExpirationDate()
-
getOwner
public final String getOwner()
-
isNone
public boolean isNone()
-
isValid
public boolean isValid()
-
hasExpired
public boolean hasExpired()
-
getLicenseType
public final LicenseType getLicenseType()
-
getContext
public final String getContext()
-
-