se.datadosen.jalbum
Class LicenseManagerImpl

java.lang.Object
  extended by se.datadosen.jalbum.LicenseManagerImpl
All Implemented Interfaces:
LicenseManager

public class LicenseManagerImpl
extends java.lang.Object
implements LicenseManager

Since:
10.02

Field Summary
protected  JAlbumContext context
           
static java.lang.String JALBUM_SUPPORTER
           
protected  java.util.prefs.Preferences preferences
           
 
Method Summary
 java.lang.String getLicenseCode()
          Returns a license hash code if the current username maps to a valid paid account Returns the empty string otherwise
protected  JAlbumFrame getWindow()
           
 boolean isLicenseValid()
          Returns true if the current username maps to a valid paid account
 boolean isOldDonor()
          Has user donated before jAlbum 10?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected final JAlbumContext context

preferences

protected java.util.prefs.Preferences preferences

JALBUM_SUPPORTER

public static final java.lang.String JALBUM_SUPPORTER
See Also:
Constant Field Values
Method Detail

getLicenseCode

public java.lang.String getLicenseCode()
Returns a license hash code if the current username maps to a valid paid account Returns the empty string otherwise

Specified by:
getLicenseCode in interface LicenseManager
Since:
9.6

isLicenseValid

public boolean isLicenseValid()
Returns true if the current username maps to a valid paid account

Specified by:
isLicenseValid in interface LicenseManager
Since:
9.6

isOldDonor

public boolean isOldDonor()
Has user donated before jAlbum 10?

Specified by:
isOldDonor in interface LicenseManager

getWindow

protected JAlbumFrame getWindow()