com.mycompany.service
Interface IdeaService

All Known Implementing Classes:
IdeaServiceImpl

public interface IdeaService

Interface for an idea service.

Author:
Ian Hlavats (ian@tarantulaconsulting.com)

Method Summary
 void buildMindMap(Idea idea, org.primefaces.model.mindmap.MindmapNode root)
          Populates a mind map data structure from an Idea using the MindmapNode interface.
 Idea findIdea(java.lang.Integer id)
          Finds an Idea by ID.
 java.util.List<Idea> findIdeas()
          Finds a list of Idea objects.
 Idea saveIdea(Idea newIdea)
          Saves an Idea object.
 

Method Detail

buildMindMap

void buildMindMap(Idea idea,
                  org.primefaces.model.mindmap.MindmapNode root)
Populates a mind map data structure from an Idea using the MindmapNode interface.

Parameters:
idea - The Idea object.
root - The root of the mind map tree.

findIdea

Idea findIdea(java.lang.Integer id)
Finds an Idea by ID.

Parameters:
id - The Idea object's ID.
Returns:
An Idea object.

findIdeas

java.util.List<Idea> findIdeas()
Finds a list of Idea objects.

Returns:

saveIdea

Idea saveIdea(Idea newIdea)
Saves an Idea object.

Parameters:
newIdea - The Idea to save.
Returns:
The saved Idea.