public class

SharePermissionImpl

extends Object
implements SharePermission
java.lang.Object
   ↳ com.atlassian.jira.sharing.SharePermissionImpl

Class Overview

Simple Bean implementation of SharePermission.

Summary

Public Constructors
SharePermissionImpl(Long id, ShareType.Name type, String param1, String param2)
SharePermissionImpl(ShareType.Name type, String param1, String param2)
Public Methods
boolean equals(Object o)
Long getId()
The identifier of the share.
String getParam1()
The first parameter of the permission.
String getParam2()
The second parameter of the permission.
ShareType.Name getType()
The type of the share (e.g.
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.sharing.SharePermission

Public Constructors

public SharePermissionImpl (Long id, ShareType.Name type, String param1, String param2)

public SharePermissionImpl (ShareType.Name type, String param1, String param2)

Public Methods

public boolean equals (Object o)

public Long getId ()

The identifier of the share. Can be null if the share has not been stored.

Returns
  • the identifier of the share.

public String getParam1 ()

The first parameter of the permission. Its value can be null.

Returns
  • the value of the permissions first parameter.

public String getParam2 ()

The second parameter of the permission. Its value can be null. This parameter cannot have a value when {#getParam1} returns null.

Returns
  • the value of the permissions second parameter.

public ShareType.Name getType ()

The type of the share (e.g. group). Should never be null.

Returns
  • the type of the share.

public int hashCode ()

public String toString ()