public class Roles extends JsonRestService
HTTP_200_OK, HTTP_201_CREATED, HTTP_202_ACCEPTED, HTTP_400_BAD_REQUEST, HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN, HTTP_404_NOT_FOUND, HTTP_405_METHOD_NOT_ALLOWED, HTTP_409_CONFLICT, HTTP_500_INTERNAL_ERROR, HTTP_501_NOT_IMPLEMENTED
Constructor and Description |
---|
Roles() |
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
delete(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
Delete workgroup or remove user from group.
|
org.json.JSONObject |
get(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> headers)
Retrieve a user role or the list of all roles.
|
protected UserAction.Entity |
getEntity(java.lang.String path,
java.lang.Object content,
java.util.Map<java.lang.String,java.lang.String> headers)
Should be overridden.
|
java.util.List<java.lang.String> |
getRoles(java.lang.String path,
java.lang.String method)
Default impl pays no attention to method (for compatibility).
|
org.json.JSONObject |
post(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
For creating a new role or a new role/user relationship.
|
org.json.JSONObject |
put(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
For update.
|
export, getDefaultResponse, getExporter, getJson, getText, invokeServiceProcess, isApi, launchProcess, notifyProcess, notifyProcess, patch, service, validateResponse
auditLog, authorize, authorizeExport, generateRequestId, getAction, getAuthUser, getEntityDescription, getEntityId, getParameters, getQuery, getRequestUrl, getRequiredProperty, getRoles, getSegment, getSegments, getSource, getSub, getUserAction, logtag, masterRequestId
public java.util.List<java.lang.String> getRoles(java.lang.String path, java.lang.String method)
RestService
getRoles
in class RestService
protected UserAction.Entity getEntity(java.lang.String path, java.lang.Object content, java.util.Map<java.lang.String,java.lang.String> headers)
RestService
getEntity
in class RestService
public org.json.JSONObject get(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> headers) throws ServiceException, org.json.JSONException
get
in class JsonRestService
ServiceException
org.json.JSONException
public org.json.JSONObject post(java.lang.String path, org.json.JSONObject content, java.util.Map<java.lang.String,java.lang.String> headers) throws ServiceException, org.json.JSONException
post
in class JsonRestService
ServiceException
org.json.JSONException
public org.json.JSONObject put(java.lang.String path, org.json.JSONObject content, java.util.Map<java.lang.String,java.lang.String> headers) throws ServiceException, org.json.JSONException
put
in class JsonRestService
ServiceException
org.json.JSONException
public org.json.JSONObject delete(java.lang.String path, org.json.JSONObject content, java.util.Map<java.lang.String,java.lang.String> headers) throws ServiceException, org.json.JSONException
delete
in class JsonRestService
ServiceException
org.json.JSONException
Copyright © 2019 CenturyLink, Inc.