Class Licenses

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

public final class Licenses extends Object
Represents the collection of licenses in renaissance migration (i.e. JIRA 6.x single use permission to JIRA 7.x multiple application)
Since:
v7.0
  • Constructor Details

    • Licenses

      public Licenses(Iterable<? extends com.atlassian.jira.upgrade.tasks.role.License> licenses)
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • addLicense

      public Licenses addLicense(com.atlassian.jira.upgrade.tasks.role.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.
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object