public class QuestionPoolFacadeQueries extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements QuestionPoolFacadeQueriesAPI
| Constructor and Description |
|---|
QuestionPoolFacadeQueries() |
| 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 |
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.
|
List |
getAllPoolsByAgent(String agentId) |
List<QuestionPoolData> |
getAllPoolsForTransfer(List<Long> selectedPoolIds) |
QuestionPoolIteratorFacade |
getAllPoolsWithAccess(String agentId) |
ArrayList<QuestionPoolFacade> |
getBasicInfoOfAllPools(String agentId) |
Integer |
getCountItemFacades(Long questionPoolId) |
HashMap<Long,Integer> |
getCountItemFacadesForUser(String agentId)
Fetch a HashMap of question pool ids and counts for all pools that a user has access to.
|
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) |
HashMap |
getQuestionPoolItemMap() |
List |
getSubPools(Long poolId)
Get all the children pools of a pool.
|
int |
getSubPoolSize(Long poolId) |
List |
getSubPoolSizes(String agent) |
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) |
HashSet |
prepareQuestions(Long questionPoolId,
ArrayList itemDataArray) |
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> transferPoolIds) |
public IdImpl getQuestionPoolId(String id)
getQuestionPoolId in interface QuestionPoolFacadeQueriesAPIpublic IdImpl getQuestionPoolId(Long id)
getQuestionPoolId in interface QuestionPoolFacadeQueriesAPIpublic IdImpl getQuestionPoolId(long id)
getQuestionPoolId in interface QuestionPoolFacadeQueriesAPIpublic List getAllPools()
getAllPools in interface QuestionPoolFacadeQueriesAPIpublic QuestionPoolIteratorFacade getAllPools(String agentId)
getAllPools in interface QuestionPoolFacadeQueriesAPIpublic QuestionPoolIteratorFacade getAllPoolsWithAccess(String agentId)
getAllPoolsWithAccess in interface QuestionPoolFacadeQueriesAPIpublic ArrayList<QuestionPoolFacade> getBasicInfoOfAllPools(String agentId)
getBasicInfoOfAllPools in interface QuestionPoolFacadeQueriesAPIpublic List getAllItems(Long questionPoolId)
getAllItems in interface QuestionPoolFacadeQueriesAPIpublic List getAllItemFacadesOrderByItemText(Long questionPoolId, String orderBy, String ascending)
getAllItemFacadesOrderByItemText in interface QuestionPoolFacadeQueriesAPIpublic List getAllItemFacadesOrderByItemType(Long questionPoolId, String orderBy, String ascending)
getAllItemFacadesOrderByItemType in interface QuestionPoolFacadeQueriesAPIpublic List getAllItemFacades(Long questionPoolId)
getAllItemFacades in interface QuestionPoolFacadeQueriesAPIpublic ItemFacade getItem(String id)
getItem in interface QuestionPoolFacadeQueriesAPIpublic QuestionPoolFacade getPool(Long poolId, String agent)
getPool in interface QuestionPoolFacadeQueriesAPIpoolid - DOCUMENTATION PENDINGagent - DOCUMENTATION PENDINGpublic void setPoolAccessType(QuestionPoolData qpp, String agentId)
setPoolAccessType in interface QuestionPoolFacadeQueriesAPIpublic QuestionPoolAccessData getQuestionPoolAccessData(Long poolId, String agentId)
getQuestionPoolAccessData in interface QuestionPoolFacadeQueriesAPIpublic void addItemsToSection(Collection ids, long sectionId)
addItemsToSection in interface QuestionPoolFacadeQueriesAPIids - DOCUMENTATION PENDINGsectionId - DOCUMENTATION PENDINGpublic void addItemToPool(QuestionPoolItemData qpi)
addItemToPool in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGpublic void deletePool(Long poolId, String agent, Tree tree)
deletePool in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGpublic void movePool(String agentId, Long sourcePoolId, Long destPoolId)
movePool in interface QuestionPoolFacadeQueriesAPIpublic boolean isDescendantOf(QuestionPoolFacade destPool, QuestionPoolFacade sourcePool)
isDescendantOf in interface QuestionPoolFacadeQueriesAPIpublic void removeItemFromPool(Long itemId, Long poolId)
removeItemFromPool in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGpublic void moveItemToPool(Long itemId, Long sourceId, Long destId)
moveItemToPool in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGpublic QuestionPoolFacade savePool(QuestionPoolFacade pool)
savePool in interface QuestionPoolFacadeQueriesAPIpool - DOCUMENTATION PENDINGpublic List getSubPools(Long poolId)
getSubPools in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGpublic int getSubPoolSize(Long poolId)
getSubPoolSize in interface QuestionPoolFacadeQueriesAPIpublic boolean hasSubPools(Long poolId)
hasSubPools in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGpublic boolean poolIsUnique(Long questionPoolId, String title, Long parentPoolId, String agentId)
poolIsUnique in interface QuestionPoolFacadeQueriesAPIpublic List<Long> getPoolIdsByAgent(String agentId)
getPoolIdsByAgent in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGpublic List getPoolIdsByItem(String itemId)
getPoolIdsByItem in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGpublic void copyPool(Tree tree, String agentId, Long sourceId, Long destId, String prependString1, String prependString2)
copyPool in interface QuestionPoolFacadeQueriesAPIpublic Long add()
add in interface QuestionPoolFacadeQueriesAPIpublic QuestionPoolFacade getPoolById(Long questionPoolId)
getPoolById in interface QuestionPoolFacadeQueriesAPIpublic HashMap getQuestionPoolItemMap()
getQuestionPoolItemMap in interface QuestionPoolFacadeQueriesAPIpublic Long copyItemFacade(ItemDataIfc itemData)
copyItemFacade in interface QuestionPoolFacadeQueriesAPIpublic ItemFacade copyItemFacade2(ItemDataIfc itemData)
copyItemFacade2 in interface QuestionPoolFacadeQueriesAPIpublic Integer getCountItemFacades(Long questionPoolId)
getCountItemFacades in interface QuestionPoolFacadeQueriesAPIpublic HashMap<Long,Integer> getCountItemFacadesForUser(String agentId)
getCountItemFacadesForUser in interface QuestionPoolFacadeQueriesAPIagentId - Sakai internal user id. Most likely the currently logged in userpublic void addQuestionPoolAccess(Tree tree, String user, Long questionPoolId, Long accessTypeId)
addQuestionPoolAccess in interface QuestionPoolFacadeQueriesAPIpublic void removeQuestionPoolAccess(Tree tree, String user, Long questionPoolId, Long accessTypeId)
removeQuestionPoolAccess in interface QuestionPoolFacadeQueriesAPIpublic List<AgentFacade> getAgentsWithAccess(Long questionPoolId)
getAgentsWithAccess in interface QuestionPoolFacadeQueriesAPIpublic List<QuestionPoolData> getAllPoolsForTransfer(List<Long> selectedPoolIds)
public void transferPoolsOwnership(String ownerId, List<Long> transferPoolIds)
transferPoolsOwnership in interface QuestionPoolFacadeQueriesAPICopyright © 2005–2017 Sakai Project. All rights reserved.