public class Comments 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 |
---|
Comments() |
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 an existing entity or relationship.
|
org.json.JSONObject |
get(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> headers)
Retrieve an existing entity or relationship.
|
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)
A user who belongs to any role in the returned list is allowed
to perform this action/method.
|
org.json.JSONObject |
post(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
Create a new entity or relationship.
|
org.json.JSONObject |
put(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
Update an existing entity with different data.
|
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 org.json.JSONObject get(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> headers) throws ServiceException, org.json.JSONException
JsonRestService
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
JsonRestService
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
JsonRestService
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
JsonRestService
delete
in class JsonRestService
ServiceException
org.json.JSONException
public java.util.List<java.lang.String> getRoles(java.lang.String path)
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
Copyright © 2019 CenturyLink, Inc.