![]() |
![]() |
Public Member Functions | |
| & | getInstance () |
| & | getAuthUser () |
| isAnonymous () | |
| deactivate () | |
| activate () | |
| authorize ($resource, $context, $action) | |
| getRight ($config, $resource, $context, $action) | |
| createPermission ($config, $resource, $context, $action, $role, $modifier) | |
| removePermission ($config, $resource, $context, $action, $role) | |
| modifyRight ($config, $resource, $context, $action, $role, $modifier) | |
Data Fields | |
| $_anonymousUser = null | |
Definition at line 50 of file class.RightsManager.php.
| & getInstance | ( | ) |
Returns an instance of the class.
Definition at line 58 of file class.RightsManager.php.
Referenced by activate(), Controller::assignViewDefaults(), authorize(), PersistenceMapper::checkAuthorization(), deactivate(), UserController::executeKernel(), PagingController::executeKernel(), DisplayController::executeKernel(), ConcurrencyController::executeKernel(), AsyncPagingController::executeKernel(), EditRightsController::executeKernel(), getAuthUser(), TreeViewController::getChildren(), isAnonymous(), AuthUser::login(), ActionMapper::processAction(), NodeSerializer::serializeNode(), and LogOutputStrategy::writeObject().
| & getAuthUser | ( | ) |
Get authenticated user.
Definition at line 75 of file class.RightsManager.php.
References getInstance(), and isAnonymous().
Referenced by authorize().

| isAnonymous | ( | ) |
See if the RightsManager is working in anonymous mode. In anonymous mode all authorization requests answered positive and AuthUser is an instance of AnonymousUser The mode is set in configuration section 'cms' key 'anonymous'
Definition at line 99 of file class.RightsManager.php.
References getInstance().
Referenced by authorize(), and getAuthUser().

| deactivate | ( | ) |
Deactivate rights checking by setting the anonymous confguration value.
Definition at line 107 of file class.RightsManager.php.
References getInstance().

| activate | ( | ) |
(Re-)activate rights checking by unsetting the anonymous confguration value.
Definition at line 115 of file class.RightsManager.php.
References getInstance().

| authorize | ( | $ | resource, | |
| $ | context, | |||
| $ | action | |||
| ) |
Authorize for given resource, context, action triple.
| resource | The resource to authorize (e.g. class name of the Controller or OID). | |
| context | The context in which the action takes place. | |
| action | The action to process. |
Definition at line 127 of file class.RightsManager.php.
References $PUBLIC_ACTIONS, PersistenceFacade::decomposeOID(), getAuthUser(), getInstance(), isAnonymous(), and PersistenceFacade::isValidOID().

| getRight | ( | $ | config, | |
| $ | resource, | |||
| $ | context, | |||
| $ | action | |||
| ) |
Get the rights on a resource, context, action combination.
| config | The configuration file to create the right in. | |
| resource | The resource (e.g. class name of the Controller or OID). | |
| context | The context in which the action takes place. | |
| action | The action to process. |
Definition at line 172 of file class.RightsManager.php.
References AuthUser::parsePolicy().

| createPermission | ( | $ | config, | |
| $ | resource, | |||
| $ | context, | |||
| $ | action, | |||
| $ | role, | |||
| $ | modifier | |||
| ) |
Create/Change a permission for a role on a resource, context, action combination.
| config | The configuration file to create the right in. | |
| resource | The resource (e.g. class name of the Controller or OID). | |
| context | The context in which the action takes place. | |
| action | The action to process. | |
| role | The role to authorize. | |
| modifier | One of the RIGHT_MODIFIER_ constants. |
Definition at line 193 of file class.RightsManager.php.
References modifyRight().

| removePermission | ( | $ | config, | |
| $ | resource, | |||
| $ | context, | |||
| $ | action, | |||
| $ | role | |||
| ) |
Remove a role from a right on a resource, context, action combination.
| config | The configuration file to remove the right from. | |
| resource | The resource (e.g. class name of the Controller or OID). | |
| context | The context in which the action takes place. | |
| action | The action to process. | |
| role | The role to remove. |
Definition at line 206 of file class.RightsManager.php.
References modifyRight().

| modifyRight | ( | $ | config, | |
| $ | resource, | |||
| $ | context, | |||
| $ | action, | |||
| $ | role, | |||
| $ | modifier | |||
| ) |
Modify a right of a role on a resource, context, action combination.
| config | The configuration file to remove the right from. | |
| resource | The resource (e.g. class name of the Controller or OID). | |
| context | The context in which the action takes place. | |
| action | The action to process. | |
| role | The role for which to cancel authorization. | |
| modifier | One of the RIGHT_MODIFIER_ constants or null (which means remove role). |
Definition at line 220 of file class.RightsManager.php.
Referenced by createPermission(), and removePermission().
| $_anonymousUser = null |
Definition at line 52 of file class.RightsManager.php.
|
This page generated via doxygen 1.5.8 Mon Mar 30 01:58:45 2009. Copyright © 2009 wemove digital solutions GmbH. |
|