/**
  * Constructor
  *
  * @param $request PKPRequest
  */
 function __construct($request)
 {
     parent::__construct();
     $this->_request = $request;
     // Add advice
     $callOnDeny = array($request, 'redirectSSL', array());
     $this->setAdvice(AUTHORIZATION_ADVICE_CALL_ON_DENY, $callOnDeny);
 }
 /**
  * Constructor
  * @param $request PKPRequest
  * @param $args array request parameters
  * @param $parameterName string the request parameter we expect
  * @param $message string
  * @param $operations array Optional list of operations for which this check takes effect. If specified, operations outside this set will not be checked against this policy.
  */
 function __construct($request, &$args, $parameterName, $message = null, $operations = null)
 {
     parent::__construct($message);
     $this->_request = $request;
     assert(is_array($args));
     $this->_args =& $args;
     $this->_parameterName = $parameterName;
     $this->_operations = $operations;
 }
 /**
  * Constructor
  * @param $request PKPRequest
  * @param $operations array|string either a single operation or a list of operations that
  *  this policy is targeting.
  * @param $message string a message to be displayed if the authorization fails
  */
 function __construct($request, $operations, $message = null)
 {
     parent::__construct($message);
     $this->_request =& $request;
     // Make sure a single operation doesn't have to
     // be passed in as an array.
     assert(is_string($operations) || is_array($operations));
     if (!is_array($operations)) {
         $operations = array($operations);
     }
     $this->_operations = $operations;
 }
 /**
  * Constructor
  * @param $request PKPRequest
  */
 function __construct($request)
 {
     parent::__construct('user.authorization.pluginRequired');
     $this->_request = $request;
 }
 /**
  * Constructor
  * @param $request PKPRequest
  */
 function __construct($request)
 {
     parent::__construct('user.authorization.seriesAssignment');
     $this->_request = $request;
 }
 /**
  * Constructor
  * @param $request PKPRequest
  * @param $args array request arguments
  * @param $roleAssignments array
  */
 function __construct($request)
 {
     parent::__construct('user.authorization.journalDoesNotPublish');
     $this->_context = $request->getContext();
 }
 /**
  * Constructor
  * @param $request PKPRequest
  */
 function __construct($request)
 {
     parent::__construct('user.authorization.accessibleWorkflowStage');
     $this->_request = $request;
 }
 /**
  * Constructor
  *
  * @param $request PKPRequest
  */
 function __construct($request, $message = 'user.authorization.contextRequired')
 {
     parent::__construct($message);
     $this->_request = $request;
 }
 /**
  * Constructor
  * @param $request PKPRequest
  */
 function __construct($request)
 {
     parent::__construct('user.authorization.submissionAuthor');
     $this->_request = $request;
 }
 /**
  * Constructor
  *
  * @param $request PKPRequest
  */
 function __construct($request)
 {
     parent::__construct();
     $this->_request = $request;
 }
 /**
  * Constructor
  * @param $stageId The one that will be checked against accessible
  * user workflow stages.
  */
 function __construct($stageId)
 {
     parent::__construct('user.authorization.accessibleWorkflowStage');
     $this->_stageId = $stageId;
 }
 /**
  * Constructor
  * @param $request PKPRequest
  * @param $fileIdAndRevision string If passed, this policy will try to
  * get the submission file from this data.
  */
 function __construct($request, $fileIdAndRevision = null)
 {
     parent::__construct('user.authorization.submissionFile');
     $this->_request = $request;
     $this->_fileIdAndRevision = $fileIdAndRevision;
 }
 /**
  * Constructor
  *
  * @param $request PKPRequest
  */
 function __construct($request)
 {
     parent::__construct('user.authorization.restrictedSiteAccess');
     $this->_request = $request;
     $this->_router = $request->getRouter();
 }
 /**
  * Constructor
  * @param $request PKPRequest
  */
 function __construct($request, $contextLevel)
 {
     parent::__construct('user.authorization.pluginLevel');
     $this->_contextLevel = $contextLevel;
 }
 /**
  * Constructor
  * @param $stageId integer One of the WORKFLOW_STAGE_ID_* constants.
  */
 function __construct($stageId)
 {
     parent::__construct('user.authorization.workflowStageRequired');
     $this->_stageId = $stageId;
 }
 /**
  * Constructor
  * @param $request PKPRequest
  */
 function __construct($request, $contextLevel)
 {
     parent::__construct();
     $this->_contextLevel =& $contextLevel;
 }
 /**
  * Constructor
  * @param $request PKPRequest
  */
 function __construct($request)
 {
     parent::__construct('user.authorization.monographAuthor');
     $this->_request =& $request;
 }