Package ZenModel :: Module interfaces
[hide private]
[frames] | no frames]

Source Code for Module ZenModel.interfaces

 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  import zope.interface 
15   
16 -class IDeviceManager:
17 """ 18 Interface implemented for objects that manage devices, like DeviceOrganizers 19 or monitor configurations. 20 """ 21
22 - def deviceMoveTargets(self):
23 """ 24 Return a list of potential targets to which a device can be moved. 25 Should remove self from of list. 26 """
27
28 - def getDeviceMoveTarget(self, moveTargetName):
29 """ 30 Return the moveTarget based on its name. 31 """
32
33 - def moveDevices(self, moveTarget, deviceNames=None, REQUEST=None):
34 """ 35 Move a list of devices from this DeviceManager to another. 36 """
37
38 - def removeDevices(self, deviceNames=None, REQUEST=None):
39 """ 40 Remove devices from this DeviceManager. 41 """
42 43
44 -class IReport(zope.interface.Interface):
45
46 - def run(dmd, args):
47 """Dmd is the DataRoot, args are the REQUEST args, this command 48 returns a sequence"""
49