class LockrequestController extends BaseController

Lock request controller handles creating and releasing locks.

Locks are objects in-and-of themselves. So instead of locking a content item, you create a lock for a content item. Thus, literally anything that generates an SRN can be locked.

Properties

static boolean $batchMode Controller is in batch mode from BaseController
static array $batchedResponses Stack for batched responses from BaseController

Methods

int
getStatusCode()

Return status code

array
getHeaders()

Return current headers

string
getPayload()

Return payload

setStatusCode(int $code)

Set status code

setHeaders(string $key, string $value)

Set header value

setPayload(string $payload)

Set payload

static 
startBatchMode()

Static method to enable batch mode return handling

static 
endBatchMode()

Static method to disable batch mode return handling

array
getParentAction()

Find lock via its parent content's SRN

array
getAction(string $uuid)

Get existing lock

array
createAction()

Create a new lock. A valid SRN is required. Lock will be acquired for requesting user. It is not possible to override user.

array
deleteAction(string $uuid)

Delete lock for given UUID. Request must be made from locking user.

Details

in BaseController at line line 60
int getStatusCode()

Return status code

Return Value

int

in BaseController at line line 69
array getHeaders()

Return current headers

Return Value

array

in BaseController at line line 78
string getPayload()

Return payload

Return Value

string

in BaseController at line line 87
setStatusCode(int $code)

Set status code

Parameters

int $code HTTP status code

in BaseController at line line 97
setHeaders(string $key, string $value)

Set header value

Parameters

string $key Header name
string $value Header value

in BaseController at line line 106
setPayload(string $payload)

Set payload

Parameters

string $payload

in BaseController at line line 294
static startBatchMode()

Static method to enable batch mode return handling

in BaseController at line line 302
static endBatchMode()

Static method to disable batch mode return handling

at line line 26
array getParentAction()

Find lock via its parent content's SRN

Return Value

array

See also

http://confluence.getsnworks.com/display/CEO/CEO+REST+API#CEORESTAPI-GET/v3/lockRequest?srn=[PARENTSRN]

at line line 50
array getAction(string $uuid)

Get existing lock

Parameters

string $uuid lock UUID

Return Value

array

See also

http://confluence.getsnworks.com/display/CEO/CEO+REST+API#CEORESTAPI-GET/v3/lockRequest/[UUID]

at line line 74
array createAction()

Create a new lock. A valid SRN is required. Lock will be acquired for requesting user. It is not possible to override user.

Return Value

array

See also

http://confluence.getsnworks.com/display/CEO/CEO+REST+API#CEORESTAPI-POST/v3/lockRequest

at line line 118
array deleteAction(string $uuid)

Delete lock for given UUID. Request must be made from locking user.

A lock back be overriden by an Administrator under by sending a JSON object with the DELETE request with the requesting user's UUID under the 'force_override' key

DELETE /v3/lock-request/516e3165-ff12-48eb-aedb-d16dcd4a7476 HTTP/1.1
authorization: Basic ...
content-type: application/json

{"force_override":"XXXX-XXX-XXX-XXX-XXXXX"}

Parameters

string $uuid UUID

Return Value

array

See also

http://confluence.getsnworks.com/display/CEO/CEO+REST+API#CEORESTAPI-DELETE/v3/lockRequest/[UUID]