|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.license.store.ApplicationConfigurationLicenseStore
public class ApplicationConfigurationLicenseStore
Field Summary |
---|
Fields inherited from interface com.atlassian.confluence.setup.ConfluenceBootstrapConstants |
---|
ATTACHMENTS_DIR_PROP, CONFLUENCE_HOME_CONSTANT, DEFAULT_LICENSE_REGISTRY_KEY, GLOBAL_PLUGIN_STATE, INSTALLATION_DATE_KEY, LICENSE_HASH_KEY, LICENSE_MESSAGE_KEY, LUCENE_INDEX_DIR_PROP, TEMP_DIR_PROP, WEBAPP_CONTEXT_PATH_KEY |
Constructor Summary | |
---|---|
ApplicationConfigurationLicenseStore(com.atlassian.config.ApplicationConfiguration store,
com.atlassian.license.LicenseManager manager)
|
Method Summary | |
---|---|
void |
install(java.lang.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. |
java.lang.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 |
Constructor Detail |
---|
public ApplicationConfigurationLicenseStore(com.atlassian.config.ApplicationConfiguration store, com.atlassian.license.LicenseManager manager)
Method Detail |
---|
public void install(java.lang.String licenseString)
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.
install
in interface LicenseStore
licenseString
- the encrypted licenseLicenseService.validate(String)
public java.lang.String retrieve()
LicenseStore
retrieve
in interface LicenseStore
public void setPublisher(com.atlassian.event.api.EventPublisher publisher)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |