| java.lang.Object org.sakaiproject.tool.assessment.services.QuestionPoolService
QuestionPoolService | public class QuestionPoolService (Code) | | The QuestionPoolService calls the service locator to reach the
manager on the back end.
author: Rachel Gollub |
Method Summary | |
public void | addItemToPool(String itemId, Long poolId) Save a question to a pool. | public Long | copyItemFacade(ItemDataIfc itemData) | public void | copyPool(Tree tree, String agentId, Long sourceId, Long destId, String prependString1, String prependString2) Copy a subpool to a pool. | public void | copyQuestion(osid.shared.Id questionId, osid.shared.Id destId) | public void | copyQuestion(osid.shared.Id questionId, osid.shared.Id destId, boolean duplicateCopy) | public void | deletePool(Long poolId, String agentId, Tree tree) | public String | exportQuestion(osid.shared.Id questionId) | public ArrayList | getAllItems(Long poolId) Get all scores for a published assessment from the back end. | public ArrayList | getAllItemsSorted(Long poolId, String orderBy, String ascending) | public QuestionPoolIteratorFacade | getAllPools(String agentId) Get all pools from the back end. | public ArrayList | getBasicInfoOfAllPools(String agentId) Get basic info for pools(just id and title) for displaying in pulldown . | public QuestionPoolFacade | 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 HashMap | 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 boolean | poolIsUnique(String questionPoolId, String title, String parentPoolId, String agentId) | public void | removeQuestionFromPool(String questionId, Long poolId) removes a Question from the question pool. | public QuestionPoolFacade | savePool(QuestionPoolFacade pool) Save a question pool. |
QuestionPoolService | public QuestionPoolService()(Code) | | Creates a new QuestionPoolService object.
|
addItemToPool | public void addItemToPool(String itemId, Long poolId)(Code) | | Save a question to a pool.
|
copyQuestion | public void copyQuestion(osid.shared.Id questionId, osid.shared.Id destId)(Code) | | Copy a question to a pool
|
copyQuestion | public void copyQuestion(osid.shared.Id questionId, osid.shared.Id destId, boolean duplicateCopy)(Code) | | Copy a question to a pool
|
exportQuestion | public String exportQuestion(osid.shared.Id questionId)(Code) | | |
getAllItems | public ArrayList getAllItems(Long poolId)(Code) | | Get all scores for a published assessment from the back end.
|
getBasicInfoOfAllPools | public ArrayList 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 HashMap 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
|
|
|