classes/security/Role.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00016 //$Id$
00017 
00019 define('ROLE_ID_SITE_ADMIN',        0x00000001);
00020 define('ROLE_PATH_SITE_ADMIN',         'admin');
00021 
00022 define('ROLE_ID_CONFERENCE_MANAGER',      0x00000010);
00023 define('ROLE_PATH_CONFERENCE_MANAGER',    'manager');
00024 
00025 define('ROLE_ID_DIRECTOR',       0x00000040);
00026 define('ROLE_PATH_DIRECTOR',        'director');
00027 
00028 define('ROLE_ID_TRACK_DIRECTOR',    0x00000080);
00029 define('ROLE_PATH_TRACK_DIRECTOR',     'trackDirector');
00030 
00031 define('ROLE_ID_REVIEWER',       0x00000100);
00032 define('ROLE_PATH_REVIEWER',        'reviewer');
00033 
00034 define('ROLE_ID_AUTHOR',         0x00001000);
00035 define('ROLE_PATH_AUTHOR',       'author');
00036 
00037 //define('ROLE_ID_INVITED_AUTHOR',     0x00001001);
00038 //define('ROLE_PATH_INVITED_AUTHOR',      'invitedAuthor');
00039 
00040 //define('ROLE_ID_DISCUSSANT',         0x00010000);
00041 //define('ROLE_PATH_DISCUSSANT',    'discussant');
00042 
00043 //define('ROLE_ID_REGISTRANT',         0x00020000);
00044 //define('ROLE_PATH_REGISTRANT',    'registrant');
00045 
00046 define('ROLE_ID_READER',         0x00008000);
00047 define('ROLE_PATH_READER',       'reader');
00048 
00049 class Role extends DataObject {
00050 
00054    function Role() {
00055       parent::DataObject();
00056    }
00057 
00062    function getRoleName() {
00063       return RoleDAO::getRoleName($this->getData('roleId'));
00064    }
00065 
00070    function getRolePath() {
00071       return RoleDAO::getRolePath($this->getData('roleId'));
00072    }
00073 
00074    //
00075    // Get/set methods
00076    //
00077 
00082    function getConferenceId() {
00083       return $this->getData('conferenceId');
00084    }
00085 
00090    function setConferenceId($conferenceId) {
00091       return $this->setData('conferenceId', $conferenceId);
00092    }
00093 
00098    function getSchedConfId() {
00099       return $this->getData('schedConfId');
00100    }
00101 
00106    function setSchedConfId($schedConfId) {
00107       return $this->setData('schedConfId', $schedConfId);
00108    }
00109 
00114    function getUserId() {
00115       return $this->getData('userId');
00116    }
00117 
00122    function setUserId($userId) {
00123       return $this->setData('userId', $userId);
00124    }
00125 
00130    function getRoleId() {
00131       return $this->getData('roleId');
00132    }
00133 
00138    function setRoleId($roleId) {
00139       return $this->setData('roleId', $roleId);
00140    }
00141 }
00142 
00143 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7