com.atlassian.jira.license
Interface JiraLicenseStore

All Known Implementing Classes:
JiraLicenseStoreImpl

public interface JiraLicenseStore

A store to save license to a persistent location.

Since:
v4.0

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
 

Method Detail

retrieve

String retrieve()
Retrieves the current license String from the persistent location.

Returns:
the current license String from the persistent location.

store

void store(String licenseString)
Stores the given license String into the persistent location.

Parameters:
licenseString - the license String to store

remove

void remove()
Remove any license. Useful when the license string is corrupted.

Since:
5.1.6

resetOldBuildConfirmation

void resetOldBuildConfirmation()
Resets persisted information about license in use being too old for current build.


confirmProceedUnderEvaluationTerms

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.

Parameters:
userName - the name of the user that amde the confirmation

retrieveServerId

String retrieveServerId()
Gets the server ID from the persistence backend

Returns:
the server ID, null if not found

storeServerId

void storeServerId(String serverId)
Stored the server ID to the persistent backend

Parameters:
serverId - the server ID to store


Copyright © 2002-2013 Atlassian. All Rights Reserved.