ConcurrencyController Class Reference
Detailed Description
ConcurrencyController is used to lock/unlock objects.
The controller supports the following actions:
Action lock
Lock an object.
Parameter | Description |
---|---|
in / out oid | The object id of the object to lock |
in / out type | The lock type (optimistic or pessimistic) (optional, default: optimistic) |
Response Actions | |
ok | In all cases |
Action unlock
Unlock an object.
Parameter | Description |
---|---|
in / out oid | The object id of the object to unlock |
in / out type | The lock type (optimistic or pessimistic) (optional, default: optimistic) |
Response Actions | |
ok | In all cases |
- Note
- If the user already holds a pessimistic lock, and tries to aquire an optimistic lock, the returned lock type is still pessimistic.
Definition at line 63 of file ConcurrencyController.php.
Inheritance diagram for ConcurrencyController:
Public Member Functions | |
__construct (Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration, ConcurrencyManager $concurrencyManager) | |
Public Member Functions inherited from Controller | |
__construct (Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration) | |
initialize (Request $request, Response $response) | |
execute ($method=null) | |
getRequest () | |
getResponse () | |
Protected Member Functions | |
validate () | |
doExecute ($method=null) | |
Protected Member Functions inherited from Controller | |
executeSubAction ($action) | |
redirect ($location, $key=null, $data=null) | |
getLogger () | |
getSession () | |
getPersistenceFacade () | |
getPermissionManager () | |
getActionMapper () | |
getLocalization () | |
getMessage () | |
getConfiguration () | |
requireTransaction () | |
endTransaction ($commit) | |
isLocalizedRequest () | |
checkLanguageParameter () | |
generateCsrfToken ($name, $refresh=true) | |
validateCsrfToken ($name, $invalidate=true) | |
getLocalSessionValue ($key, $default=null) | |
setLocalSessionValue ($key, $value) | |
clearLocalSessionValues () | |
Additional Inherited Members | |
Public Attributes inherited from Controller | |
const | CSRF_TOKEN_PARAM = 'csrf_token' |
Constructor & Destructor Documentation
◆ __construct()
__construct | ( | Session | $session, |
PersistenceFacade | $persistenceFacade, | ||
PermissionManager | $permissionManager, | ||
ActionMapper | $actionMapper, | ||
Localization | $localization, | ||
Message | $message, | ||
Configuration | $configuration, | ||
ConcurrencyManager | $concurrencyManager | ||
) |
Constructor.
- Parameters
-
$session $persistenceFacade $permissionManager $actionMapper $localization $message $configuration $concurrencyManager
Definition at line 78 of file ConcurrencyController.php.
Member Function Documentation
◆ validate()
|
protected |
- See also
- Controller::validate()
Reimplemented from Controller.
Definition at line 94 of file ConcurrencyController.php.
◆ doExecute()
|
protected |
- See also
- Controller::doExecute()
Reimplemented from Controller.
Definition at line 114 of file ConcurrencyController.php.