public class QuestionPoolService extends Object
| Constructor and Description |
|---|
QuestionPoolService()
Creates a new QuestionPoolService object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItemToPool(Long itemId,
Long poolId)
Save a question to a pool.
|
void |
addQuestionPoolAccess(Tree tree,
String user,
Long questionPoolId,
Long accessTypeId)
Shared Pools with other user
|
Long |
copyItemFacade(ItemDataIfc itemData) |
ItemFacade |
copyItemFacade2(ItemDataIfc itemData) |
void |
copyPool(Tree tree,
String agentId,
Long sourceId,
Long destId,
String prependString1,
String prependString2)
Copy a subpool to a pool.
|
void |
copyQuestion(osid.shared.Id questionId,
osid.shared.Id destId)
Copy a question to a pool
|
void |
copyQuestion(osid.shared.Id questionId,
osid.shared.Id destId,
boolean duplicateCopy)
Copy a question to a pool
|
void |
deletePool(Long poolId,
String agentId,
Tree tree)
Delete a pool
|
String |
exportQuestion(osid.shared.Id questionId) |
List<AgentFacade> |
getAgentsWithAccess(Long questionPoolId) |
List<AgentFacade> |
getAgentsWithoutAccess(Long questionPoolId,
String realmId) |
List |
getAllItems(Long poolId)
Get all scores for a published assessment from the back end.
|
ArrayList |
getAllItemsIds(Long poolId)
Get all scores for a published assessment from the back end.
|
List |
getAllPools()
Get all pools from the back end.
|
QuestionPoolIteratorFacade |
getAllPools(String agentId)
Get all pools from the back end.
|
QuestionPoolIteratorFacade |
getAllPoolsWithAccess(String agentId) |
List |
getBasicInfoOfAllPools(String agentId)
Get basic info for pools(just id and title) for displaying in pulldown .
|
int |
getCountItems(Long poolId)
Get the count of items for one poolId from the back end.
|
Map<Long,Integer> |
getCountItemsForUser(String agentId)
Get the count of items for all pools for one user
|
QuestionPoolFacade |
getPool(Long poolId,
String agentId)
Get a particular pool from the backend, with all questions.
|
List<Long> |
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
|
long |
getSubPoolSize(Long poolId)
Get the size of a subpool.
|
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.
|
boolean |
poolIsUnique(String questionPoolId,
String title,
String parentPoolId,
String agentId) |
void |
removeQuestionFromPool(Long questionId,
Long poolId)
removes a Question from the question pool.
|
void |
removeQuestionPoolAccess(Tree tree,
String user,
Long questionPoolId,
Long accessTypeId) |
QuestionPoolFacade |
savePool(QuestionPoolFacade pool)
Save a question pool.
|
void |
transferPoolsOwnership(String ownerId,
List<Long> poolIds) |
public QuestionPoolService()
public List getAllPools()
public QuestionPoolIteratorFacade getAllPools(String agentId)
public QuestionPoolIteratorFacade getAllPoolsWithAccess(String agentId)
public List getBasicInfoOfAllPools(String agentId)
public QuestionPoolFacade getPool(Long poolId, String agentId)
public List getPoolIdsByItem(String itemId)
public long getSubPoolSize(Long poolId)
public boolean hasSubPools(Long poolId)
public List getAllItems(Long poolId)
public ArrayList getAllItemsIds(Long poolId)
public void moveItemToPool(Long itemId, Long sourceId, Long destId)
public boolean isDescendantOf(Long poolA, Long poolB, String agentId)
public void removeQuestionFromPool(Long questionId, Long poolId)
public void copyPool(Tree tree, String agentId, Long sourceId, Long destId, String prependString1, String prependString2)
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 String exportQuestion(osid.shared.Id questionId)
public QuestionPoolFacade savePool(QuestionPoolFacade pool)
public Map getQuestionPoolItemMap()
public boolean poolIsUnique(String questionPoolId, String title, String parentPoolId, String agentId)
public Long copyItemFacade(ItemDataIfc itemData)
public ItemFacade copyItemFacade2(ItemDataIfc itemData)
public int getCountItems(Long poolId)
public Map<Long,Integer> getCountItemsForUser(String agentId)
public void addQuestionPoolAccess(Tree tree, String user, Long questionPoolId, Long accessTypeId)
public void removeQuestionPoolAccess(Tree tree, String user, Long questionPoolId, Long accessTypeId)
public List<AgentFacade> getAgentsWithAccess(Long questionPoolId)
public List<AgentFacade> getAgentsWithoutAccess(Long questionPoolId, String realmId)
Copyright © 2003–2020 Sakai Project. All rights reserved.