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

Source Code for Module Products.ZenModel.ZenossSecurity

  1  ############################################################################## 
  2  #  
  3  # Copyright (C) Zenoss, Inc. 2007, all rights reserved. 
  4  #  
  5  # This content is made available according to terms specified in 
  6  # License.zenoss under the directory where your Zenoss product is installed. 
  7  #  
  8  ############################################################################## 
  9   
 10   
 11  # Any updates to permissions in this file must be reflected in 
 12  # ZenModel/permissions.zcml. 
 13   
 14  # Zenoss Roles 
 15  ZEN_USER_ROLE = 'ZenUser' 
 16  ZEN_MANAGER_ROLE = 'ZenManager' 
 17  OWNER_ROLE = 'Owner' 
 18  MANAGER_ROLE = 'Manager' 
 19   
 20  # notifications get their own roles which are managed locally on the objects 
 21  # themselves. We cannot reuse ZEN_USER_ROLE or ZEN_MANAGER_ROLE because we need 
 22  # finer grained control at the object level, not the action level. 
 23  NOTIFICATION_VIEW_ROLE = "Notification View" 
 24  NOTIFICATION_UPDATE_ROLE = "Notification Update" 
 25  NOTIFICATION_SUBSCRIPTION_MANAGER_ROLE = "Notification Subscription Manager" 
 26   
 27  # Triggers also get their own roles which are managed locally on 'stub' objects. 
 28  # the real data for triggers is persisted externally in the event processing 
 29  # system. 
 30  TRIGGER_VIEW_ROLE = "Trigger View" 
 31  TRIGGER_UPDATE_ROLE = "Trigger Update" 
 32  TRIGGER_MANAGER_ROLE = "Trigger Manager" 
 33   
 34   
 35  # Zenoss Permissions 
 36  ZEN_COMMON = 'ZenCommon' 
 37  ZEN_MANAGE_DMD = 'Manage DMD' 
 38  ZEN_UPDATE = "ZenUpdate" 
 39  ZEN_DELETE = "Delete objects" 
 40  ZEN_ADD = 'Add DMD Objects' 
 41   
 42   
 43  # Notification specific permissions 
 44  VIEW_NOTIFICATION = "View Notification" 
 45  UPDATE_NOTIFICATION = "Update Notification" 
 46  MANAGE_NOTIFICATION_SUBSCRIPTIONS = "Manage Notification Subscriptions" 
 47   
 48  # Trigger specific permissions 
 49  VIEW_TRIGGER = "View Trigger" 
 50  UPDATE_TRIGGER = "Update Trigger" 
 51  MANAGE_TRIGGER = "Manage Trigger" 
 52   
 53   
 54  ZEN_VIEW = 'View' 
 55  ZEN_VIEW_HISTORY = 'View History' 
 56   
 57  # Events 
 58  ZEN_MANAGE_EVENTMANAGER = 'Manage EventManager' 
 59  ZEN_MANAGE_EVENTS = 'Manage Events' 
 60  ZEN_SEND_EVENTS = 'Send Events' 
 61   
 62  # User Settings 
 63  ZEN_CHANGE_SETTINGS = 'Change Settings' 
 64  ZEN_CHANGE_ALERTING_RULES = 'Change Alerting Rules' 
 65  ZEN_CHANGE_EVENT_VIEWS = 'Change Event Views' 
 66  ZEN_CHANGE_ADMIN_OBJECTS = 'Change Admin Objects' 
 67   
 68  ZEN_EDIT_USER = 'Edit Users' 
 69  ZEN_EDIT_USERGROUP = 'Edit User Groups' 
 70   
 71  # Device 
 72  ZEN_CHANGE_DEVICE = 'Change Device' 
 73  # Change device production state 
 74  ZEN_CHANGE_DEVICE_PRODSTATE='Change Device Production State' 
 75  # Change Class, Rename, Reset IP 
 76  ZEN_ADMIN_DEVICE='Admin Device' 
 77  # Delete device 
 78  ZEN_DELETE_DEVICE='Delete Device' 
 79  # Model, Lock, Reset Community, Push Changes, Clear Heartbeats 
 80  ZEN_MANAGE_DEVICE='Manage Device' 
 81  # Existing permission for setLastPollSnmpUpTime, getLastPollSnmpUpTime 
 82  ZEN_MANAGE_DEVICE_STATUS='Manage Device Status' 
 83   
 84  # Run Commands 
 85  #ZEN_COLLECTOR_PLUGINS_EDIT='Modeler Plugins Edit' 
 86  #ZEN_COLLECTOR_PLUGINS_VIEW='Modeler Plugins View' 
 87  ZEN_ZPROPERTIES_EDIT='zProperties Edit' 
 88  ZEN_ZPROPERTIES_VIEW='zProperties View' 
 89  ZEN_EDIT_LOCAL_TEMPLATES='Edit Local Templates' 
 90   
 91  ZEN_RUN_COMMANDS = 'Run Commands' 
 92   
 93  # Administrate 
 94  ZEN_DEFINE_COMMANDS_EDIT='Define Commands Edit' 
 95  ZEN_DEFINE_COMMANDS_VIEW='Define Commands View' 
 96  ZEN_MAINTENANCE_WINDOW_EDIT='Maintenance Windows Edit' 
 97  ZEN_MAINTENANCE_WINDOW_VIEW='Maintenance Windows View' 
 98  ZEN_ADMINISTRATORS_EDIT='Administrators Edit' 
 99  ZEN_ADMINISTRATORS_VIEW='Administrators View' 
100   
101  # Included for ZenPack upgrades only. No longer used. 
102  ZEN_VIEW_MODIFICATIONS='Unused' 
103