| java.lang.Object org.sakaiproject.tool.assessment.shared.impl.questionpool.QuestionPoolServiceImpl
QuestionPoolServiceImpl | public class QuestionPoolServiceImpl implements QuestionPoolServiceAPI(Code) | | The QuestionPoolServiceAPI declares a shared interface to control question
pool information.
author: Ed Smiley |
Method Summary | |
public void | addItemToPool(String itemId, Long poolId) Save a question to a pool. | public void | copyPool(Tree tree, String agentId, Long sourceId, Long destId, String prependString1, String prependString2) Copy a subpool to a pool. | public void | deletePool(Long poolId, String agentId, Tree tree) | public List | getAllItems(Long poolId) Get all scores for a published assessment from the back end. | public List | getAllItemsSorted(Long poolId, String orderBy, String ascending) | public List | getAllPools(String agentId) Get all pools from the back end. | public List | getBasicInfoOfAllPools(String agentId) Get basic info for pools(just id and title) for displaying in pulldown . | public QuestionPoolDataIfc | getPool(Long poolId, String agentId) Get a particular pool from the backend, with all questions. | public List | getPoolIdsByAgent(String agentId) Get pool id's by agent. | public List | getPoolIdsByItem(String itemId) | public Map | getQuestionPoolItemMap() | public int | getSubPoolSize(Long poolId) Get the size of a subpool. | public List | getSubPools(Long poolId) | public boolean | hasItem(String itemId, Long poolId) | public boolean | hasSubPools(Long poolId) | public boolean | isDescendantOf(Long poolA, Long poolB, String agentId) | public void | moveItemToPool(String itemId, Long sourceId, Long destId) Move a question to a pool. | public void | movePool(String agentId, Long sourceId, Long destId) Move a subpool to a pool. | public void | removeQuestionFromPool(String questionId, Long poolId) removes a Question from the question pool. | public QuestionPoolDataIfc | savePool(QuestionPoolDataIfc pool) Save a question pool. |
QuestionPoolServiceImpl | public QuestionPoolServiceImpl()(Code) | | Creates a new QuestionPoolServiceImpl object.
|
addItemToPool | public void addItemToPool(String itemId, Long poolId)(Code) | | Save a question to a pool.
|
getAllItems | public List getAllItems(Long poolId)(Code) | | Get all scores for a published assessment from the back end.
|
getAllItemsSorted | public List getAllItemsSorted(Long poolId, String orderBy, String ascending)(Code) | | Get all items sorted by orderby
|
getAllPools | public List getAllPools(String agentId)(Code) | | Get all pools from the back end.
|
getBasicInfoOfAllPools | public List getBasicInfoOfAllPools(String agentId)(Code) | | Get basic info for pools(just id and title) for displaying in pulldown .
|
getPoolIdsByAgent | public List getPoolIdsByAgent(String agentId)(Code) | | Get pool id's by agent.
|
getPoolIdsByItem | public List getPoolIdsByItem(String itemId)(Code) | | Get a list of pools that have a specific Agent
|
getQuestionPoolItemMap | public Map getQuestionPoolItemMap()(Code) | | |
getSubPoolSize | public int getSubPoolSize(Long poolId)(Code) | | Get the size of a subpool.
|
getSubPools | public List getSubPools(Long poolId)(Code) | | Get a list of pools that have a specific parent
|
hasSubPools | public boolean hasSubPools(Long poolId)(Code) | | Checks to see if a pool has subpools
|
isDescendantOf | public boolean isDescendantOf(Long poolA, Long poolB, String agentId)(Code) | | Is a pool a descendant of the other?
|
moveItemToPool | public void moveItemToPool(String itemId, Long sourceId, Long destId)(Code) | | Move a question to a pool.
|
movePool | public void movePool(String agentId, Long sourceId, Long destId)(Code) | | Move a subpool to a pool.
|
removeQuestionFromPool | public void removeQuestionFromPool(String questionId, Long poolId)(Code) | | removes a Question from the question pool. This does not *delete* the question itself
|
|
|