public class StagingApi 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 |
---|
StagingApi() |
Modifier and Type | Method and Description |
---|---|
protected User |
authorize(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
The user identified in the AuthenticatedUser headers must be authorized to
perform this action.
|
org.json.JSONObject |
delete(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
Delete means unstage.
|
org.json.JSONObject |
get(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> headers)
Paths in case this API becomes public
/ = get all user staging areas
/<cuid> = get staging area for user
/<cuid>/assets = staged assets for user
|
org.json.JSONObject |
patch(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
Patch requests mean 'Promote' (or merge with main branch).
|
org.json.JSONObject |
post(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
Prepare staging area, or add assets to staging area.
|
org.json.JSONObject |
put(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
Put requests mean stage 'Rollback' to previous asset versions.
|
export, getDefaultResponse, getExporter, getJson, getText, invokeServiceProcess, isApi, launchProcess, notifyProcess, notifyProcess, service, validateResponse
auditLog, authorizeExport, generateRequestId, getAction, getAuthUser, getEntity, getEntityDescription, getEntityId, getParameters, getQuery, getRequestUrl, getRequiredProperty, getRoles, getRoles, getSegment, getSegments, getSource, getSub, getUserAction, logtag, masterRequestId
protected User authorize(java.lang.String path, org.json.JSONObject content, java.util.Map<java.lang.String,java.lang.String> headers) throws AuthorizationException
RestService
authorize
in class RestService
AuthorizationException
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 patch(java.lang.String path, org.json.JSONObject content, java.util.Map<java.lang.String,java.lang.String> headers) throws ServiceException, org.json.JSONException
patch
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.