web.pluginmanager.plugins.hardware_inventory.Plugin

Package web :: Package pluginmanager :: Package plugins :: Package hardware_inventory :: Class Plugin |
[hide private]
[frames] | no frames]

# Class Plugin

source code

    web.pluginmanager.pluginbase.PluginBase --+
                                              |
                                             Plugin

Instance Methods | [hide private]
enable(self) | source code
disable(self) | source code
install(self) | source code
uninstall(self) | source code
get_options(self) | source code
save_options(self, inputs) | source code
get_actions_for_ou(self, ou) | source code
get_actions_for_computer(self, computer) | source code
add_hardware_elements(self, hardware_text) Parses a text and adds hardware elements to the db. | source code
add_hardware_profile(self, computer, hardware_elements, name='') Adds a profile hardware with the given computer, hardware_elemengs and name. | source code
_search_specific_hardware_element(self, hardware_type, description) Searchs a element with the given type and description. | source code
_search_specific_hardware_profile(self, elements) Searchs a profile with the given elements. | source code
create_hardware_profile_response(self, job) | source code

Method Details | [hide private]

### add_hardware_elements(self, hardware_text) | source code
Parses a text and adds hardware elements to the db. Returns the hardware elements parsed. If a hardware element is already in db, it won't be added again. A hardware element is only added once. If an error ocurred will be ignored. Hardware_text is the text returned by a client that executed ogHardwareList.

### add_hardware_profile(self, computer, hardware_elements, name='') | source code
Adds a profile hardware with the given computer, hardware_elemengs and name. If a same hardware profile exists then the function only relates computer with that profile, and its name will NOT be changed. Returns the profile.

### _search_specific_hardware_element(self, hardware_type, description) | source code
Searchs a element with the given type and description. It is returned if it found. None is returned in other case.

### _search_specific_hardware_profile(self, elements) | source code
Searchs a profile with the given elements. It is returned if it found. None is returned in other case.