com.atlassian.jira.license
Class ImmutableLicenseRole

java.lang.Object
  extended by com.atlassian.jira.license.ImmutableLicenseRole
All Implemented Interfaces:
LicenseRole

public final class ImmutableLicenseRole
extends Object
implements LicenseRole


Constructor Summary
ImmutableLicenseRole(LicenseRoleDefinition def, Iterable<String> groups)
           
 
Method Summary
 boolean equals(Object o)
           
 Set<String> getGroups()
          Return the set of Group Ids associated with the role.
 LicenseRoleId getId()
          Returns the canonical LicenseRoleId that uniquely identifies this LicenseRole.
 String getName()
          Return the name of the license role.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableLicenseRole

public ImmutableLicenseRole(LicenseRoleDefinition def,
                            Iterable<String> groups)
Method Detail

getId

@Nonnull
public LicenseRoleId getId()
Description copied from interface: LicenseRole
Returns the canonical LicenseRoleId that uniquely identifies this LicenseRole.

Specified by:
getId in interface LicenseRole
Returns:
the canonical LicenseRoleId that uniquely identifies this LicenseRole.

getName

@Nonnull
public String getName()
Description copied from interface: LicenseRole
Return the name of the license role. The name is i18ned for the calling user.

Specified by:
getName in interface LicenseRole
Returns:
the name of the license role. The name is i18ned for the calling user.

getGroups

@Nonnull
public Set<String> getGroups()
Description copied from interface: LicenseRole
Return the set of Group Ids associated with the role.

Specified by:
getGroups in interface LicenseRole
Returns:
the groups ids associated with the role.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.