public interface QuestionPoolFacadeQueriesAPI
| Modifier and Type | Method and Description |
|---|---|
Long |
add() |
void |
addItemsToSection(Collection ids,
long sectionId)
DOCUMENTATION PENDING
|
void |
addItemToPool(QuestionPoolItemData qpi)
add 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 pool to a new location.
|
void |
deletePool(Long poolId,
String agent,
Tree tree)
Delete pool and questions attached to it plus any subpool under it
|
List<AgentFacade> |
getAgentsWithAccess(Long questionPoolId) |
List |
getAllItemFacades(Long questionPoolId) |
List |
getAllItemFacadesOrderByItemText(Long questionPoolId,
String orderBy,
String ascending) |
List |
getAllItemFacadesOrderByItemType(Long questionPoolId,
String orderBy,
String ascending) |
List |
getAllItems(Long questionPoolId) |
List |
getAllItemsIds(Long questionPoolId) |
List |
getAllPools()
Get a list of all the pools in the site.
|
QuestionPoolIteratorFacade |
getAllPools(String agentId)
Get all the pools that the agent has access to.
|
QuestionPoolIteratorFacade |
getAllPoolsWithAccess(String agentId) |
List<QuestionPoolFacade> |
getBasicInfoOfAllPools(String agentId) |
Integer |
getCountItemFacades(Long questionPoolId) |
Map<Long,Integer> |
getCountItemFacadesForUser(String agentId) |
ItemFacade |
getItem(String id)
This method returns an ItemFacade that we can use to construct our ItemImpl
|
QuestionPoolFacade |
getPool(Long poolId,
String agent)
Get a pool based on poolId.
|
QuestionPoolFacade |
getPoolById(Long questionPoolId) |
List<Long> |
getPoolIdsByAgent(String agentId)
Return a list of questionPoolId (java.lang.Long)
|
List |
getPoolIdsByItem(String itemId)
Return a list of questionPoolId (java.lang.Long)
|
QuestionPoolAccessData |
getQuestionPoolAccessData(Long poolId,
String agentId) |
IdImpl |
getQuestionPoolId(long id) |
IdImpl |
getQuestionPoolId(Long id) |
IdImpl |
getQuestionPoolId(String id) |
Map |
getQuestionPoolItemMap() |
List |
getSubPools(Long poolId)
Get all the children pools of a pool.
|
long |
getSubPoolSize(Long poolId) |
List<Long[]> |
getSubPoolSizes(String agent)
get number of subpools for each pool in a single query.
|
boolean |
hasSubPools(Long poolId)
DOCUMENTATION PENDING
|
boolean |
isDescendantOf(QuestionPoolFacade destPool,
QuestionPoolFacade sourcePool)
Is destination a descendant of the source?
|
void |
moveItemToPool(Long itemId,
Long sourceId,
Long destId)
DOCUMENTATION PENDING
|
void |
movePool(String agentId,
Long sourcePoolId,
Long destPoolId)
Move pool under another pool.
|
boolean |
poolIsUnique(Long questionPoolId,
String title,
Long parentPoolId,
String agentId) |
void |
removeItemFromPool(Long itemId,
Long poolId)
DOCUMENTATION PENDING
|
void |
removeQuestionPoolAccess(Tree tree,
String user,
Long questionPoolId,
Long accessTypeId) |
QuestionPoolFacade |
savePool(QuestionPoolFacade pool)
DOCUMENTATION PENDING
|
void |
setPoolAccessType(QuestionPoolData qpp,
String agentId) |
void |
transferPoolsOwnership(String ownerId,
List<Long> poolIds) |
IdImpl getQuestionPoolId(long id)
List getAllPools()
QuestionPoolIteratorFacade getAllPools(String agentId)
QuestionPoolIteratorFacade getAllPoolsWithAccess(String agentId)
List<QuestionPoolFacade> getBasicInfoOfAllPools(String agentId)
boolean poolIsUnique(Long questionPoolId, String title, Long parentPoolId, String agentId)
List getAllItemFacadesOrderByItemText(Long questionPoolId, String orderBy, String ascending)
List getAllItemFacadesOrderByItemType(Long questionPoolId, String orderBy, String ascending)
ItemFacade getItem(String id)
QuestionPoolFacade getPool(Long poolId, String agent)
poolid - DOCUMENTATION PENDINGagent - DOCUMENTATION PENDINGvoid setPoolAccessType(QuestionPoolData qpp, String agentId)
QuestionPoolAccessData getQuestionPoolAccessData(Long poolId, String agentId)
void addItemsToSection(Collection ids, long sectionId)
ids - DOCUMENTATION PENDINGsectionId - DOCUMENTATION PENDINGvoid addItemToPool(QuestionPoolItemData qpi)
itemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGvoid deletePool(Long poolId, String agent, Tree tree)
itemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGvoid movePool(String agentId, Long sourcePoolId, Long destPoolId)
boolean isDescendantOf(QuestionPoolFacade destPool, QuestionPoolFacade sourcePool)
void removeItemFromPool(Long itemId, Long poolId)
itemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGvoid moveItemToPool(Long itemId, Long sourceId, Long destId)
itemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGQuestionPoolFacade savePool(QuestionPoolFacade pool)
pool - DOCUMENTATION PENDINGList getSubPools(Long poolId)
itemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGlong getSubPoolSize(Long poolId)
List<Long[]> getSubPoolSizes(String agent)
agent - boolean hasSubPools(Long poolId)
itemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGList<Long> getPoolIdsByAgent(String agentId)
itemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGList getPoolIdsByItem(String itemId)
itemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGvoid copyPool(Tree tree, String agentId, Long sourceId, Long destId, String prependString1, String prependString2)
Long add()
QuestionPoolFacade getPoolById(Long questionPoolId)
Map getQuestionPoolItemMap()
Long copyItemFacade(ItemDataIfc itemData)
ItemFacade copyItemFacade2(ItemDataIfc itemData)
void addQuestionPoolAccess(Tree tree, String user, Long questionPoolId, Long accessTypeId)
void removeQuestionPoolAccess(Tree tree, String user, Long questionPoolId, Long accessTypeId)
List<AgentFacade> getAgentsWithAccess(Long questionPoolId)
Copyright © 2003–2021 Sakai Project. All rights reserved.