Package Products :: Package Zuul :: Package routers :: Module devicemanagement :: Class DeviceManagementRouter
[hide private]
[frames] | no frames]

Class DeviceManagementRouter

source code

ZenUtils.Ext.DirectRouter --+
                            |
                           DeviceManagementRouter

Allows setting up of users for administration purposes on devices along with maintenance windows and user commands

Instance Methods [hide private]
 
_getFacade(self) source code
 
addMaintWindow(self, params)
adds a new Maintenance Window
source code
 
deleteMaintWindow(self, uid, id)
delete a maintenance window
source code
 
getTimeZone(self)
Returns local timezone.
source code
 
getMaintWindows(self, uid, params=None)
Returns the definition and values of all the maintenance windows for this context
source code
 
editMaintWindow(self, params)
Edits the values of of a maintenance window for this context and window id
source code
[dictionary]
getUserCommands(self, uid, params=None)
Get a list of user commands for a device uid.
source code
 
addUserCommand(self, params)
add a new user command to devices
source code
 
deleteUserCommand(self, uid, id)
delete a user command
source code
 
updateUserCommand(self, params)
completes or updates an existing user command
source code
 
getUserList(self, uid)
Returns the admin roles associated with the device for this context
source code
 
getRolesList(self, uid)
Returns the admin roles associated with the device for this context
source code
 
getAdminRoles(self, uid, params=None)
Returns the admin roles associated with the device for this context
source code
 
addAdminRole(self, params)
add an admin with a role to a device
source code
 
updateAdminRole(self, params)
adds or updates a role on a existing device administrator
source code
 
removeAdmin(self, uid, id)
removes admin and role on a existing device
source code
Method Details [hide private]

getMaintWindows(self, uid, params=None)

source code 

Returns the definition and values of all the maintenance windows for this context

Parameters:
  • uid (string) - unique identifier of an object
  • params (none) - none for page reloads and error avoidance
Decorators:
  • @serviceConnectionError

editMaintWindow(self, params)

source code 

Edits the values of of a maintenance window for this context and window id

Parameters:
  • params (dict)

getUserCommands(self, uid, params=None)

source code 

Get a list of user commands for a device uid.

Parameters:
  • uid (string) - Device to use to get user commands
Returns: [dictionary]
List of objects representing user commands
Decorators:
  • @serviceConnectionError

addUserCommand(self, params)

source code 

add a new user command to devices

Decorators:
  • @require('Manage Device')

deleteUserCommand(self, uid, id)

source code 

delete a user command

Decorators:
  • @require('Manage Device')

updateUserCommand(self, params)

source code 

completes or updates an existing user command

Decorators:
  • @require('Manage Device')

getUserList(self, uid)

source code 

Returns the admin roles associated with the device for this context

Parameters:
  • uid (string) - unique identifier of an object
Decorators:
  • @serviceConnectionError

getRolesList(self, uid)

source code 

Returns the admin roles associated with the device for this context

Parameters:
  • uid (string) - unique identifier of an object
Decorators:
  • @serviceConnectionError

getAdminRoles(self, uid, params=None)

source code 

Returns the admin roles associated with the device for this context

Parameters:
  • uid (string) - unique identifier of an object
Decorators:
  • @serviceConnectionError