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

Source Code for Module Products.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 or (at your 
  8  # option) any later version as published by 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  # notifications get their own roles which are managed locally on the objects 
 24  # themselves. We cannot reuse ZEN_USER_ROLE or ZEN_MANAGER_ROLE because we need 
 25  # finer grained control at the object level, not the action level. 
 26  NOTIFICATION_VIEW_ROLE = "Notification View" 
 27  NOTIFICATION_UPDATE_ROLE = "Notification Update" 
 28  NOTIFICATION_SUBSCRIPTION_MANAGER_ROLE = "Notification Subscription Manager" 
 29   
 30  # Triggers also get their own roles which are managed locally on 'stub' objects. 
 31  # the real data for triggers is persisted externally in the event processing 
 32  # system. 
 33  TRIGGER_VIEW_ROLE = "Trigger View" 
 34  TRIGGER_UPDATE_ROLE = "Trigger Update" 
 35  TRIGGER_MANAGER_ROLE = "Trigger Manager" 
 36   
 37   
 38  # Zenoss Permissions 
 39  ZEN_COMMON = 'ZenCommon' 
 40  ZEN_MANAGE_DMD = 'Manage DMD' 
 41  ZEN_UPDATE = "ZenUpdate" 
 42  ZEN_DELETE = "Delete objects" 
 43  ZEN_ADD = 'Add DMD Objects' 
 44   
 45   
 46  # Notification specific permissions 
 47  VIEW_NOTIFICATION = "View Notification" 
 48  UPDATE_NOTIFICATION = "Update Notification" 
 49  MANAGE_NOTIFICATION_SUBSCRIPTIONS = "Manage Notification Subscriptions" 
 50   
 51  # Trigger specific permissions 
 52  VIEW_TRIGGER = "View Trigger" 
 53  UPDATE_TRIGGER = "Update Trigger" 
 54  MANAGE_TRIGGER = "Manage Trigger" 
 55   
 56   
 57  ZEN_VIEW = 'View' 
 58  ZEN_VIEW_HISTORY = 'View History' 
 59   
 60  # Events 
 61  ZEN_MANAGE_EVENTMANAGER = 'Manage EventManager' 
 62  ZEN_MANAGE_EVENTS = 'Manage Events' 
 63  ZEN_SEND_EVENTS = 'Send Events' 
 64   
 65  # User Settings 
 66  ZEN_CHANGE_SETTINGS = 'Change Settings' 
 67  ZEN_CHANGE_ALERTING_RULES = 'Change Alerting Rules' 
 68  ZEN_CHANGE_EVENT_VIEWS = 'Change Event Views' 
 69  ZEN_CHANGE_ADMIN_OBJECTS = 'Change Admin Objects' 
 70   
 71  ZEN_EDIT_USER = 'Edit Users' 
 72  ZEN_EDIT_USERGROUP = 'Edit User Groups' 
 73   
 74  # Device 
 75  ZEN_CHANGE_DEVICE = 'Change Device' 
 76  # Change device production state 
 77  ZEN_CHANGE_DEVICE_PRODSTATE='Change Device Production State' 
 78  # Change Class, Rename, Reset IP 
 79  ZEN_ADMIN_DEVICE='Admin Device' 
 80  # Delete device 
 81  ZEN_DELETE_DEVICE='Delete Device' 
 82  # Model, Lock, Reset Community, Push Changes, Clear Heartbeats 
 83  ZEN_MANAGE_DEVICE='Manage Device' 
 84  # Existing permission for setLastPollSnmpUpTime, getLastPollSnmpUpTime 
 85  ZEN_MANAGE_DEVICE_STATUS='Manage Device Status' 
 86   
 87  # Run Commands 
 88  #ZEN_COLLECTOR_PLUGINS_EDIT='Modeler Plugins Edit' 
 89  #ZEN_COLLECTOR_PLUGINS_VIEW='Modeler Plugins View' 
 90  ZEN_ZPROPERTIES_EDIT='zProperties Edit' 
 91  ZEN_ZPROPERTIES_VIEW='zProperties View' 
 92  ZEN_EDIT_LOCAL_TEMPLATES='Edit Local Templates' 
 93   
 94  ZEN_RUN_COMMANDS = 'Run Commands' 
 95   
 96  # Administrate 
 97  ZEN_DEFINE_COMMANDS_EDIT='Define Commands Edit' 
 98  ZEN_DEFINE_COMMANDS_VIEW='Define Commands View' 
 99  ZEN_MAINTENANCE_WINDOW_EDIT='Maintenance Windows Edit' 
100  ZEN_MAINTENANCE_WINDOW_VIEW='Maintenance Windows View' 
101  ZEN_ADMINISTRATORS_EDIT='Administrators Edit' 
102  ZEN_ADMINISTRATORS_VIEW='Administrators View' 
103   
104  # Included for ZenPack upgrades only. No longer used. 
105  ZEN_VIEW_MODIFICATIONS='Unused' 
106