it.eng.spagobi.kpi.goal.dao
Interface IGoalDAO

All Superinterfaces:
ISpagoBIDao
All Known Implementing Classes:
GoalDAOImpl

public interface IGoalDAO
extends ISpagoBIDao


Method Summary
 void eraseGoal(java.lang.Integer grantId)
          Remove a goal
 void ereseGoalKpis(java.lang.Integer goalNodeId)
          Remove the list of kpi model instances linked to a goalNode
 void ereseGoalNode(java.lang.Integer goalNodeId)
          Remove a goal node
 java.util.List<GoalNode> getChildrenNodes(java.lang.Integer nodeId)
          Get the children of a goal node
 java.util.List<GoalKpi> getGoalKpi(java.lang.Integer goalNodeId)
          get the list of kpi model instances linked to a goalNode
 java.util.List<Goal> getGoalsList()
          Loading the list of the goals
 GoalNode getRootNode(java.lang.Integer goalId, java.lang.Integer ouId)
          Get the root node of a goal hierarchy linked to an ou and a grant
 void insertGoal(Goal goal)
          Insert a goal
 void insertGoalKpis(java.util.List<GoalKpi> goalKpis, java.lang.Integer goalNodeId)
          Insert a list of goal kpi model instances
 void insertGoalNode(GoalNode goalNode, java.lang.Integer fatherId)
          Insert a goal node
 void updateGoalName(java.lang.Integer goalId, java.lang.String newName)
          Update a goal node
 void updateGoalNode(GoalNode goalNode)
          Update a goal node
 
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setTenant, setUserID, setUserProfile
 

Method Detail

getGoalsList

java.util.List<Goal> getGoalsList()
Loading the list of the goals

Returns:

eraseGoal

void eraseGoal(java.lang.Integer grantId)
Remove a goal

Parameters:
grantId - the id of the goal to remove

insertGoal

void insertGoal(Goal goal)
Insert a goal

Parameters:
goal - the goal to insert

getRootNode

GoalNode getRootNode(java.lang.Integer goalId,
                     java.lang.Integer ouId)
Get the root node of a goal hierarchy linked to an ou and a grant

Parameters:
goalId - the goal id
ouId - the id of the ou node
Returns:
the root

getChildrenNodes

java.util.List<GoalNode> getChildrenNodes(java.lang.Integer nodeId)
Get the children of a goal node

Parameters:
nodeId - the id of the node
Returns:

insertGoalNode

void insertGoalNode(GoalNode goalNode,
                    java.lang.Integer fatherId)
Insert a goal node

Parameters:
goalNode - the goal node
fatherId - the id of the father node (can be null)

ereseGoalNode

void ereseGoalNode(java.lang.Integer goalNodeId)
Remove a goal node

Parameters:
goalNodeId - the id of the goal node to remove

updateGoalNode

void updateGoalNode(GoalNode goalNode)
Update a goal node

Parameters:
goalNode - the goal node to update

updateGoalName

void updateGoalName(java.lang.Integer goalId,
                    java.lang.String newName)
Update a goal node

Parameters:
goalId - the id of the goal
newName - the new name of the goal

insertGoalKpis

void insertGoalKpis(java.util.List<GoalKpi> goalKpis,
                    java.lang.Integer goalNodeId)
Insert a list of goal kpi model instances

Parameters:
goalKpis - the list to add
goalNodeId - the id of the goal node linked to the kpi model instances

getGoalKpi

java.util.List<GoalKpi> getGoalKpi(java.lang.Integer goalNodeId)
get the list of kpi model instances linked to a goalNode

Parameters:
goalNodeId - the id of the goal node
Returns:

ereseGoalKpis

void ereseGoalKpis(java.lang.Integer goalNodeId)
Remove the list of kpi model instances linked to a goalNode

Parameters:
goalNodeId - the id of the goal node