org.rhq.enterprise.server.license
Class LicenseStoreManager

java.lang.Object
  extended by org.rhq.enterprise.server.license.LicenseStoreManager

public class LicenseStoreManager
extends java.lang.Object


Method Summary
static long store(License license)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

store

public static long store(License license)
                  throws UnavailableLicenseException,
                         CorruptLicenseException,
                         UpdateTrialLicenseException
Parameters:
license -
Returns:
the expiration in the BackingStore, if one exists. Otherwise, it returns the date found in license. Handles duration licenses different than regular licenses (see Exception descriptions below).
Throws:
UnavailableLicenseException - if the BackingStore is not available. It must be available to retrieve the expiration date.
CorruptLicenseException - if the expiration date in the backing store was tampered with
UpdateTrialLicenseException - if the user is trying to update any previously installed license with a trial license, unless the previous one and the current one match (have the same master keys), in which case the previously calculated date will be used


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.