| org.sakaiproject.tool.assessment.facade.QuestionPoolFacadeQueries
Method Summary | |
public Long | add() | public void | addItemToPool(QuestionPoolItemData qpi) | public void | addItemsToSection(Collection ids, long sectionId) | public Long | copyItemFacade(ItemDataIfc itemData) | public ItemFacade | copyItemFacade2(ItemDataIfc itemData) | public void | copyPool(Tree tree, String agentId, Long sourceId, Long destId, String prependString1, String prependString2) Copy a pool to a new location. | public void | deletePool(Long poolId, String agent, Tree tree) | public List | getAllItemFacades(Long questionPoolId) | public List | getAllItemFacadesOrderByItemText(Long questionPoolId, String orderBy, String ascending) | public List | getAllItemFacadesOrderByItemType(Long questionPoolId, String orderBy, String ascending) | public List | getAllItems(Long questionPoolId) | public List | getAllPools() Get a list of all the pools in the site. | public QuestionPoolIteratorFacade | getAllPools(String agentId) Get all the pools that the agent has access to. | public List | getAllPoolsByAgent(String agentId) | public ArrayList | getBasicInfoOfAllPools(String agentId) | public ItemFacade | getItem(String id) | public QuestionPoolFacade | getPool(Long poolId, String agent) Get a pool based on poolId. | public QuestionPoolFacade | getPoolById(Long questionPoolId) | public List | getPoolIdsByAgent(String agentId) | public List | getPoolIdsByItem(String itemId) | public QuestionPoolAccessData | getQuestionPoolAccessData(Long poolId, String agentId) | public IdImpl | getQuestionPoolId(String id) | public IdImpl | getQuestionPoolId(Long id) | public IdImpl | getQuestionPoolId(long id) | public HashMap | getQuestionPoolItemMap() | public int | getSubPoolSize(Long poolId) | public List | getSubPools(Long poolId) Get all the children pools of a pool. | public boolean | hasSubPools(Long poolId) | public boolean | isDescendantOf(QuestionPoolFacade destPool, QuestionPoolFacade sourcePool) | public void | moveItemToPool(String itemId, Long sourceId, Long destId) | public void | movePool(String agentId, Long sourcePoolId, Long destPoolId) Move pool under another pool. | public boolean | poolIsUnique(Long questionPoolId, String title, Long parentPoolId, String agentId) | public HashSet | prepareQuestions(Long questionPoolId, ArrayList itemDataArray) | public void | removeItemFromPool(String itemId, Long poolId) | public QuestionPoolFacade | savePool(QuestionPoolFacade pool) | public void | setPoolAccessType(QuestionPoolData qpp, String agentId) |
QuestionPoolFacadeQueries | public QuestionPoolFacadeQueries()(Code) | | |
addItemToPool | public void addItemToPool(QuestionPoolItemData qpi)(Code) | | add a question to a pool
Parameters: itemId - DOCUMENTATION PENDING Parameters: poolId - DOCUMENTATION PENDING |
addItemsToSection | public void addItemsToSection(Collection ids, long sectionId)(Code) | | DOCUMENTATION PENDING
Parameters: ids - DOCUMENTATION PENDING Parameters: sectionId - DOCUMENTATION PENDING |
deletePool | public void deletePool(Long poolId, String agent, Tree tree)(Code) | | Delete pool and questions attached to it plus any subpool under it
Parameters: itemId - DOCUMENTATION PENDING Parameters: poolId - DOCUMENTATION PENDING |
getAllItemFacades | public List getAllItemFacades(Long questionPoolId)(Code) | | |
getAllItemFacadesOrderByItemText | public List getAllItemFacadesOrderByItemText(Long questionPoolId, String orderBy, String ascending)(Code) | | |
getAllItemFacadesOrderByItemType | public List getAllItemFacadesOrderByItemType(Long questionPoolId, String orderBy, String ascending)(Code) | | |
getAllPools | public List getAllPools()(Code) | | Get a list of all the pools in the site. Note that questions in each pool will not
be populated. We must keep this list updated.
|
getAllPools | public QuestionPoolIteratorFacade getAllPools(String agentId)(Code) | | Get all the pools that the agent has access to. The easiest way seems to be
#1. get all the existing pool
#2. get all the QuestionPoolAccessData record of the agent
#3. go through the existing pools and check it against the QuestionPoolAccessData (qpa) record to see if
the agent is granted access to it. qpa record (if exists) always trumps the default access right set
up for a pool
e.g. if the defaultAccessType for a pool is ACCESS_DENIED but the qpa record say ADMIN, then access=ADMIN
e.g. if the defaultAccessType for a pool is ADMIN but the qpa record say ACCESS_DENIED, then access=ACCESS_DENIED
e.g. if no qpa record exists, then access rule will follow the defaultAccessType set by the pool
|
getItem | public ItemFacade getItem(String id)(Code) | | This method returns an ItemFacade that we can use to construct our ItemImpl
|
getPool | public QuestionPoolFacade getPool(Long poolId, String agent)(Code) | | Get a pool based on poolId. I am not sure why agent is not used though is being parsed.
Parameters: poolid - DOCUMENTATION PENDING Parameters: agent - DOCUMENTATION PENDING DOCUMENTATION PENDING |
getPoolIdsByAgent | public List getPoolIdsByAgent(String agentId)(Code) | | Return a list of questionPoolId (java.lang.Long)
Parameters: itemId - DOCUMENTATION PENDING Parameters: poolId - DOCUMENTATION PENDING |
getPoolIdsByItem | public List getPoolIdsByItem(String itemId)(Code) | | Return a list of questionPoolId (java.lang.Long)
Parameters: itemId - DOCUMENTATION PENDING Parameters: poolId - DOCUMENTATION PENDING |
getQuestionPoolId | public IdImpl getQuestionPoolId(long id)(Code) | | |
getQuestionPoolItemMap | public HashMap getQuestionPoolItemMap()(Code) | | |
getSubPoolSize | public int getSubPoolSize(Long poolId)(Code) | | |
getSubPools | public List getSubPools(Long poolId)(Code) | | Get all the children pools of a pool. Return a list of QuestionPoolData
should return QuestionPool instead - need fixing, daisyf
Parameters: itemId - DOCUMENTATION PENDING Parameters: poolId - DOCUMENTATION PENDING |
hasSubPools | public boolean hasSubPools(Long poolId)(Code) | | DOCUMENTATION PENDING
Parameters: itemId - DOCUMENTATION PENDING Parameters: poolId - DOCUMENTATION PENDING |
moveItemToPool | public void moveItemToPool(String itemId, Long sourceId, Long destId)(Code) | | DOCUMENTATION PENDING
Parameters: itemId - DOCUMENTATION PENDING Parameters: poolId - DOCUMENTATION PENDING |
movePool | public void movePool(String agentId, Long sourcePoolId, Long destPoolId)(Code) | | Move pool under another pool. The dest pool must not be the
descendant of the source nor can they be the same pool .
|
removeItemFromPool | public void removeItemFromPool(String itemId, Long poolId)(Code) | | DOCUMENTATION PENDING
Parameters: itemId - DOCUMENTATION PENDING Parameters: poolId - DOCUMENTATION PENDING |
|
|