public class ProjectTestSharingPermission extends Object implements TestSharingPermission
TestSharingPermission.JSONConstants
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getProjectId() |
String |
getProjectName() |
String |
getRole() |
long |
getRoleId() |
String |
getRoleName() |
int |
hashCode() |
boolean |
isProjectIdSet() |
boolean |
isRoleIdSet() |
static ProjectTestSharingPermission |
parseJson(JSONObject json) |
String |
toDisplayFormat() |
String |
toDisplayFormatUnknown() |
JSONObject |
toJson() |
String |
toString() |
public static final String TYPE
public ProjectTestSharingPermission(SimpleTestSharingPermission permission)
public ProjectTestSharingPermission(long projectId)
public ProjectTestSharingPermission(long projectId, String projectName)
public ProjectTestSharingPermission(long projectId, long roleId)
public String getProjectName()
public String getRoleName()
public boolean isProjectIdSet()
public boolean isRoleIdSet()
public long getProjectId()
public long getRoleId()
public String getRole()
public JSONObject toJson()
toJson
in interface TestSharingPermission
public static ProjectTestSharingPermission parseJson(JSONObject json) throws JSONException
JSONException
public String toDisplayFormat()
toDisplayFormat
in interface TestSharingPermission
public String toDisplayFormatUnknown()
toDisplayFormatUnknown
in interface TestSharingPermission
Copyright © 2002-2024 Atlassian. All Rights Reserved.