Package ZenModel :: Module ZenossSecurity
[hide private]
[frames] | no frames]

Source Code for Module ZenModel.ZenossSecurity

 1  ########################################################################### 
 2  # 
 3  # This program is part of Zenoss Core, an open source monitoring platform. 
 4  # Copyright (C) 2007, Zenoss Inc. 
 5  # 
 6  # This program is free software; you can redistribute it and/or modify it 
 7  # under the terms of the GNU General Public License version 2 as published by 
 8  # the Free Software Foundation. 
 9  # 
10  # For complete information please visit: http://www.zenoss.com/oss/ 
11  # 
12  ########################################################################### 
13   
14  # Zenoss Roles 
15  ZEN_USER_ROLE = 'ZenUser' 
16  ZEN_MANAGER_ROLE = 'ZenManager' 
17  OWNER_ROLE = 'Owner' 
18  MANAGER_ROLE = 'Manager' 
19   
20   
21  # Zenoss Permissions 
22  ZEN_COMMON = 'ZenCommon' 
23  ZEN_MANAGE_DMD = 'Manage DMD' 
24  ZEN_UPDATE = "ZenUpdate" 
25  ZEN_DELETE = "Delete objects" 
26  ZEN_ADD = 'Add DMD Objects' 
27   
28  ZEN_VIEW = 'View' 
29  ZEN_VIEW_HISTORY = 'View History' 
30  ZEN_VIEW_MODIFICATIONS='View Modifications' 
31   
32  # User Settings 
33  ZEN_CHANGE_SETTINGS = 'Change Settings' 
34  ZEN_CHANGE_ALERTING_RULES = 'Change Alerting Rules' 
35  ZEN_CHANGE_EVENT_VIEWS = 'Change Event Views' 
36  ZEN_CHANGE_ADMIN_OBJECTS = 'Change Admin Objects' 
37   
38  # Device 
39  ZEN_CHANGE_DEVICE = 'Change Device' 
40  # Change Class, Rename, Delete Device, Reset IP 
41  ZEN_ADMIN_DEVICE='Admin Device' 
42  # Model, Lock, Reset Community, Push Changes, Clear Heartbeats 
43  ZEN_MANAGE_DEVICE='Manage Device' 
44  # Existing permission for setLastPollSnmpUpTime, getLastPollSnmpUpTime 
45  ZEN_MANAGE_DEVICE_STATUS='Manage Device Status' 
46   
47  # Run Commands 
48  #ZEN_COLLECTOR_PLUGINS_EDIT='Collector Plugins Edit' 
49  #ZEN_COLLECTOR_PLUGINS_VIEW='Collector Plugins View' 
50  ZEN_ZPROPERTIES_EDIT='zProperties Edit' 
51  ZEN_ZPROPERTIES_VIEW='zProperties View' 
52  ZEN_EDIT_LOCAL_TEMPLATES='Edit Local Templates' 
53   
54  # Administrate 
55  ZEN_DEFINE_COMMANDS_EDIT='Define Commands Edit' 
56  ZEN_DEFINE_COMMANDS_VIEW='Define Commands View' 
57  ZEN_MAINTENANCE_WINDOW_EDIT='Maintenance Windows Edit' 
58  ZEN_MAINTENANCE_WINDOW_VIEW='Maintenance Windows View' 
59  ZEN_ADMINISTRATORS_EDIT='Administrators Edit' 
60  ZEN_ADMINISTRATORS_VIEW='Administrators View' 
61