com.atlassian.jira.license
Class JiraLicenseStoreImpl

java.lang.Object
  extended by com.atlassian.jira.license.JiraLicenseStoreImpl
All Implemented Interfaces:
JiraLicenseStore

public class JiraLicenseStoreImpl
extends Object
implements JiraLicenseStore

The implementation of JiraLicenseStore

Since:
v4.0

Constructor Summary
JiraLicenseStoreImpl(ApplicationProperties applicationProperties, LicenseStringFactory licenseStringFactory)
           
 
Method Summary
 void confirmProceedUnderEvaluationTerms(String userName)
          This will confirm that user has agreed to proceed under Evaluation terms, typically when the license is too old for the current JIRA build.
 void remove()
          Remove any license.
 void resetOldBuildConfirmation()
          Resets persisted information about license in use being too old for current build.
 String retrieve()
          Retrieves the current license String from the persistent location.
 String retrieveServerId()
          Gets the server ID from the persistence backend
 void store(String licenseString)
          Stores the given license String into the persistent location.
 void storeServerId(String serverId)
          Stored the server ID to the persistent backend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraLicenseStoreImpl

public JiraLicenseStoreImpl(ApplicationProperties applicationProperties,
                            LicenseStringFactory licenseStringFactory)
Method Detail

retrieve

public String retrieve()
Description copied from interface: JiraLicenseStore
Retrieves the current license String from the persistent location.

Specified by:
retrieve in interface JiraLicenseStore
Returns:
the current license String from the persistent location.

store

public void store(String licenseString)
Description copied from interface: JiraLicenseStore
Stores the given license String into the persistent location.

Specified by:
store in interface JiraLicenseStore
Parameters:
licenseString - the license String to store

remove

public void remove()
Description copied from interface: JiraLicenseStore
Remove any license. Useful when the license string is corrupted.

Specified by:
remove in interface JiraLicenseStore

resetOldBuildConfirmation

public void resetOldBuildConfirmation()
Description copied from interface: JiraLicenseStore
Resets persisted information about license in use being too old for current build.

Specified by:
resetOldBuildConfirmation in interface JiraLicenseStore

confirmProceedUnderEvaluationTerms

public void confirmProceedUnderEvaluationTerms(String userName)
Description copied from interface: JiraLicenseStore
This will confirm that user has agreed to proceed under Evaluation terms, typically when the license is too old for the current JIRA build.

Specified by:
confirmProceedUnderEvaluationTerms in interface JiraLicenseStore
Parameters:
userName - the name of the user that amde the confirmation

retrieveServerId

public String retrieveServerId()
Description copied from interface: JiraLicenseStore
Gets the server ID from the persistence backend

Specified by:
retrieveServerId in interface JiraLicenseStore
Returns:
the server ID, null if not found

storeServerId

public void storeServerId(String serverId)
Description copied from interface: JiraLicenseStore
Stored the server ID to the persistent backend

Specified by:
storeServerId in interface JiraLicenseStore
Parameters:
serverId - the server ID to store


Copyright © 2002-2013 Atlassian. All Rights Reserved.