Open Monograph Press  3.3.0
AssignedStageRoleHandlerOperationPolicy Class Reference
Inheritance diagram for AssignedStageRoleHandlerOperationPolicy:
RoleBasedHandlerOperationPolicy HandlerOperationPolicy AuthorizationPolicy

Public Member Functions

 __construct ($request, $roles, $operations, $stageId, $message='user.authorization.assignedStageRoleBasedAccessDenied', $allRoles=false)
 
 effect ()
 
- Public Member Functions inherited from RoleBasedHandlerOperationPolicy
 __construct ($request, $roles, $operations, $message='user.authorization.roleBasedAccessDenied', $allRoles=false)
 
 _checkUserRoleAssignment ($userRoles)
 
- Public Member Functions inherited from HandlerOperationPolicy
 __construct ($request, $operations, $message=null)
 
 _checkOperationWhitelist ()
 
 getOperations ()
 
getRequest ()
 
- Public Member Functions inherited from AuthorizationPolicy
 __construct ($message=null)
 
 addAuthorizedContextObject ($assocType, &$authorizedObject)
 
 applies ()
 
getAdvice ($adviceType)
 
getAuthorizedContext ()
 
getAuthorizedContextObject ($assocType)
 
 hasAdvice ($adviceType)
 
 hasAuthorizedContextObject ($assocType)
 
 setAdvice ($adviceType, &$adviceContent)
 
 setAuthorizedContext (&$authorizedContext)
 

Data Fields

 $_stageId
 
- Data Fields inherited from RoleBasedHandlerOperationPolicy
 $_allRoles
 
 $_roles = array()
 
- Data Fields inherited from HandlerOperationPolicy
 $_operations = array()
 
 $_request
 
- Data Fields inherited from AuthorizationPolicy
 $_advice = array()
 
 $_authorizedContext = array()
 

Detailed Description

Class to control access to handler operations based on assigned role(s) in a submission's workflow stage.

Definition at line 18 of file AssignedStageRoleHandlerOperationPolicy.inc.php.

Constructor & Destructor Documentation

◆ __construct()

AssignedStageRoleHandlerOperationPolicy::__construct (   $request,
  $roles,
  $operations,
  $stageId,
  $message = 'user.authorization.assignedStageRoleBasedAccessDenied',
  $allRoles = false 
)

Constructor

Parameters
$requestPKPRequest
$rolesarray|integer either a single role ID or an array of role ids
$operationsarray|string either a single operation or a list of operations that this policy is targeting.
$stageIdint The stage ID to check for assigned roles
$messagestring a message to be displayed if the authorization fails
$allRolesboolean whether all roles must match ("all of") or whether it is enough for only one role to match ("any of"). Default: false ("any of")

Definition at line 37 of file AssignedStageRoleHandlerOperationPolicy.inc.php.

Member Function Documentation

◆ effect()

Field Documentation

◆ $_stageId

int AssignedStageRoleHandlerOperationPolicy::$_stageId

The documentation for this class was generated from the following file: