java.lang.Object | |
↳ | com.atlassian.jira.sharing.SharePermissionUtils |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
Some utility functions for dealing with SharePermission
instances.
TODO move to UI package
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convert the passed array into SharePermissions.
| |||||||||||
Return a SharePermission from a JSON object.
| |||||||||||
Create a SharePermission from the passed JSON string.
| |||||||||||
Convert the passed permission into a JSON object.
| |||||||||||
Converts the passed SharePermissions into a JSON array.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Convert the passed array into SharePermissions.
array | the JSON array to convert. |
---|
JSONException | if an error occurs during convertion. |
---|
JSONException |
---|
Return a SharePermission from a JSON object.
json | the JSON object to convert. |
---|
JSONException | if an error occurs while converting the object. |
---|
Create a SharePermission from the passed JSON string.
jsonString | the JSON string make a SharePermission from. |
---|
JSONException | if an error occurs while converting the object. |
---|
Convert the passed permission into a JSON object.
permission | the permission to convert. |
---|
JSONException | if an error occurs while creating the JSON object. |
---|
Converts the passed SharePermissions into a JSON array.
permissions | the permissions to convert. |
---|
JSONException | if an error occurs while creating the JSONArray. |
---|