public class SimpleTestSharingPermission extends Object implements TestSharingPermission
TestSharingPermission.JSONConstants
Constructor and Description |
---|
SimpleTestSharingPermission(SimpleTestSharingPermission permission) |
SimpleTestSharingPermission(String type) |
SimpleTestSharingPermission(String type,
String perm1) |
SimpleTestSharingPermission(String type,
String perm1,
String perm2) |
SimpleTestSharingPermission(String type,
String perm1,
String perm2,
ShareRights shareRights) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getPerm1() |
String |
getPerm2() |
ShareRights |
getShareRights() |
String |
getType() |
int |
hashCode() |
static SimpleTestSharingPermission |
parseJson(JSONObject json) |
String |
toDisplayFormat() |
JSONObject |
toJson() |
SimpleTestSharingPermission |
toSimplePermission() |
String |
toString() |
public SimpleTestSharingPermission(SimpleTestSharingPermission permission)
public SimpleTestSharingPermission(String type)
public SimpleTestSharingPermission(String type, String perm1, String perm2)
public SimpleTestSharingPermission(String type, String perm1, String perm2, ShareRights shareRights)
public String getType()
public String getPerm1()
public String getPerm2()
public ShareRights getShareRights()
public JSONObject toJson()
toJson
in interface TestSharingPermission
public SimpleTestSharingPermission toSimplePermission()
public static SimpleTestSharingPermission parseJson(JSONObject json) throws JSONException
JSONException
public String toDisplayFormat()
toDisplayFormat
in interface TestSharingPermission
Copyright © 2002-2021 Atlassian. All Rights Reserved.