com.mycompany.service.impl
Class IdeaServiceImpl

java.lang.Object
  extended by com.mycompany.service.impl.AbstractService
      extended by com.mycompany.service.impl.IdeaServiceImpl
All Implemented Interfaces:
IdeaService

@Named(value="ideaService")
public class IdeaServiceImpl
extends AbstractService
implements IdeaService


Constructor Summary
IdeaServiceImpl()
           
 
Method Summary
 void buildMindMap(Idea parentIdea, org.primefaces.model.mindmap.MindmapNode parentNode)
          This method uses recursion to build the mind map data structure.
 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 idea)
          Saves an Idea object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdeaServiceImpl

public IdeaServiceImpl()
Method Detail

buildMindMap

public void buildMindMap(Idea parentIdea,
                         org.primefaces.model.mindmap.MindmapNode parentNode)
This method uses recursion to build the mind map data structure.

Specified by:
buildMindMap in interface IdeaService
Parameters:
parentIdea - The parent Idea.
parentNode - The parent MindmapNode.

findIdea

public Idea findIdea(java.lang.Integer id)
Description copied from interface: IdeaService
Finds an Idea by ID.

Specified by:
findIdea in interface IdeaService
Parameters:
id - The Idea object's ID.
Returns:
An Idea object.

findIdeas

public java.util.List<Idea> findIdeas()
Description copied from interface: IdeaService
Finds a list of Idea objects.

Specified by:
findIdeas in interface IdeaService
Returns:

saveIdea

public Idea saveIdea(Idea idea)
Description copied from interface: IdeaService
Saves an Idea object.

Specified by:
saveIdea in interface IdeaService
Parameters:
idea - The Idea to save.
Returns:
The saved Idea.