public class DBLTIService extends BaseLTIService implements org.sakaiproject.lti.api.LTIService
DBLTIService extends the BaseLTIService.
Modifier and Type | Field and Description |
---|---|
protected boolean |
m_autoDdl
Configuration: to run the ddl on init or not.
|
protected org.sakaiproject.db.api.SqlService |
m_sql
Dependency: SqlService
|
foorm, LAUNCH_PREFIX, m_eventTrackingService, m_sessionManager, m_usageSessionService, m_userDirectoryService, rb, securityService, siteService, toolManager
BINDING_MODEL, CONTENT_MODEL, DEPLOY_MODEL, LTI_ALLOWCONSUMERKEY, LTI_ALLOWCUSTOM, LTI_ALLOWFRAMEHEIGHT, LTI_ALLOWLAUNCH, LTI_ALLOWLORI, LTI_ALLOWOUTCOMES, LTI_ALLOWPAGETITLE, LTI_ALLOWROSTER, LTI_ALLOWSECRET, LTI_ALLOWSETTINGS, LTI_ALLOWTITLE, LTI_CONSUMERKEY, LTI_CREATED_AT, LTI_CUSTOM, LTI_DEBUG, LTI_DEPLOYMENT_ID, LTI_DESCRIPTION, LTI_ENABLED_CAPABILITY, LTI_FRAMEHEIGHT, LTI_ID, LTI_LAUNCH, LTI_MATCHPATTERN, LTI_NEWPAGE, LTI_NOTE, LTI_OLDPLACEMENTSECRET, LTI_PAGETITLE, LTI_PARAMETER, LTI_PLACEMENT, LTI_PLACEMENTSECRET, LTI_REG_KEY, LTI_REG_LAUNCH, LTI_REG_PASSWORD, LTI_REG_PROFILE, LTI_REG_STATE, LTI_REG_STATE_REGISTERED, LTI_RESOURCE_HANDLER, LTI_SECRET, LTI_SECRET_INCOMPLETE, LTI_SENDEMAILADDR, LTI_SENDNAME, LTI_SETTINGS, LTI_SETTINGS_EXT, LTI_SITE_ID, LTI_SPLASH, LTI_STATUS, LTI_TITLE, LTI_TOOL_ID, LTI_UPDATED_AT, LTI_VERSION, LTI_VERSION_1, LTI_VERSION_2, LTI_VISIBLE, LTI_XMLIMPORT, REFERENCE_ROOT, TOOL_MODEL, WEB_PORTLET
Constructor and Description |
---|
DBLTIService() |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteContentDao(Long key,
String siteId,
boolean isAdminRole,
boolean isMaintainRole) |
boolean |
deleteDeployDao(Long key,
String siteId,
boolean isAdminRole,
boolean isMaintainRole) |
boolean |
deleteProxyBindingDao(Long key) |
boolean |
deleteThingDao(String table,
String[] model,
Long key,
String siteId,
boolean isAdminRole,
boolean isMaintainRole) |
boolean |
deleteToolDao(Long key,
String siteId,
boolean isAdminRole,
boolean isMaintainRole) |
Map<String,Object> |
getContentDao(Long key,
String siteId,
boolean isAdminRole) |
List<Map<String,Object>> |
getContentsDao(String search,
String order,
int first,
int last,
String siteId,
boolean isAdminRole) |
protected Map<String,Object> |
getDeployDao(Long key,
String siteId,
boolean isAdminRole) |
Map<String,Object> |
getDeployForConsumerKeyDao(String consumerKey) |
protected List<Map<String,Object>> |
getDeploysDao(String search,
String order,
int first,
int last,
String siteId,
boolean isAdminRole) |
Map<String,Object> |
getProxyBindingDao(Long key) |
Map<String,Object> |
getProxyBindingDao(Long tool_id,
String siteId) |
List<Map<String,Object>> |
getResultSet(String statement,
Object[] fields,
String[] columns) |
List<Map<String,Object>> |
getThingsDao(String table,
String[] model,
String extraSelect,
String joinClause,
String search,
String groupBy,
String order,
int first,
int last,
String siteId,
boolean isAdminRole) |
protected Map<String,Object> |
getToolDao(Long key,
String siteId,
boolean isAdminRole) |
Map<String,Object> |
getToolForResourceHandlerDao(String resourceType) |
List<Map<String,Object>> |
getToolsDao(String search,
String order,
int first,
int last,
String siteId,
boolean isAdminRole) |
void |
init()
Final initialization, once all dependencies are set.
|
protected Object |
insertContentDao(Properties newProps,
String siteId,
boolean isAdminRole,
boolean isMaintainRole) |
Object |
insertDeployDao(Properties newProps,
String siteId,
boolean isAdminRole,
boolean isMaintainRole) |
Object |
insertProxyBindingDao(Properties newProps) |
Object |
insertThingDao(String table,
String[] formModel,
String[] fullModel,
Object newProps,
String siteId,
boolean isAdminRole,
boolean isMaintainRole) |
Object |
insertToolDao(Object newProps,
String siteId,
boolean isAdminRole,
boolean isMaintainRole) |
void |
setAutoDdl(String value)
Configuration: to run the ddl on init or not.
|
void |
setSqlService(org.sakaiproject.db.api.SqlService service)
Dependency: SqlService.
|
Object |
updateContentDao(Long key,
Object newProps,
String siteId,
boolean isAdminRole,
boolean isMaintainRole) |
Object |
updateDeployDao(Long key,
Object newProps,
String siteId,
boolean isAdminRole,
boolean isMaintainRole) |
Object |
updateProxyBindingDao(Long key,
Object newProps) |
Object |
updateThingDao(String table,
String[] formModel,
String[] fullModel,
Long key,
Object newProps,
String siteId) |
Object |
updateThingDao(String table,
String[] formModel,
String[] fullModel,
Long key,
Object newProps,
String siteId,
boolean isAdminRole,
boolean isMaintainRole) |
Object |
updateToolDao(Long key,
Object newProps,
String siteId,
boolean isAdminRole,
boolean isMaintainRole) |
deleteContent, deleteContentLink, deleteContentLinkDao, deleteContentLinkDao, deleteDeployDao, deleteTool, deleteToolDao, destroy, filterContent, formInput, formInput, formOutput, formOutput, getContent, getContent, getContentDao, getContentDao, getContentLaunch, getContentModel, getContentModel, getContentModelDao, getContents, getContentsDao, getContext, getCorrectProperty, getDeployDao, getDeployModel, getDeploysDao, getInt, getServices, getTool, getTool, getToolDao, getToolModel, getToolModelDao, getToolModelDao, getTools, getToolsDao, insertContent, insertContentDao, insertDeployDao, insertTool, insertTool, insertToolContent, insertToolContent, insertToolContentDao, insertToolDao, insertToolSiteLink, insertToolSiteLink, insertToolSiteLinkDao, isAdmin, isAdmin, isMaintain, isMaintain, setEventTrackingService, setSessionManager, setUsageSessionService, setUserDirectoryService, updateContent, updateContent, updateContent, updateContent, updateContentDao, updateDeployDao, updateTool, updateTool, updateTool, updateToolDao
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteContent, deleteContentLink, deleteDeployDao, deleteTool, filterContent, formInput, formInput, formOutput, formOutput, getContent, getContent, getContentDao, getContentDao, getContentLaunch, getContentModel, getContentModel, getContents, getDeployDao, getDeployModel, getDeploysDao, getTool, getTool, getToolDao, getToolModel, getTools, getToolsDao, insertContent, insertContentDao, insertDeployDao, insertTool, insertTool, insertToolContent, insertToolContent, insertToolDao, insertToolSiteLink, insertToolSiteLink, isAdmin, isMaintain, updateContent, updateContent, updateContent, updateContentDao, updateDeployDao, updateTool, updateTool, updateToolDao
protected org.sakaiproject.db.api.SqlService m_sql
protected boolean m_autoDdl
public void setSqlService(org.sakaiproject.db.api.SqlService service)
service
- The SqlService.public void setAutoDdl(String value)
value
- the auto ddl value.public void init()
init
in class BaseLTIService
public Object insertToolDao(Object newProps, String siteId, boolean isAdminRole, boolean isMaintainRole)
insertToolDao
in class BaseLTIService
protected Map<String,Object> getToolDao(Long key, String siteId, boolean isAdminRole)
getToolDao
in class BaseLTIService
org.sakaiproject.lti.api.LTIService#getToolDao(java.lang.Long, java.lang.String, boolean)
public boolean deleteToolDao(Long key, String siteId, boolean isAdminRole, boolean isMaintainRole)
org.sakaiproject.lti.api.LTIService#deleteToolDao(java.lang.Long, java.lang.String, boolean)
public Object updateToolDao(Long key, Object newProps, String siteId, boolean isAdminRole, boolean isMaintainRole)
updateToolDao
in class BaseLTIService
org.sakaiproject.lti.impl.BaseLTIService#updateToolDao(java.lang.Long,
java.lang.Object, java.lang.String, boolean)
public List<Map<String,Object>> getToolsDao(String search, String order, int first, int last, String siteId, boolean isAdminRole)
getToolsDao
in class BaseLTIService
org.sakaiproject.lti.api.LTIService#getToolsDao(java.lang.String, java.lang.String,
int, int, java.lang.String, boolean)
protected Object insertContentDao(Properties newProps, String siteId, boolean isAdminRole, boolean isMaintainRole)
insertContentDao
in class BaseLTIService
public Map<String,Object> getContentDao(Long key, String siteId, boolean isAdminRole)
getContentDao
in class BaseLTIService
org.sakaiproject.lti.api.LTIService#getContentDao(java.lang.Long, java.lang.String, boolean)
public boolean deleteContentDao(Long key, String siteId, boolean isAdminRole, boolean isMaintainRole)
deleteContentDao
in class BaseLTIService
org.sakaiproject.lti.api.LTIService#deleteContent(java.lang.Long, java.lang.String, boolean)
public Object updateContentDao(Long key, Object newProps, String siteId, boolean isAdminRole, boolean isMaintainRole)
updateContentDao
in class BaseLTIService
org.sakaiproject.lti.impl.BaseLTIService#updateContentDao(java.lang.Long,
java.lang.Object, java.lang.String, boolean)
public List<Map<String,Object>> getContentsDao(String search, String order, int first, int last, String siteId, boolean isAdminRole)
getContentsDao
in class BaseLTIService
org.sakaiproject.lti.api.LTIService#getContentsDao(java.lang.String,
java.lang.String, int, int)
public Object insertDeployDao(Properties newProps, String siteId, boolean isAdminRole, boolean isMaintainRole)
insertDeployDao
in class BaseLTIService
public boolean deleteDeployDao(Long key, String siteId, boolean isAdminRole, boolean isMaintainRole)
org.sakaiproject.lti.api.LTIService#deleteDeployDao(java.lang.Long, java.lang.String, boolean)
public Object updateDeployDao(Long key, Object newProps, String siteId, boolean isAdminRole, boolean isMaintainRole)
updateDeployDao
in class BaseLTIService
org.sakaiproject.lti.impl.BaseLTIService#updateDeployDao(java.lang.Long,
java.lang.Object, java.lang.String, boolean)
protected Map<String,Object> getDeployDao(Long key, String siteId, boolean isAdminRole)
getDeployDao
in class BaseLTIService
org.sakaiproject.lti.api.LTIService#getDeployDao(java.lang.Long, java.lang.String, boolean)
protected List<Map<String,Object>> getDeploysDao(String search, String order, int first, int last, String siteId, boolean isAdminRole)
getDeploysDao
in class BaseLTIService
org.sakaiproject.lti.api.LTIService#getDeploysDao(java.lang.String, java.lang.String,
int, int, java.lang.String, boolean)
public Object insertProxyBindingDao(Properties newProps)
insertProxyBindingDao
in interface org.sakaiproject.lti.api.LTIService
insertProxyBindingDao
in class BaseLTIService
public Object updateProxyBindingDao(Long key, Object newProps)
updateProxyBindingDao
in interface org.sakaiproject.lti.api.LTIService
updateProxyBindingDao
in class BaseLTIService
public boolean deleteProxyBindingDao(Long key)
deleteProxyBindingDao
in interface org.sakaiproject.lti.api.LTIService
deleteProxyBindingDao
in class BaseLTIService
public Map<String,Object> getProxyBindingDao(Long key)
getProxyBindingDao
in interface org.sakaiproject.lti.api.LTIService
getProxyBindingDao
in class BaseLTIService
public Map<String,Object> getProxyBindingDao(Long tool_id, String siteId)
getProxyBindingDao
in interface org.sakaiproject.lti.api.LTIService
getProxyBindingDao
in class BaseLTIService
public Object insertThingDao(String table, String[] formModel, String[] fullModel, Object newProps, String siteId, boolean isAdminRole, boolean isMaintainRole)
table
- The name of the table to useformModel
- The filtered model(required)fullModel
- The full model (or null)newProps
- The key/value pairs for this object.siteId
- The siteId that this item is being inserted into. If isAdmin is true,
this should be null and the siteId is expected be in the newProps variable.isAdminRole
- This is true if we are doing this as an administrator (i.e. we can bypass
rules about SITE_ID being null in the inserted object.isMaintainRole
- This is true if we are doing this as a site maintainer. This will return
null if we are not the site maintainer.public List<Map<String,Object>> getThingsDao(String table, String[] model, String extraSelect, String joinClause, String search, String groupBy, String order, int first, int last, String siteId, boolean isAdminRole)
table
- model
- search
- order
- first
- last
- siteId
- isMaintainRole
- public boolean deleteThingDao(String table, String[] model, Long key, String siteId, boolean isAdminRole, boolean isMaintainRole)
table
- model
- key
- siteId
- isMaintainRole
- public Object updateThingDao(String table, String[] formModel, String[] fullModel, Long key, Object newProps, String siteId)
table
- formModel
- fullModel
- key
- newProps
- siteId
- public Object updateThingDao(String table, String[] formModel, String[] fullModel, Long key, Object newProps, String siteId, boolean isAdminRole, boolean isMaintainRole)
table
- formModel
- fullModel
- key
- newProps
- siteId
- isMaintainRole
- public Map<String,Object> getToolForResourceHandlerDao(String resourceType)
getToolForResourceHandlerDao
in interface org.sakaiproject.lti.api.LTIService
public Map<String,Object> getDeployForConsumerKeyDao(String consumerKey)
getDeployForConsumerKeyDao
in interface org.sakaiproject.lti.api.LTIService
Copyright © 2009-2015 Sakai Project. All Rights Reserved.