com.atlassian.jira.functest.framework.sharing
Class ProjectTestSharingPermission
java.lang.Object
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
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
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)
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.