org.sakaiproject.lti.impl
Class DBLTIService

java.lang.Object
  extended by org.sakaiproject.lti.impl.BaseLTIService
      extended by org.sakaiproject.lti.impl.DBLTIService
All Implemented Interfaces:
LTIService

public class DBLTIService
extends BaseLTIService
implements LTIService

DBLTIService extends the BaseLTIService.


Field Summary
protected  boolean m_autoDdl
          Configuration: to run the ddl on init or not.
protected  org.sakaiproject.db.api.SqlService m_sql
          Dependency: SqlService
 
Fields inherited from class org.sakaiproject.lti.impl.BaseLTIService
foorm, LAUNCH_PREFIX, m_eventTrackingService, m_sessionManager, m_usageSessionService, m_userDirectoryService, rb, securityService, siteService, toolManager
 
Fields inherited from interface org.sakaiproject.lti.api.LTIService
CONTENT_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_DESCRIPTION, LTI_FRAMEHEIGHT, LTI_ID, LTI_LAUNCH, LTI_MATCHPATTERN, LTI_NEWPAGE, LTI_NOTE, LTI_OLDPLACEMENTSECRET, LTI_PAGETITLE, LTI_PLACEMENT, LTI_PLACEMENTSECRET, LTI_SECRET, LTI_SECRET_INCOMPLETE, LTI_SENDEMAILADDR, LTI_SENDNAME, LTI_SETTINGS, LTI_SITE_ID, LTI_SPLASH, LTI_STATUS, LTI_TITLE, LTI_TOOL_ID, LTI_UPATED_AT, LTI_VISIBLE, LTI_XMLIMPORT, MAPPING_MODEL, REFERENCE_ROOT, TOOL_MODEL, WEB_PORTLET
 
Constructor Summary
DBLTIService()
           
 
Method Summary
 String checkMapping(String url)
           
 boolean deleteContentDao(Long key, String siteId, boolean isMaintainRole)
          
 boolean deleteMapping(Long key)
          
 boolean deleteThingDao(String table, String[] model, Long key, String siteId, boolean isMaintainRole)
           
 boolean deleteToolDao(Long key, String siteId, boolean isMaintainRole)
          
 Map<String,Object> getContentDao(Long key, String siteId, boolean isMaintainRole)
          
 List<Map<String,Object>> getContentsDao(String search, String order, int first, int last, String siteId, boolean isMaintainRole)
          
 Map<String,Object> getMapping(Long key)
          
 List<Map<String,Object>> getMappings(String search, String order, int first, int last)
          
 List<Map<String,Object>> getResultSet(String statement, Object[] fields, String[] columns)
           
 List<Map<String,Object>> getThingsDao(String table, String[] model, String search, String order, int first, int last, String siteId, boolean isMaintainRole)
           
protected  Map<String,Object> getToolDao(Long key, String siteId, boolean isMaintainRole)
          
 List<Map<String,Object>> getToolsDao(String search, String order, int first, int last, String siteId, boolean isMaintainRole)
          
 void init()
          Final initialization, once all dependencies are set.
protected  Object insertContentDao(Properties newProps, String siteId, boolean isMaintainRole)
           
 Object insertMapping(Properties newProps)
           
 Object insertThingDao(String table, String[] formModel, String[] fullModel, Properties newProps, String siteId, boolean isMaintainRole)
           
 Object insertToolDao(Properties newProps, String siteId, 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 isMaintainRole)
          
 Object updateMapping(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 isMaintainRole)
           
 Object updateToolDao(Long key, Object newProps, String siteId, boolean isMaintainRole)
          
 
Methods inherited from class org.sakaiproject.lti.impl.BaseLTIService
deleteContent, deleteContentLink, deleteContentLinkDao, deleteContentLinkDao, deleteTool, deleteToolDao, destroy, filterContent, formInput, formInput, formOutput, formOutput, getContent, getContent, getContentDao, getContentDao, getContentLaunch, getContentModel, getContentModel, getContentModelDao, getContentModelDao, getContents, getContentsDao, getContext, getCorrectProperty, getInt, getMappingModel, getServices, getTool, getTool, getToolDao, getToolModel, getToolModelDao, getToolModelDao, getTools, getToolsDao, insertContent, insertContentDao, insertTool, insertToolContent, insertToolContent, insertToolContentDao, insertToolContentDao, insertToolDao, insertToolSiteLink, insertToolSiteLink, insertToolSiteLinkDao, isAdmin, isAdmin, isAdmin, isMaintain, isMaintain, setEventTrackingService, setSessionManager, setUsageSessionService, setUserDirectoryService, updateContent, updateContent, updateContent, updateContent, updateContentDao, updateMapping, updateMapping, updateTool, updateTool, updateTool, updateToolDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sakaiproject.lti.api.LTIService
deleteContent, deleteContentLink, deleteTool, filterContent, formInput, formInput, formOutput, formOutput, getContent, getContent, getContentDao, getContentDao, getContentLaunch, getContentModel, getContentModel, getContents, getMappingModel, getTool, getTool, getToolDao, getToolModel, getTools, getToolsDao, insertContent, insertContentDao, insertTool, insertToolContent, insertToolContent, insertToolDao, insertToolSiteLink, insertToolSiteLink, isAdmin, isMaintain, updateContent, updateContent, updateContent, updateContentDao, updateMapping, updateMapping, updateTool, updateTool
 

Field Detail

m_sql

protected org.sakaiproject.db.api.SqlService m_sql
Dependency: SqlService


m_autoDdl

protected boolean m_autoDdl
Configuration: to run the ddl on init or not.

Constructor Detail

DBLTIService

public DBLTIService()
Method Detail

setSqlService

public void setSqlService(org.sakaiproject.db.api.SqlService service)
Dependency: SqlService.

