/** * Constructor */ function PKPStageParticipantGridHandler() { parent::CategoryGridHandler(); //Assistants get read-only access $this->addRoleAssignment(array(ROLE_ID_ASSISTANT), $peOps = array('fetchGrid', 'fetchCategory', 'fetchRow', 'viewNotify', 'fetchTemplateBody', 'sendNotification')); // Managers and Editors additionally get administrative access $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR), array_merge($peOps, array('addParticipant', 'deleteParticipant', 'saveParticipant', 'fetchUserList'))); }
/** * 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 SelectableSubmissionFileListCategoryGridHandler($dataProvider, $stageId, $capabilities = 0) { // the StageId can be set later if necessary. if ($stageId) { $this->_stageId = (int) $stageId; } $this->_capabilities = new FilesGridCapabilities($capabilities); parent::CategoryGridHandler($dataProvider); }
/** * Constructor */ function PKPSignoffFilesGridHandler($stageId, $fileStage, $symbolic, $eventType, $assocType = null, $assocId = null) { $this->_stageId = $stageId; $this->_fileStage = $fileStage; $this->_symbolic = $symbolic; $this->_eventType = $eventType; $this->_assocType = $assocType; $this->_assocId = $assocId; $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchCategory', 'fetchRow', 'returnFileRow', 'returnSignoffRow', 'addAuditor', 'saveAddAuditor', 'getAuditorAutocomplete', 'signOffsignOff', 'deleteSignOffSignOff', 'deleteSignoff', 'viewLibrary', 'editReminder', 'sendReminder')); parent::CategoryGridHandler(); }
/** * Constructor */ function LibraryFileGridHandler($dataProvider) { parent::CategoryGridHandler($dataProvider); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_AUTHOR), array('fetchGrid', 'fetchCategory', 'fetchRow')); }
/** * Constructor */ function SystemInfoGridHandler() { parent::CategoryGridHandler(); $this->addRoleAssignment(array(ROLE_ID_SITE_ADMIN), array('fetchGrid', 'fetchCategory', 'fetchRow')); }
/** * Constructor */ function TocGridHandler() { parent::CategoryGridHandler(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchCategory', 'fetchRow', 'saveSequence', 'removeArticle')); $this->publishedArticlesBySectionId = array(); }
/** * Constructor */ function CategoryCategoryGridHandler() { parent::CategoryGridHandler(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchCategory', 'fetchRow', 'addCategory', 'editCategory', 'updateCategory', 'deleteCategory', 'uploadImage', 'saveSequence')); }
/** * Constructor */ function CopyeditingFilesGridHandler() { parent::CategoryGridHandler(); $this->addRoleAssignment(ROLE_ID_AUTHOR, $authorOperations = array('fetchGrid', 'addCopyeditedFile', 'editCopyeditedFile', 'uploadCopyeditedFile', 'returnSignoffRow', 'returnFileRow', 'downloadFile', 'deleteFile')); $this->addRoleAssignment(array(ROLE_ID_SERIES_EDITOR, ROLE_ID_PRESS_MANAGER, ROLE_ID_PRESS_ASSISTANT), array_merge($authorOperations, array('addUser', 'saveAddUser', 'getCopyeditUserAutocomplete', 'deleteUser'))); }
/** * Constructor */ function ChapterGridHandler() { parent::CategoryGridHandler(); $this->addRoleAssignment(array(ROLE_ID_AUTHOR, ROLE_ID_SUB_EDITOR, ROLE_ID_MANAGER, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow', 'fetchCategory', 'saveSequence', 'addChapter', 'editChapter', 'updateChapter', 'deleteChapter', 'addAuthor', 'editAuthor', 'updateAuthor', 'deleteAuthor')); $this->addRoleAssignment(ROLE_ID_REVIEWER, array('fetchGrid', 'fetchRow')); }
/** * Constructor * @param $roles array */ function PluginGridHandler($roles) { $this->addRoleAssignment($roles, array('enable', 'disable', 'manage', 'fetchGrid, fetchCategory', 'fetchRow')); $this->addRoleAssignment(ROLE_ID_SITE_ADMIN, array('uploadPlugin', 'upgradePlugin', 'deletePlugin')); parent::CategoryGridHandler(); }
/** * Constructor */ function AuthorProofingSignoffFilesGridHandler() { import('lib.pkp.controllers.grid.files.proof.AuthorProofingSignoffFilesCategoryGridDataProvider'); parent::CategoryGridHandler(new AuthorProofingSignoffFilesCategoryGridDataProvider()); $this->addRoleAssignment(array(ROLE_ID_AUTHOR), array('fetchGrid', 'fetchCategory', 'fetchRow')); }
/** * Constructor */ function RepresentativesGridHandler() { parent::CategoryGridHandler(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchCategory', 'fetchRow', 'addRepresentative', 'editRepresentative', 'updateRepresentative', 'deleteRepresentative')); }
/** * Constructor */ function ManageFooterGridHandler() { parent::CategoryGridHandler(); $this->addRoleAssignment(array(ROLE_ID_MANAGER), array('fetchGrid', 'fetchCategory', 'fetchRow', 'addFooterCategory', 'editFooterCategory', 'updateFooterCategory', 'deleteFooterCategory')); }
/** * Constructor */ function RepresentationsGridHandler() { parent::CategoryGridHandler(new RepresentationsCategoryGridDataProvider($this)); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow', 'fetchCategory', 'addFormat', 'editFormat', 'updateFormat', 'deleteFormat', 'setApproved', 'setProofFileCompletion', 'selectFiles')); }
/** * Constructor */ function PublicationFormatGridHandler() { parent::CategoryGridHandler(new PublicationFormatCategoryGridDataProvider($this)); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR), array('setAvailable', 'editApprovedProof', 'saveApprovedProof')); $this->addRoleAssignment(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR, ROLE_ID_ASSISTANT), array('fetchGrid', 'fetchRow', 'fetchCategory', 'addFormat', 'editFormat', 'editFormatTab', 'updateFormat', 'deleteFormat', 'setApproved', 'setProofFileCompletion', 'selectFiles', 'identifiers', 'updateIdentifiers', 'clearPubId', 'dependentFiles')); }