com.atlassian.jira.functest.framework.sharing
Class ProjectTestSharingPermission

java.lang.Object
  extended by com.atlassian.jira.functest.framework.sharing.ProjectTestSharingPermission
All Implemented Interfaces:
TestSharingPermission

public class ProjectTestSharingPermission
extends Object
implements TestSharingPermission

Represents a project share in the Func tests.

Since:
v3.13

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.sharing.TestSharingPermission
TestSharingPermission.JSONConstants
 
Field Summary
static String TYPE
           
 
Constructor Summary
ProjectTestSharingPermission(long projectId)
           
ProjectTestSharingPermission(long projectId, long roleId)
           
ProjectTestSharingPermission(long projectId, long roleId, String projectName, String roleName)
           
ProjectTestSharingPermission(long projectId, String projectName)
           
ProjectTestSharingPermission(SimpleTestSharingPermission permission)
           
 
Method Summary
 boolean equals(Object o)
           
 long getProjectId()
           
 String getProjectName()
           
 String getRole()
           
 long getRoleId()
           
 String getRoleName()
           
 int hashCode()
           
 boolean isProjectIdSet()
           
 boolean isRoleIdSet()
           
static ProjectTestSharingPermission parseJson(TestJSONObject json)
           
 String toDisplayFormat()
           
 TestJSONObject toJson()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

ProjectTestSharingPermission

public ProjectTestSharingPermission(SimpleTestSharingPermission permission)

ProjectTestSharingPermission

public ProjectTestSharingPermission(long projectId)

ProjectTestSharingPermission

public ProjectTestSharingPermission(long projectId,
                                    String projectName)

ProjectTestSharingPermission

public ProjectTestSharingPermission(long projectId,
                                    long roleId)

ProjectTestSharingPermission

public ProjectTestSharingPermission(long projectId,
                                    long roleId,
                                    String projectName,
                                    String roleName)
Method Detail

getProjectName

public String getProjectName()

getRoleName

public String getRoleName()

isProjectIdSet

public boolean isProjectIdSet()

isRoleIdSet

public boolean isRoleIdSet()

getProjectId

public long getProjectId()

getRoleId

public long getRoleId()

getRole

public String getRole()

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toJson

public TestJSONObject toJson()
Specified by:
toJson in interface TestSharingPermission

parseJson

public static ProjectTestSharingPermission parseJson(TestJSONObject json)
                                              throws TestJSONException
Throws:
TestJSONException

toDisplayFormat

public String toDisplayFormat()
Specified by:
toDisplayFormat in interface TestSharingPermission
Returns:
the smooshed text format as displayed on the browser


Copyright © 2002-2012 Atlassian. All Rights Reserved.