Parameters:
service - The SqlService.

setAutoDdl

public void setAutoDdl(String value)
Configuration: to run the ddl on init or not.

Parameters:
value - the auto ddl value.

init

public void init()
Final initialization, once all dependencies are set.

Overrides:
init in class BaseLTIService

insertMapping

public Object insertMapping(Properties newProps)
Specified by:
insertMapping in interface LTIService

getMapping

public Map<String,Object> getMapping(Long key)

Specified by:
getMapping in interface LTIService
See Also:
LTIService.getMapping(java.lang.Long)

deleteMapping

public boolean deleteMapping(Long key)

Specified by:
deleteMapping in interface LTIService
See Also:
LTIService.deleteMapping(java.lang.Long)

updateMapping

public Object updateMapping(Long key,
                            Object newProps)

Specified by:
updateMapping in class BaseLTIService
Returns:
See Also:
BaseLTIService.updateMapping(java.lang.Long, java.lang.Object)

getMappings

public List<Map<String,Object>> getMappings(String search,
                                            String order,
                                            int first,
                                            int last)

Specified by:
getMappings in interface LTIService
See Also:
LTIService.getMappings(java.lang.String, java.lang.String, int, int)

checkMapping

public String checkMapping(String url)
Specified by:
checkMapping in interface LTIService

insertToolDao

public Object insertToolDao(Properties newProps,
                            String siteId,
                            boolean isMaintainRole)
Specified by:
insertToolDao in class BaseLTIService

getToolDao

protected Map<String,Object> getToolDao(Long key,
                                        String siteId,
                                        boolean isMaintainRole)

Specified by:
getToolDao in class BaseLTIService
See Also:
org.sakaiproject.lti.api.LTIService#getToolDao(java.lang.Long, java.lang.String, boolean)

deleteToolDao

public boolean deleteToolDao(Long key,
                             String siteId,
                             boolean isMaintainRole)

See Also:
org.sakaiproject.lti.api.LTIService#deleteToolDao(java.lang.Long, java.lang.String, boolean)

updateToolDao

public Object updateToolDao(Long key,
                            Object newProps,
                            String siteId,
                            boolean isMaintainRole)

Specified by:
updateToolDao in class BaseLTIService
Returns:
See Also:
BaseLTIService.updateToolDao(java.lang.Long, java.lang.Object, java.lang.String, boolean)

getToolsDao

public List<Map<String,Object>> getToolsDao(String search,
                                            String order,
                                            int first,
                                            int last,
                                            String siteId,
                                            boolean isMaintainRole)

Specified by:
getToolsDao in class BaseLTIService
See Also:
org.sakaiproject.lti.api.LTIService#getToolsDao(java.lang.String, java.lang.String, int, int, java.lang.String, boolean)

insertContentDao

protected Object insertContentDao(Properties newProps,
                                  String siteId,
                                  boolean isMaintainRole)
Specified by:
insertContentDao in class BaseLTIService

getContentDao

public Map<String,Object> getContentDao(Long key,
                                        String siteId,
                                        boolean isMaintainRole)

Specified by:
getContentDao in class BaseLTIService
See Also:
org.sakaiproject.lti.api.LTIService#getContentDao(java.lang.Long, java.lang.String, boolean)

deleteContentDao

public boolean deleteContentDao(Long key,
                                String siteId,
                                boolean isMaintainRole)

Specified by:
deleteContentDao in class BaseLTIService
See Also:
org.sakaiproject.lti.api.LTIService#deleteContent(java.lang.Long, java.lang.String, boolean)

updateContentDao

public Object updateContentDao(Long key,
                               Object newProps,
                               String siteId,
                               boolean isMaintainRole)

Specified by:
updateContentDao in class BaseLTIService
See Also:
BaseLTIService.updateContentDao(java.lang.Long, java.lang.Object, java.lang.String, boolean)

getContentsDao

public List<Map<String,Object>> getContentsDao(String search,
                                               String order,
                                               int first,
                                               int last,
                                               String siteId,
                                               boolean isMaintainRole)

Specified by:
getContentsDao in class BaseLTIService
See Also:
org.sakaiproject.lti.api.LTIService#getContentsDao(java.lang.String, java.lang.String, int, int)

insertThingDao

public Object insertThingDao(String table,
                             String[] formModel,
                             String[] fullModel,
                             Properties newProps,
                             String siteId,
                             boolean isMaintainRole)

getThingsDao

public List<Map<String,Object>> getThingsDao(String table,
                                             String[] model,
                                             String search,
                                             String order,
                                             int first,
                                             int last,
                                             String siteId,
                                             boolean isMaintainRole)
Parameters:
table -
model -
search -
order -
first -
last -
siteId -
isMaintainRole -
Returns:

deleteThingDao

public boolean deleteThingDao(String table,
                              String[] model,
                              Long key,
                              String siteId,
                              boolean isMaintainRole)
Parameters:
table -
model -
key -
siteId -
isMaintainRole -
Returns:

updateThingDao

public Object updateThingDao(String table,
                             String[] formModel,
                             String[] fullModel,
                             Long key,
                             Object newProps,
                             String siteId)
Parameters:
table -
formModel -
fullModel -
key -
newProps -
siteId -
Returns:

updateThingDao

public Object updateThingDao(String table,
                             String[] formModel,
                             String[] fullModel,
                             Long key,
                             Object newProps,
                             String siteId,
                             boolean isMaintainRole)
Parameters:
table -
formModel -
fullModel -
key -
newProps -
siteId -
isMaintainRole -
Returns:

getResultSet

public List<Map<String,Object>> getResultSet(String statement,
                                             Object[] fields,
                                             String[] columns)


Copyright © 2009-2013 Sakai Project. All Rights Reserved.