com.atlassian.jira.license
Class JiraLicenseStoreImpl

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

public class JiraLicenseStoreImpl
extends java.lang.Object
implements JiraLicenseStore

The implementation of JiraLicenseStore

Since:
v4.0

Constructor Summary
JiraLicenseStoreImpl(ApplicationProperties applicationProperties, LicenseStringFactory licenseStringFactory)
           
 
Method Summary
 void confirmProceedUnderEvaluationTerms(java.lang.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 resetOldBuildConfirmation()
          Resets persisted information about license in use being too old for current build.
 java.lang.String retrieve()
          Retrieves the current license String from the persistent location.
 java.lang.String retrieveServerId()
          Gets the server ID from the persistence backend
 void store(java.lang.String licenseString)
          Stores the given license String into the persistent location.
 void storeServerId(java.lang.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 java.lang.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(java.lang.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

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(java.lang.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 java.lang.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(java.lang.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-2010 Atlassian. All Rights Reserved.