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.

Methods

Public Instance methods

Returns the list of all the Note categories defined in the server

[Source]

# File core/interfaces.rb, line 43
      def categories() raise 'unimplemented!' end

[Source]

# File core/interfaces.rb, line 56
      def category_find(category_id) raise 'unimplemented!' end

Checks if there is a new version of the KnowledgeBase in the server. If a new revision exist is downloaded and true is returned, otherwise false is returned.

[Source]

# File core/interfaces.rb, line 34
      def new_revision?() raise 'unimplemented!' end

dradis2 functionality

[Source]

# 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.

[Source]

# File core/interfaces.rb, line 41
      def node_children(parent_id) raise 'unimplemented!' end

def del_node(id) raise ‘unimplemented!’ end

[Source]

# File core/interfaces.rb, line 48
      def node_update(node_id, new_parent_id, new_type_id, new_label) raise 'unimplemented!' end

[Source]

# 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

[Source]

# File core/interfaces.rb, line 55
      def note_find(note_id) raise 'unimplemented!' end

def note_del(note_id) raise ‘unimplemented!’ end

[Source]

# 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

[Source]

# File core/interfaces.rb, line 37
      def refresh() raise 'unimplemented!' end

Returns the revision number of the local version of the KnowledgeBase.

[Source]

# File core/interfaces.rb, line 30
      def revision() raise 'unimplemented!' end

[Validate]