com.atlassian.confluence.license.store
Class ApplicationConfigurationLicenseStore
java.lang.Object
com.atlassian.confluence.license.store.ApplicationConfigurationLicenseStore
- All Implemented Interfaces:
- LicenseStore, ConfluenceBootstrapConstants
public class ApplicationConfigurationLicenseStore
- extends Object
- implements LicenseStore, ConfluenceBootstrapConstants
Method Summary |
void |
install(String licenseString)
This delegates to ApplicationConfiguration.setProperty(Object, Object) but the underlying code does not
call ApplicationConfiguration.save() and is thus only in memory for the time being. |
String |
retrieve()
Retrieves the currently installed license as a concatenated, encoded string of the license and its hash. |
void |
setPublisher(com.atlassian.event.api.EventPublisher publisher)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationConfigurationLicenseStore
public ApplicationConfigurationLicenseStore(com.atlassian.config.ApplicationConfiguration store,
com.atlassian.license.LicenseManager manager)
install
public void install(String licenseString)
- This delegates to
ApplicationConfiguration.setProperty(Object, Object)
but the underlying code does not
call ApplicationConfiguration.save()
and is thus only in memory for the time being.
This method does not allow concurrent invocation, thus escaping if one was detected. The reason being is that a
concurrent license installation could lead to unexpected behaviour, thus we let the first invocation win and
encourage the second one to be re-evaluated before being attempted again.
- Specified by:
install
in interface LicenseStore
- Parameters:
licenseString
- the encrypted license- See Also:
LicenseService.validate(String)
retrieve
public String retrieve()
- Description copied from interface:
LicenseStore
- Retrieves the currently installed license as a concatenated, encoded string of the license and its hash.
- Specified by:
retrieve
in interface LicenseStore
- Returns:
- the encoded concatenated license
setPublisher
public void setPublisher(com.atlassian.event.api.EventPublisher publisher)