com.atlassian.extras.api
Class Product

java.lang.Object
  extended by com.atlassian.extras.api.Product

public final class Product
extends java.lang.Object

Representation of products that Atlassian sells and generates licenses for customers to use. NOTE: the case of the product name is not important with respect to object equality.


Field Summary
static Product ALL_PLUGINS
          A special product that really denotes any plugin.
static java.lang.Iterable<Product> ATLASSIAN_PRODUCTS
           
static Product BAMBOO
           
static Product BONFIRE
           
static Product CLOVER
           
static Product CONFLUENCE
           
static Product CONFLUENCE_QUESTIONS
           
static Product CROWD
           
static Product CRUCIBLE
           
static Product EDIT_LIVE_PLUGIN
           
static Product FISHEYE
           
static Product GREENHOPPER
           
static Product JIRA
           
static Product PERFORCE_PLUGIN
           
static Product SHAREPOINT_PLUGIN
           
static Product STASH
           
static Product TEAM_CALENDARS
           
static Product VSS_PLUGIN
           
 
Constructor Summary
Product(java.lang.String name, java.lang.String namespace)
           
Product(java.lang.String name, java.lang.String namespace, boolean plugin)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
static Product fromNamespace(java.lang.String ns)
          Performs a Product lookup by namespace.
static Product[] getAtalssianProductsAsArray()
           
 java.lang.String getName()
           
 java.lang.String getNamespace()
          Namespace is used in licensing to group parameters that belong to this particular product only.
 int hashCode()
           
 boolean isPlugin()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

JIRA

public static Product JIRA

CONFLUENCE

public static Product CONFLUENCE

BAMBOO

public static Product BAMBOO

CROWD

public static Product CROWD

CLOVER

public static Product CLOVER

FISHEYE

public static Product FISHEYE

CRUCIBLE

public static Product CRUCIBLE

STASH

public static Product STASH

EDIT_LIVE_PLUGIN

public static Product EDIT_LIVE_PLUGIN

PERFORCE_PLUGIN

public static Product PERFORCE_PLUGIN

SHAREPOINT_PLUGIN

public static Product SHAREPOINT_PLUGIN

GREENHOPPER

public static Product GREENHOPPER

TEAM_CALENDARS

public static Product TEAM_CALENDARS

BONFIRE

public static Product BONFIRE

VSS_PLUGIN

public static Product VSS_PLUGIN

CONFLUENCE_QUESTIONS

public static Product CONFLUENCE_QUESTIONS

ATLASSIAN_PRODUCTS

public static java.lang.Iterable<Product> ATLASSIAN_PRODUCTS

ALL_PLUGINS

public static Product ALL_PLUGINS
A special product that really denotes any plugin. If this product is enabled in the license, then all plugins will be enabled.

Constructor Detail

Product

public Product(java.lang.String name,
               java.lang.String namespace)

Product

public Product(java.lang.String name,
               java.lang.String namespace,
               boolean plugin)
Method Detail

getAtalssianProductsAsArray

public static Product[] getAtalssianProductsAsArray()

getName

public java.lang.String getName()
Returns:
the name of the product, this will NEVER return null

getNamespace

public java.lang.String getNamespace()
Namespace is used in licensing to group parameters that belong to this particular product only.

Returns:
product namespace

isPlugin

public boolean isPlugin()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

fromNamespace

public static Product fromNamespace(java.lang.String ns)
Performs a Product lookup by namespace. If no such Product is found, a new one is created.

Parameters:
ns - namespace
Returns:
the Product associated with the namespace
Since:
3.1.1


Copyright © 2005-2014 Atlassian. All Rights Reserved.