public class QuestionPoolServiceImpl extends Object implements QuestionPoolServiceAPI
| Constructor and Description |
|---|
QuestionPoolServiceImpl()
Creates a new QuestionPoolServiceImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItemToPool(Long itemId,
Long poolId)
Save a question to a pool.
|
void |
copyPool(Tree tree,
String agentId,
Long sourceId,
Long destId,
String prependString1,
String prependString2)
Copy a subpool to a pool.
|
void |
deletePool(Long poolId,
String agentId,
Tree tree)
Delete a pool
|
List |
getAllItems(Long poolId)
Get all scores for a published assessment from the back end.
|
List |
getAllPools(String agentId)
Get all pools from the back end.
|
List |
getBasicInfoOfAllPools(String agentId)
Get basic info for pools(just id and title) for displaying in pulldown .
|
QuestionPoolDataIfc |
getPool(Long poolId,
String agentId)
Get a particular pool from the backend, with all questions.
|
List |
getPoolIdsByAgent(String agentId)
Get pool id's by agent.
|
List |
getPoolIdsByItem(String itemId)
Get a list of pools that have a specific Agent
|
Map |
getQuestionPoolItemMap() |
List |
getSubPools(Long poolId)
Get a list of pools that have a specific parent
|
int |
getSubPoolSize(Long poolId)
Get the size of a subpool.
|
String |
getUserPoolAttachmentReport(String userId,
Long poolId,
String contextToReplace) |
boolean |
hasItem(String itemId,
Long poolId) |
boolean |
hasSubPools(Long poolId)
Checks to see if a pool has subpools
|
boolean |
isDescendantOf(Long poolA,
Long poolB,
String agentId)
Is a pool a descendant of the other?
|
void |
moveItemToPool(Long itemId,
Long sourceId,
Long destId)
Move a question to a pool.
|
void |
movePool(String agentId,
Long sourceId,
Long destId)
Move a subpool to a pool.
|
void |
removeQuestionFromPool(Long questionId,
Long poolId)
removes a Question from the question pool.
|
QuestionPoolDataIfc |
savePool(QuestionPoolDataIfc pool)
Save a question pool.
|
public QuestionPoolServiceImpl()
public List getAllPools(String agentId)
getAllPools in interface QuestionPoolServiceAPIpublic List getBasicInfoOfAllPools(String agentId)
getBasicInfoOfAllPools in interface QuestionPoolServiceAPIpublic QuestionPoolDataIfc getPool(Long poolId, String agentId)
getPool in interface QuestionPoolServiceAPIpublic List getPoolIdsByItem(String itemId)
getPoolIdsByItem in interface QuestionPoolServiceAPIpublic boolean hasItem(String itemId, Long poolId)
hasItem in interface QuestionPoolServiceAPIpublic List getPoolIdsByAgent(String agentId)
getPoolIdsByAgent in interface QuestionPoolServiceAPIpublic List getSubPools(Long poolId)
getSubPools in interface QuestionPoolServiceAPIpublic int getSubPoolSize(Long poolId)
getSubPoolSize in interface QuestionPoolServiceAPIpublic boolean hasSubPools(Long poolId)
hasSubPools in interface QuestionPoolServiceAPIpublic List getAllItems(Long poolId)
getAllItems in interface QuestionPoolServiceAPIpublic void addItemToPool(Long itemId, Long poolId)
addItemToPool in interface QuestionPoolServiceAPIpublic void moveItemToPool(Long itemId, Long sourceId, Long destId)
moveItemToPool in interface QuestionPoolServiceAPIpublic boolean isDescendantOf(Long poolA, Long poolB, String agentId)
isDescendantOf in interface QuestionPoolServiceAPIpublic void movePool(String agentId, Long sourceId, Long destId)
movePool in interface QuestionPoolServiceAPIpublic void deletePool(Long poolId, String agentId, Tree tree)
deletePool in interface QuestionPoolServiceAPIpublic void removeQuestionFromPool(Long questionId, Long poolId)
removeQuestionFromPool in interface QuestionPoolServiceAPIpublic void copyPool(Tree tree, String agentId, Long sourceId, Long destId, String prependString1, String prependString2)
copyPool in interface QuestionPoolServiceAPIpublic QuestionPoolDataIfc savePool(QuestionPoolDataIfc pool)
savePool in interface QuestionPoolServiceAPIpublic Map getQuestionPoolItemMap()
getQuestionPoolItemMap in interface QuestionPoolServiceAPIpublic String getUserPoolAttachmentReport(String userId, Long poolId, String contextToReplace)
getUserPoolAttachmentReport in interface QuestionPoolServiceAPICopyright © 2005–2017 Sakai Project. All rights reserved.