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.
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

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
 validate ()
 
 doExecute ($method=null)
 
 executeSubAction ($action)
 
 redirect ($location, $key=null, $data=null)
 
 getLogger ()
 
 getSession ()
 
 getPersistenceFacade ()
 
 getPermissionManager ()
 
 getActionMapper ()
 
 getLocalization ()
 
 getMessage ()
 
 getConfiguration ()
 
 requireTransaction ()
 
 endTransaction ($commit)
 
 isLocalizedRequest ()
 
 checkLanguageParameter ()
 
 generateCsrfToken ($name)
 
 validateCsrfToken ($name)
 
 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 ( 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()

Definition at line 94 of file ConcurrencyController.php.

doExecute (   $method = null)
protected
See also
Controller::doExecute()

Definition at line 114 of file ConcurrencyController.php.