Module | Core::Interfaces::Model |
In: |
core/interfaces.rb
|
Interface for the Model object. The model is responsible for storing all the relevant information in the server‘s knowledge base.
Returns the list of all the Note categories defined in the server
# File core/interfaces.rb, line 43 def categories() raise 'unimplemented!' end
dradis2 functionality
# File core/interfaces.rb, line 46 def node_add(parent_id, type_id, label) raise 'unimplemented!' end
Returns an array that contains the children of a specific node. If parent_id is nil, the root nodes are returned.
# File core/interfaces.rb, line 41 def node_children(parent_id) raise 'unimplemented!' end
def del_node(id) raise ‘unimplemented!’ end
# File core/interfaces.rb, line 48 def node_update(node_id, new_parent_id, new_type_id, new_label) raise 'unimplemented!' end
# File core/interfaces.rb, line 50 def note_add(note_id, author, category_id, text) raise 'unimplemented!' end
def node_find(node_id) raise ‘unimplemented!’ end
# File core/interfaces.rb, line 55 def note_find(note_id) raise 'unimplemented!' end
def note_del(note_id) raise ‘unimplemented!’ end
# File core/interfaces.rb, line 52 def note_update(note_id, new_author, new_category_id, new_text) raise 'unimplemented!' end
Pull down a copy of the KnowledgeBase
# File core/interfaces.rb, line 37 def refresh() raise 'unimplemented!' end