net.customware.license.confluence
Class ConfluenceLicenseParam

java.lang.Object
  extended by net.customware.license.support.simple.SimpleLicenseParam
      extended by net.customware.license.atlassian.AtlassianLicenseParam
          extended by net.customware.license.confluence.ConfluenceLicenseParam
All Implemented Interfaces:
de.schlichtherle.license.LicenseParam, net.customware.license.support.ValidatingLicenseParam

public abstract class ConfluenceLicenseParam
extends net.customware.license.atlassian.AtlassianLicenseParam

An implementation of the SimpleLicenseManager with defaults appropriate for most Confluence plugins. Specifically:

Author:
David Peterson

Constructor Summary
ConfluenceLicenseParam()
           
 
Method Summary
static com.atlassian.license.LicenseType findLicenseType(int id)
           
static java.util.Collection<com.atlassian.license.LicenseType> findLicenseTypes()
           
 java.lang.Object getContext()
          Returns the Confluence LicenseContext.
static net.customware.license.atlassian.LicenseContext getLicenseContext()
          Returns the LicenseContext for
 com.atlassian.license.LicenseType getLicenseType(int id)
           
protected  void preInit()
          Initialises the parameters to use the system preferences by default.
protected  void requireLicensePerServer()
           
protected  void requireLicensePerUser()
           
 
Methods inherited from class net.customware.license.support.simple.SimpleLicenseParam
addExemption, addRestriction, checkLock, getCipherParam, getCipherPassword, getExemptions, getKeyAlias, getKeyStoreParam, getPreferences, getRestrictions, getSubject, init, isLocked, postInit, setContext, setKeyAlias, setPreferences, setPrivatePassword, setPublicPassword, setStoreBytes, setStoreProvider, setSubject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceLicenseParam

public ConfluenceLicenseParam()
Method Detail

findLicenseType

public static com.atlassian.license.LicenseType findLicenseType(int id)

findLicenseTypes

public static java.util.Collection<com.atlassian.license.LicenseType> findLicenseTypes()

getLicenseContext

public static net.customware.license.atlassian.LicenseContext getLicenseContext()
Returns the LicenseContext for

Returns:

getLicenseType

public com.atlassian.license.LicenseType getLicenseType(int id)
Specified by:
getLicenseType in class net.customware.license.atlassian.AtlassianLicenseParam

preInit

protected void preInit()
Initialises the parameters to use the system preferences by default. May be overridden in the SimpleLicenseParam.init() method by calling requireLicensePerUser() or SimpleLicenseParam.setPreferences(java.util.prefs.Preferences).

Overrides:
preInit in class net.customware.license.support.simple.SimpleLicenseParam

requireLicensePerServer

protected void requireLicensePerServer()

requireLicensePerUser

protected void requireLicensePerUser()

getContext

public java.lang.Object getContext()
Returns the Confluence LicenseContext.

Specified by:
getContext in interface net.customware.license.support.ValidatingLicenseParam
Overrides:
getContext in class net.customware.license.support.simple.SimpleLicenseParam
See Also:
getLicenseContext()


Copyright © 2011 CustomWare Asia Pacific. All Rights Reserved.