com.atlassian.upm.license.compatibility
Enum CompatibleLicenseStatus

java.lang.Object
  extended by java.lang.Enum<CompatibleLicenseStatus>
      extended by com.atlassian.upm.license.compatibility.CompatibleLicenseStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CompatibleLicenseStatus>

public enum CompatibleLicenseStatus
extends java.lang.Enum<CompatibleLicenseStatus>

A list of license status values. This is a bridge between api.license.entity.LicenseStatus and each plugins' legacy licensing statuses.

Since:
2.0

Enum Constant Summary
ACTIVE
          A valid, active license.
EVALUATION
          An evaluation license is in use.
EVALUATION_EXPIRED
          Evaluation has expired.
EXPIRED
          An expired license.
INACTIVE
          The plugin has never been activated by a license.
INCOMPATIBLE_FORMAT
          The license format is incompatible with the plugin.
INCOMPATIBLE_TYPE
          The plugin license's LicenseType type is incompatible with the host application license's LicenseType.
INVALID
          An invalid license.
MAINTENANCE_EXPIRED
          Maintenance has expired.
REQUIRES_RESTART
          Plugin requires a restart.
USER_MISMATCH
          A discrepancy exists between plugin license user count and product license user count.
 
Method Summary
 java.lang.String toString()
           
static CompatibleLicenseStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CompatibleLicenseStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ACTIVE

public static final CompatibleLicenseStatus ACTIVE
A valid, active license.


INACTIVE

public static final CompatibleLicenseStatus INACTIVE
The plugin has never been activated by a license. The plugin license is currently unset.


INVALID

public static final CompatibleLicenseStatus INVALID
An invalid license.


EVALUATION

public static final CompatibleLicenseStatus EVALUATION
An evaluation license is in use.


USER_MISMATCH

public static final CompatibleLicenseStatus USER_MISMATCH
A discrepancy exists between plugin license user count and product license user count.


EXPIRED

public static final CompatibleLicenseStatus EXPIRED
An expired license.


EVALUATION_EXPIRED

public static final CompatibleLicenseStatus EVALUATION_EXPIRED
Evaluation has expired.


MAINTENANCE_EXPIRED

public static final CompatibleLicenseStatus MAINTENANCE_EXPIRED
Maintenance has expired.


REQUIRES_RESTART

public static final CompatibleLicenseStatus REQUIRES_RESTART
Plugin requires a restart.


INCOMPATIBLE_FORMAT

public static final CompatibleLicenseStatus INCOMPATIBLE_FORMAT
The license format is incompatible with the plugin. For example, the plugin expects a v2 license but sees a v1 license.


INCOMPATIBLE_TYPE

public static final CompatibleLicenseStatus INCOMPATIBLE_TYPE
The plugin license's LicenseType type is incompatible with the host application license's LicenseType. For example, the host application is licensed for hosted use, but the plugin is not.

Method Detail

values

public static CompatibleLicenseStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CompatibleLicenseStatus c : CompatibleLicenseStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CompatibleLicenseStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<CompatibleLicenseStatus>


Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.