Package Products :: Package Zuul :: Package routers :: Module manufacturers :: Class ManufacturersRouter
[hide private]
[frames] | no frames]

Class ManufacturersRouter

source code

ZenUtils.Ext.DirectRouter --+    
                            |    
                   TreeRouter --+
                                |
                               ManufacturersRouter

Manufacturers and their products, and the instances of those products

Instance Methods [hide private]
 
_getFacade(self)
Abstract method for child classes to use to get their facade
source code
 
addNewProduct(self, params=None)
Add new product for the current manufacturer context
source code
 
removeProducts(self, products)
remove product(s) from a manufacturer
source code
 
editProduct(self, params=None)
Edit a product
source code
 
getProductsByManufacturer(self, uid, params={})
Returns products for the current context
source code
 
getProductData(self, uid, prodname)
return all extra data for product id
source code
 
getProductInstances(self, uid, id, params={})
return all instances of this product
source code
 
getManufacturerData(self, uid)
return all extra data for manufacturer id
source code
 
getManufacturers(self)
return all manufacturers
source code
 
addManufacturer(self, id)
add a manufacturer
source code
 
editManufacturer(self, params)
edit a manufacturer
source code
 
deleteManufacturer(self, uid, params=None)
remove a manufacturer
source code
 
moveProduct(self, moveFrom, moveTarget, ids)
move products to a different organizer
source code
 
returnTree(self, id)
return a usable tree
source code

Inherited from TreeRouter: addNode, asyncGetTree, deleteNode, gunzip_b64, gzip_b64, moveOrganizer, objectExists

Inherited from TreeRouter (private): _canDeleteUid

Method Details [hide private]

_getFacade(self)

source code 

Abstract method for child classes to use to get their facade

Overrides: TreeRouter._getFacade
(inherited documentation)

addNewProduct(self, params=None)

source code 

Add new product for the current manufacturer context

Decorators:
  • @serviceConnectionError

removeProducts(self, products)

source code 

remove product(s) from a manufacturer

Decorators:
  • @require('Manage DMD')

editProduct(self, params=None)

source code 

Edit a product

Decorators:
  • @serviceConnectionError
  • @require('Manage DMD')

getProductsByManufacturer(self, uid, params={})

source code 

Returns products for the current context

Decorators:
  • @serviceConnectionError

getProductData(self, uid, prodname)

source code 

return all extra data for product id

Decorators:
  • @serviceConnectionError

getProductInstances(self, uid, id, params={})

source code 

return all instances of this product

Decorators:
  • @serviceConnectionError

getManufacturerData(self, uid)

source code 

return all extra data for manufacturer id

Decorators:
  • @serviceConnectionError

getManufacturers(self)

source code 

return all manufacturers

Decorators:
  • @serviceConnectionError

addManufacturer(self, id)

source code 

add a manufacturer

Decorators:
  • @require('Manage DMD')

editManufacturer(self, params)

source code 

edit a manufacturer

Decorators:
  • @require('Manage DMD')

deleteManufacturer(self, uid, params=None)

source code 

remove a manufacturer

Decorators:
  • @require('Manage DMD')

moveProduct(self, moveFrom, moveTarget, ids)

source code 

move products to a different organizer

Decorators:
  • @require('Manage DMD')