public final class

Licenses

extends Object
java.lang.Object
   ↳ com.atlassian.jira.upgrade.tasks.role.Licenses

Class Overview

Represents the collection of licenses in renaissance migration (i.e. JIRA 6.x single use permission to JIRA 7.x multiple application)

Summary

Public Constructors
Licenses(Iterable<? extends License> licenses)
Public Methods
Licenses addLicense(License license)
Add a license.
boolean equals(Object o)
int hashCode()
boolean isEmpty()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Licenses (Iterable<? extends License> licenses)

Public Methods

public Licenses addLicense (License license)

Add a license. This method will throw an exception if any of the applications in the passed license are already licensed.

Parameters
license the license to add.
Returns
  • a new Licenses object containing the passed license.
Throws
MigrationFailedException if the passed license is already licensed.

public boolean equals (Object o)

public int hashCode ()

public boolean isEmpty ()

public String toString ()