• Main Page
  • Modules
  • Classes
  • Files
  • File List

classes/file/FileManagementHandler.inc.php

00001 <?php
00015 // Import the base Handler.
00016 import('classes.handler.Handler');
00017 
00018 class FileManagementHandler extends Handler {
00022    function FileManagementHandler() {
00023       parent::Handler();
00024    }
00025 
00026 
00027    //
00028    // Implement template methods from PKPHandler
00029    //
00033    function authorize(&$request, $args, $roleAssignments) {
00034       // Allow both reviewers (if in review) and press roles.
00035       import('classes.security.authorization.OmpReviewStageAccessPolicy');
00036       $this->addPolicy(new OmpReviewStageAccessPolicy($request, $args, $roleAssignments, 'monographId', $request->getUserVar('stageId')), true);
00037 
00038       return parent::authorize($request, $args, $roleAssignments);
00039    }
00040 
00041 
00045    function initialize(&$request, $args) {
00046       parent::initialize($request, $args);
00047    }
00048 
00049 
00050    //
00051    // Getters and Setters
00052    //
00057    function &getMonograph() {
00058       return $this->getAuthorizedContextObject(ASSOC_TYPE_MONOGRAPH);
00059    }
00060 
00061 
00066    function getStageId() {
00067       return $this->getAuthorizedContextObject(ASSOC_TYPE_WORKFLOW_STAGE);
00068    }
00069 }
00070 
00071 ?>

Generated on Mon Sep 17 2012 13:58:55 for Open Monograph Press by  doxygen 1.7.1