/**
  * Constructor
  */
 function AuthorSubmissionDetailsFilesGridHandler()
 {
     import('lib.pkp.controllers.grid.files.SubmissionFilesGridDataProvider');
     $dataProvider = new SubmissionFilesGridDataProvider(SUBMISSION_FILE_SUBMISSION);
     parent::FileListGridHandler($dataProvider, WORKFLOW_STAGE_ID_SUBMISSION, FILE_GRID_DOWNLOAD_ALL | FILE_GRID_EDIT);
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_AUTHOR), array('fetchGrid', 'fetchRow'));
 }
 /**
  * Constructor
  *  FILE_GRID_* capabilities set.
  */
 function FinalDraftFilesGridHandler()
 {
     import('lib.pkp.controllers.grid.files.final.FinalDraftFilesGridDataProvider');
     parent::FileListGridHandler(new FinalDraftFilesGridDataProvider(), null, FILE_GRID_DELETE | FILE_GRID_EDIT | FILE_GRID_MANAGE | FILE_GRID_VIEW_NOTES);
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow', 'selectFiles'));
     $this->setTitle('submission.finalDraft');
 }
 /**
  * Constructor
  */
 function AuthorSubmissionDetailsFilesGridHandler()
 {
     import('controllers.grid.files.SubmissionFilesGridDataProvider');
     $dataProvider = new SubmissionFilesGridDataProvider(WORKFLOW_STAGE_ID_SUBMISSION, MONOGRAPH_FILE_SUBMISSION);
     parent::FileListGridHandler($dataProvider, WORKFLOW_STAGE_ID_SUBMISSION, FILE_GRID_DOWNLOAD_ALL);
     $this->addRoleAssignment(array(ROLE_ID_AUTHOR, ROLE_ID_SERIES_EDITOR, ROLE_ID_PRESS_MANAGER), array('fetchGrid', 'fetchRow', 'downloadAllFiles'));
 }
 /**
  * Constructor
  */
 function AuthorReviewRevisionsGridHandler()
 {
     import('lib.pkp.controllers.grid.files.review.ReviewGridDataProvider');
     parent::FileListGridHandler(new ReviewGridDataProvider(SUBMISSION_FILE_REVIEW_REVISION), null, FILE_GRID_ADD | FILE_GRID_EDIT);
     $this->addRoleAssignment(array(ROLE_ID_AUTHOR), array('fetchGrid', 'fetchRow'));
     $this->setTitle('editor.submission.revisions');
 }
 /**
  * Constructor
  */
 function EditorReviewAttachmentsGridHandler()
 {
     import('lib.pkp.controllers.grid.files.attachment.ReviewerReviewAttachmentGridDataProvider');
     // Pass in null stageId to be set in initialize from request var.
     parent::FileListGridHandler(new ReviewerReviewAttachmentGridDataProvider(SUBMISSION_FILE_REVIEW_ATTACHMENT), null, FILE_GRID_VIEW_NOTES);
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow'));
 }
 /**
  * Constructor
  */
 function EditorReviewFilesGridHandler()
 {
     import('lib.pkp.controllers.grid.files.review.ReviewGridDataProvider');
     parent::FileListGridHandler(new ReviewGridDataProvider(SUBMISSION_FILE_REVIEW_FILE), null, FILE_GRID_MANAGE | FILE_GRID_VIEW_NOTES | FILE_GRID_DELETE);
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow', 'selectFiles'));
     $this->setTitle('reviewer.submission.reviewFiles');
 }
 /**
  * Constructor
  *  FILE_GRID_* capabilities set.
  */
 function CopyeditFilesGridHandler()
 {
     import('lib.pkp.controllers.grid.files.copyedit.CopyeditFilesGridDataProvider');
     parent::FileListGridHandler(new CopyeditFilesGridDataProvider(), null, FILE_GRID_EDIT | FILE_GRID_MANAGE | FILE_GRID_VIEW_NOTES);
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow', 'selectFiles'));
     $this->setTitle('submission.copyedited');
     $this->setInstructions('editor.submission.editorial.copyeditedDescription');
 }
 /**
  * Constructor
  */
 function ReviewerReviewFilesGridHandler()
 {
     // Pass in null stageId to be set in initialize from request var.
     import('lib.pkp.controllers.grid.files.review.ReviewerReviewFilesGridDataProvider');
     parent::FileListGridHandler(new ReviewerReviewFilesGridDataProvider(), null);
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_REVIEWER), array('fetchGrid', 'fetchRow'));
     // Set the grid title.
     $this->setTitle('reviewer.submission.reviewFiles');
 }
 /**
  * Constructor
  */
 function ReviewerReviewAttachmentsGridHandler()
 {
     import('lib.pkp.controllers.grid.files.attachment.ReviewerReviewAttachmentGridDataProvider');
     // Pass in null stageId to be set in initialize from request var.
     parent::FileListGridHandler(new ReviewerReviewAttachmentGridDataProvider(SUBMISSION_FILE_REVIEW_ATTACHMENT), null, FILE_GRID_ADD | FILE_GRID_DELETE);
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_REVIEWER), array('fetchGrid', 'fetchRow'));
     // Set the grid title.
     $this->setTitle('reviewer.submission.reviewerFiles');
 }
 /**
  * Constructor
  */
 function SubmissionWizardFilesGridHandler()
 {
     // import app-specific grid data provider for access policies.
     import('lib.pkp.controllers.grid.files.SubmissionFilesGridDataProvider');
     parent::FileListGridHandler(new SubmissionFilesGridDataProvider(SUBMISSION_FILE_SUBMISSION), WORKFLOW_STAGE_ID_SUBMISSION, FILE_GRID_ADD | FILE_GRID_DELETE | FILE_GRID_VIEW_NOTES | FILE_GRID_EDIT);
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_AUTHOR), array('fetchGrid', 'fetchRow'));
     // Set grid title.
     $this->setTitle('submission.submit.submissionFiles');
 }
 /**
  * Constructor
  */
 function EditorReviewFilesGridHandler()
 {
     import('controllers.grid.files.review.ReviewFilesGridDataProvider');
     $dataProvider = new ReviewFilesGridDataProvider();
     parent::FileListGridHandler($dataProvider, WORKFLOW_STAGE_ID_INTERNAL_REVIEW, FILE_GRID_DOWNLOAD_ALL | FILE_GRID_MANAGE);
     $this->addRoleAssignment(array(ROLE_ID_SERIES_EDITOR, ROLE_ID_PRESS_MANAGER), array('fetchGrid', 'fetchRow', 'downloadAllFiles', 'selectFiles'));
     // Set the grid title.
     $this->setTitle('reviewer.monograph.reviewFiles');
 }
 /**
  * Constructor
  */
 function SubmissionWizardFilesGridHandler()
 {
     import('controllers.grid.files.SubmissionFilesGridDataProvider');
     $dataProvider = new SubmissionFilesGridDataProvider(WORKFLOW_STAGE_ID_SUBMISSION, MONOGRAPH_FILE_SUBMISSION);
     parent::FileListGridHandler($dataProvider, WORKFLOW_STAGE_ID_SUBMISSION, FILE_GRID_ADD | FILE_GRID_DELETE);
     $this->addRoleAssignment(array(ROLE_ID_AUTHOR, ROLE_ID_SERIES_EDITOR, ROLE_ID_PRESS_MANAGER), array('fetchGrid', 'fetchRow', 'downloadAllFiles'));
     // Set grid title.
     $this->setTitle('submission.submit.submissionFiles');
 }
 /**
  * Constructor
  */
 function EditorSubmissionDetailsFilesGridHandler()
 {
     import('lib.pkp.controllers.grid.files.SubmissionFilesGridDataProvider');
     $dataProvider = new SubmissionFilesGridDataProvider(SUBMISSION_FILE_SUBMISSION);
     parent::FileListGridHandler($dataProvider, WORKFLOW_STAGE_ID_SUBMISSION, FILE_GRID_ADD | FILE_GRID_DELETE | FILE_GRID_VIEW_NOTES | FILE_GRID_DOWNLOAD_ALL);
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_AUTHOR), array('fetchGrid', 'fetchRow'));
     // Grid title.
     $this->setTitle('submission.submit.submissionFiles');
 }
 /**
  * Constructor
  */
 function AuthorReviewAttachmentsGridHandler()
 {
     import('lib.pkp.controllers.grid.files.review.ReviewGridDataProvider');
     // Pass in null stageId to be set in initialize from request var.
     parent::FileListGridHandler(new ReviewGridDataProvider(SUBMISSION_FILE_REVIEW_ATTACHMENT, true), null);
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_AUTHOR), array('fetchGrid', 'fetchRow'));
     // Set the grid title.
     $this->setTitle('grid.reviewAttachments.title');
 }
 /**
  * Constructor
  */
 function DependentFilesGridHandler()
 {
     // import app-specific grid data provider for access policies.
     $request = Application::getRequest();
     $fileId = $request->getUserVar('fileId');
     // authorized in authorize() method.
     import('lib.pkp.controllers.grid.files.dependent.DependentFilesGridDataProvider');
     parent::FileListGridHandler(new DependentFilesGridDataProvider($fileId), WORKFLOW_STAGE_ID_PRODUCTION, FILE_GRID_ADD | FILE_GRID_DELETE | FILE_GRID_VIEW_NOTES | FILE_GRID_EDIT);
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_AUTHOR), array('fetchGrid', 'fetchRow'));
 }
 /**
  * Constructor
  */
 function QueryNoteFilesGridHandler()
 {
     // import app-specific grid data provider for access policies.
     $request = Application::getRequest();
     $stageId = $request->getUservar('stageId');
     // authorized in authorize() method.
     import('lib.pkp.controllers.grid.files.query.QueryNoteFilesGridDataProvider');
     parent::FileListGridHandler(new QueryNoteFilesGridDataProvider($request->getUserVar('noteId')), $stageId, FILE_GRID_ADD | FILE_GRID_DELETE | FILE_GRID_VIEW_NOTES | FILE_GRID_EDIT);
     $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_AUTHOR), array('fetchGrid', 'fetchRow', 'selectFiles'));
     // Set grid title.
     $this->setTitle('submission.queries.attachedFiles');
 }
 /**
  * Constructor
  * @param $dataProvider GridDataProvider
  * @param $stageId integer One of the WORKFLOW_STAGE_ID_* constants.
  * @param $capabilities integer A bit map with zero or more
  *  FILE_GRID_* capabilities set.
  */
 function SelectableFileListGridHandler($dataProvider, $stageId, $capabilities)
 {
     parent::FileListGridHandler($dataProvider, $stageId, $capabilities);
 }
 /**
  * Constructor
  */
 function GalleyFilesGridHandler()
 {
     import('lib.pkp.controllers.grid.files.proof.ProofFilesGridDataProvider');
     parent::FileListGridHandler(new ProofFilesGridDataProvider(), WORKFLOW_STAGE_ID_PRODUCTION, FILE_GRID_ADD | FILE_GRID_MANAGE | FILE_GRID_DELETE | FILE_GRID_VIEW_NOTES | FILE_GRID_EDIT);
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow', 'addFile', 'selectFiles', 'downloadFile', 'deleteFile'));
 }
 /**
  * Constructor
  */
 function ProductionReadyFilesGridHandler()
 {
     import('lib.pkp.controllers.grid.files.SubmissionFilesGridDataProvider');
     parent::FileListGridHandler(new SubmissionFilesGridDataProvider(SUBMISSION_FILE_PRODUCTION_READY), WORKFLOW_STAGE_ID_PRODUCTION, FILE_GRID_ADD | FILE_GRID_DELETE | FILE_GRID_VIEW_NOTES | FILE_GRID_EDIT);
     $this->addRoleAssignment(array(ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow', 'addFile', 'downloadFile', 'deleteFile', 'signOffFile'));
 }