|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.sakaiproject.tool.assessment.facade.QuestionPoolFacadeQueries
public class QuestionPoolFacadeQueries
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
QuestionPoolFacadeQueries()
|
|
| Method Summary | |
|---|---|
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)
|
QuestionPoolIteratorFacade |
getAllPoolsWithAccess(String agentId)
|
ArrayList |
getBasicInfoOfAllPools(String agentId)
|
Integer |
getCountItemFacades(Long questionPoolId)
|
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 |
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(String 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(String 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)
|
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuestionPoolFacadeQueries()
| Method Detail |
|---|
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 List getAllPoolsByAgent(String agentId)
public QuestionPoolIteratorFacade getAllPools(String agentId)
getAllPools in interface QuestionPoolFacadeQueriesAPIpublic QuestionPoolIteratorFacade getAllPoolsWithAccess(String agentId)
getAllPoolsWithAccess in interface QuestionPoolFacadeQueriesAPIpublic ArrayList getBasicInfoOfAllPools(String agentId)
getBasicInfoOfAllPools in interface QuestionPoolFacadeQueriesAPIpublic List getAllItems(Long questionPoolId)
getAllItems in interface QuestionPoolFacadeQueriesAPI
public List getAllItemFacadesOrderByItemText(Long questionPoolId,
String orderBy,
String ascending)
getAllItemFacadesOrderByItemText in interface QuestionPoolFacadeQueriesAPI
public 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 QuestionPoolFacadeQueriesAPI
public QuestionPoolFacade getPool(Long poolId,
String agent)
getPool in interface QuestionPoolFacadeQueriesAPIpoolid - DOCUMENTATION PENDINGagent - DOCUMENTATION PENDING
public void setPoolAccessType(QuestionPoolData qpp,
String agentId)
setPoolAccessType in interface QuestionPoolFacadeQueriesAPI
public QuestionPoolAccessData getQuestionPoolAccessData(Long poolId,
String agentId)
getQuestionPoolAccessData in interface QuestionPoolFacadeQueriesAPI
public 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 PENDING
public void deletePool(Long poolId,
String agent,
Tree tree)
deletePool in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDING
public void movePool(String agentId,
Long sourcePoolId,
Long destPoolId)
movePool in interface QuestionPoolFacadeQueriesAPI
public boolean isDescendantOf(QuestionPoolFacade destPool,
QuestionPoolFacade sourcePool)
isDescendantOf in interface QuestionPoolFacadeQueriesAPI
public void removeItemFromPool(String itemId,
Long poolId)
removeItemFromPool in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDING
public void moveItemToPool(String 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 List getSubPoolSizes(String agent)
public int getSubPoolSize(Long poolId)
getSubPoolSize in interface QuestionPoolFacadeQueriesAPIpublic boolean hasSubPools(Long poolId)
hasSubPools in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDING
public boolean poolIsUnique(Long questionPoolId,
String title,
Long parentPoolId,
String agentId)
poolIsUnique in interface QuestionPoolFacadeQueriesAPIpublic List getPoolIdsByAgent(String agentId)
getPoolIdsByAgent in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDINGpublic List getPoolIdsByItem(String itemId)
getPoolIdsByItem in interface QuestionPoolFacadeQueriesAPIitemId - DOCUMENTATION PENDINGpoolId - DOCUMENTATION PENDING
public 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 QuestionPoolFacadeQueriesAPI
public HashSet prepareQuestions(Long questionPoolId,
ArrayList itemDataArray)
public Long copyItemFacade(ItemDataIfc itemData)
copyItemFacade in interface QuestionPoolFacadeQueriesAPIpublic ItemFacade copyItemFacade2(ItemDataIfc itemData)
copyItemFacade2 in interface QuestionPoolFacadeQueriesAPIpublic Integer getCountItemFacades(Long questionPoolId)
getCountItemFacades in interface QuestionPoolFacadeQueriesAPI
public void addQuestionPoolAccess(Tree tree,
String user,
Long questionPoolId,
Long accessTypeId)
addQuestionPoolAccess in interface QuestionPoolFacadeQueriesAPI
public void removeQuestionPoolAccess(Tree tree,
String user,
Long questionPoolId,
Long accessTypeId)
removeQuestionPoolAccess in interface QuestionPoolFacadeQueriesAPIpublic List<AgentFacade> getAgentsWithAccess(Long questionPoolId)
getAgentsWithAccess in interface QuestionPoolFacadeQueriesAPI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||