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  # Any updates to permissions in this file must be reflected in 
15  # ZenModel/permissions.zcml. 
16   
17  # Zenoss Roles 
18  ZEN_USER_ROLE = 'ZenUser' 
19  ZEN_MANAGER_ROLE = 'ZenManager' 
20  OWNER_ROLE = 'Owner' 
21  MANAGER_ROLE = 'Manager' 
22   
23   
24  # Zenoss Permissions 
25  ZEN_COMMON = 'ZenCommon' 
26  ZEN_MANAGE_DMD = 'Manage DMD' 
27  ZEN_UPDATE = "ZenUpdate" 
28  ZEN_DELETE = "Delete objects" 
29  ZEN_ADD = 'Add DMD Objects' 
30   
31  ZEN_VIEW = 'View' 
32  ZEN_VIEW_HISTORY = 'View History' 
33  ZEN_VIEW_MODIFICATIONS='View Modifications' 
34   
35  # Events 
36  ZEN_MANAGE_EVENTMANAGER = 'Manage EventManager' 
37  ZEN_MANAGE_EVENTS = 'Manage Events' 
38  ZEN_SEND_EVENTS = 'Send Events' 
39   
40  # User Settings 
41  ZEN_CHANGE_SETTINGS = 'Change Settings' 
42  ZEN_CHANGE_ALERTING_RULES = 'Change Alerting Rules' 
43  ZEN_CHANGE_EVENT_VIEWS = 'Change Event Views' 
44  ZEN_CHANGE_ADMIN_OBJECTS = 'Change Admin Objects' 
45   
46  ZEN_EDIT_USER = 'Edit Users' 
47  ZEN_EDIT_USERGROUP = 'Edit User Groups' 
48   
49  # Device 
50  ZEN_CHANGE_DEVICE = 'Change Device' 
51  # Change Class, Rename, Delete Device, Reset IP 
52  ZEN_ADMIN_DEVICE='Admin Device' 
53  # Model, Lock, Reset Community, Push Changes, Clear Heartbeats 
54  ZEN_MANAGE_DEVICE='Manage Device' 
55  # Existing permission for setLastPollSnmpUpTime, getLastPollSnmpUpTime 
56  ZEN_MANAGE_DEVICE_STATUS='Manage Device Status' 
57   
58  # Run Commands 
59  #ZEN_COLLECTOR_PLUGINS_EDIT='Collector Plugins Edit' 
60  #ZEN_COLLECTOR_PLUGINS_VIEW='Collector Plugins View' 
61  ZEN_ZPROPERTIES_EDIT='zProperties Edit' 
62  ZEN_ZPROPERTIES_VIEW='zProperties View' 
63  ZEN_EDIT_LOCAL_TEMPLATES='Edit Local Templates' 
64   
65  ZEN_RUN_COMMANDS = 'Run Commands' 
66   
67  # Administrate 
68  ZEN_DEFINE_COMMANDS_EDIT='Define Commands Edit' 
69  ZEN_DEFINE_COMMANDS_VIEW='Define Commands View' 
70  ZEN_MAINTENANCE_WINDOW_EDIT='Maintenance Windows Edit' 
71  ZEN_MAINTENANCE_WINDOW_VIEW='Maintenance Windows View' 
72  ZEN_ADMINISTRATORS_EDIT='Administrators Edit' 
73  ZEN_ADMINISTRATORS_VIEW='Administrators View' 
74