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 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 device production state
    52  ZEN_CHANGE_DEVICE_PRODSTATE='Change Device Production State'
    53  # Change Class, Rename, Reset IP
    54  ZEN_ADMIN_DEVICE='Admin Device'
    55  # Delete device
    56  ZEN_DELETE_DEVICE='Delete Device'
    57  # Model, Lock, Reset Community, Push Changes, Clear Heartbeats
    58  ZEN_MANAGE_DEVICE='Manage Device'
    59  # Existing permission for setLastPollSnmpUpTime, getLastPollSnmpUpTime
    60  ZEN_MANAGE_DEVICE_STATUS='Manage Device Status'
    61
    62  # Run Commands
    63  #ZEN_COLLECTOR_PLUGINS_EDIT='Collector Plugins Edit'
    64  #ZEN_COLLECTOR_PLUGINS_VIEW='Collector Plugins View'
    65  ZEN_ZPROPERTIES_EDIT='zProperties Edit'
    66  ZEN_ZPROPERTIES_VIEW='zProperties View'
    67  ZEN_EDIT_LOCAL_TEMPLATES='Edit Local Templates'
    68
    69  ZEN_RUN_COMMANDS = 'Run Commands'
    70
    71  # Administrate
    72  ZEN_DEFINE_COMMANDS_EDIT='Define Commands Edit'
    73  ZEN_DEFINE_COMMANDS_VIEW='Define Commands View'
    74  ZEN_MAINTENANCE_WINDOW_EDIT='Maintenance Windows Edit'
    75  ZEN_MAINTENANCE_WINDOW_VIEW='Maintenance Windows View'
    76  ZEN_ADMINISTRATORS_EDIT='Administrators Edit'
    77  ZEN_ADMINISTRATORS_VIEW='Administrators View'
    78