com.atlassian.jira.sharing
Class SharePermissionImpl

java.lang.Object
  extended by com.atlassian.jira.sharing.SharePermissionImpl
All Implemented Interfaces:
SharePermission

public class SharePermissionImpl
extends Object
implements SharePermission

Simple Bean implementation of SharePermission.

Since:
v3.13

Constructor Summary
SharePermissionImpl(Long id, ShareType.Name type, String param1, String param2)
           
SharePermissionImpl(ShareType.Name type, String param1, String param2)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SharePermissionImpl

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

SharePermissionImpl

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

getId

public Long getId()
Description copied from interface: SharePermission
The identifier of the share. Can be null if the share has not been stored.

Specified by:
getId in interface SharePermission
Returns:
the identifier of the share.

getType

public ShareType.Name getType()
Description copied from interface: SharePermission
The type of the share (e.g. group). Should never be null.

Specified by:
getType in interface SharePermission
Returns:
the type of the share.

getParam1

public String getParam1()
Description copied from interface: SharePermission
The first parameter of the permission. Its value can be null.

Specified by:
getParam1 in interface SharePermission
Returns:
the value of the permissions first parameter.

getParam2

public String getParam2()
Description copied from interface: SharePermission
The second parameter of the permission. Its value can be null. This parameter cannot have a value when {#getParam1} returns null.

Specified by:
getParam2 in interface SharePermission
Returns:
the value of the permissions second parameter.

equals

public boolean equals(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


Copyright © 2002-2014 Atlassian. All Rights Reserved.