public final class


extends 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)


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()
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.

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

public boolean equals (Object o)

public int hashCode ()

public boolean isEmpty ()

public String toString ()