|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sakaiproject.lti.impl.BaseLTIService
public abstract class BaseLTIService
Implements the LTIService, all but a Storage model.
Field Summary | |
---|---|
protected static SakaiFoorm |
foorm
|
String |
LAUNCH_PREFIX
|
protected org.sakaiproject.event.api.EventTrackingService |
m_eventTrackingService
Dependency: EventTrackingService |
protected org.sakaiproject.tool.api.SessionManager |
m_sessionManager
Dependency: SessionManager |
protected org.sakaiproject.event.api.UsageSessionService |
m_usageSessionService
Dependency: UsageSessionService |
protected org.sakaiproject.user.api.UserDirectoryService |
m_userDirectoryService
Dependency: UserDirectoryService |
protected static org.sakaiproject.util.ResourceLoader |
rb
Resource bundle using current language locale |
protected org.sakaiproject.authz.api.SecurityService |
securityService
|
protected org.sakaiproject.site.api.SiteService |
siteService
|
protected org.sakaiproject.tool.api.ToolManager |
toolManager
|
Constructor Summary | |
---|---|
BaseLTIService()
|
Method Summary | |
---|---|
boolean |
deleteContent(Long key)
|
protected abstract boolean |
deleteContentDao(Long key,
String siteId,
boolean isMaintainRole)
|
String |
deleteContentLink(Long key)
|
String |
deleteContentLinkDao(Long key,
String siteId)
|
protected String |
deleteContentLinkDao(Long key,
String siteId,
boolean isMaintainRole)
|
boolean |
deleteTool(Long key)
|
boolean |
deleteToolDao(Long key,
String siteId)
|
void |
destroy()
Returns to uninitialized state. |
void |
filterContent(Map<String,Object> content,
Map<String,Object> tool)
|
String |
formInput(Object row,
String fieldInfo)
|
String |
formInput(Object row,
String[] fieldInfo)
|
String |
formOutput(Object row,
String fieldInfo)
|
String |
formOutput(Object row,
String[] fieldInfo)
|
Map<String,Object> |
getContent(Long key)
|
Map<String,Object> |
getContent(Long key,
String siteId)
|
Map<String,Object> |
getContentDao(Long key)
|
Map<String,Object> |
getContentDao(Long key,
String siteId)
|
protected abstract Map<String,Object> |
getContentDao(Long key,
String siteId,
boolean isMaintainRole)
|
String |
getContentLaunch(Map<String,Object> content)
|
String[] |
getContentModel(Long tool_id)
|
String[] |
getContentModel(Map<String,Object> tool)
|
String[] |
getContentModelDao(Map<String,Object> tool,
String siteId)
|
protected String[] |
getContentModelDao(Map<String,Object> tool,
String siteId,
boolean isMaintainRole)
|
List<Map<String,Object>> |
getContents(String search,
String order,
int first,
int last)
|
List<Map<String,Object>> |
getContentsDao(String search,
String order,
int first,
int last,
String siteId)
|
protected abstract List<Map<String,Object>> |
getContentsDao(String search,
String order,
int first,
int last,
String siteId,
boolean isMaintainRole)
|
protected String |
getContext()
|
static Integer |
getCorrectProperty(String propName,
Map<String,Object> content,
Map<String,Object> tool)
|
static int |
getInt(Object o)
|
String[] |
getMappingModel()
|
protected void |
getServices()
Pull in any necessary services using factory pattern |
Map<String,Object> |
getTool(Long key)
|
Map<String,Object> |
getTool(String url)
|
Map<String,Object> |
getToolDao(Long key,
String siteId)
|
protected abstract Map<String,Object> |
getToolDao(Long key,
String siteId,
boolean isMaintainRole)
|
String[] |
getToolModel()
|
String[] |
getToolModelDao(String siteId)
|
String[] |
getToolModelDao(String siteId,
boolean isMaintainRole)
|
List<Map<String,Object>> |
getTools(String search,
String order,
int first,
int last)
|
List<Map<String,Object>> |
getToolsDao(String search,
String order,
int first,
int last,
String siteId)
|
protected abstract List<Map<String,Object>> |
getToolsDao(String search,
String order,
int first,
int last,
String siteId,
boolean isMaintain)
|
void |
init()
Final initialization, once all dependencies are set. |
Object |
insertContent(Properties newProps)
|
Object |
insertContentDao(Properties newProps,
String siteId)
|
protected abstract Object |
insertContentDao(Properties newProps,
String siteId,
boolean isMaintainRole)
|
Object |
insertTool(Properties newProps)
|
Object |
insertToolContent(String id,
String toolId,
Properties reqProps)
|
Object |
insertToolContent(String id,
String toolId,
Properties reqProps,
String siteId)
|
Object |
insertToolContentDao(String id,
String toolId,
Properties reqProps,
String siteId)
|
protected Object |
insertToolContentDao(String id,
String toolId,
Properties reqProps,
String siteId,
boolean isMaintainRole)
|
Object |
insertToolDao(Properties newProps,
String siteId)
|
protected abstract Object |
insertToolDao(Properties newProps,
String siteId,
boolean isMaintainRole)
|
Object |
insertToolSiteLink(String id,
String button_text)
|
Object |
insertToolSiteLink(String id,
String button_text,
String siteId)
|
protected Object |
insertToolSiteLinkDao(String id,
String button_text,
String siteId,
boolean isMaintainRole)
|
boolean |
isAdmin()
|
protected boolean |
isAdmin(String siteId)
|
protected boolean |
isAdmin(String siteId,
boolean isMaintainRole)
|
boolean |
isMaintain()
|
protected boolean |
isMaintain(String siteId)
|
void |
setEventTrackingService(org.sakaiproject.event.api.EventTrackingService service)
Dependency: EventTrackingService. |
void |
setSessionManager(org.sakaiproject.tool.api.SessionManager service)
Dependency: SessionManager. |
void |
setUsageSessionService(org.sakaiproject.event.api.UsageSessionService service)
Dependency: UsageSessionService. |
void |
setUserDirectoryService(org.sakaiproject.user.api.UserDirectoryService service)
Dependency: UserDirectoryService. |
Object |
updateContent(Long key,
Map<String,Object> newProps)
|
Object |
updateContent(Long key,
Object newProps)
|
Object |
updateContent(Long key,
Properties newProps)
|
Object |
updateContent(Long key,
Properties newProps,
String siteId)
|
Object |
updateContentDao(Long key,
Map<String,Object> newProps,
String siteId)
|
protected abstract Object |
updateContentDao(Long key,
Object newProps,
String siteId,
boolean isMaintainRole)
|
Object |
updateMapping(Long key,
Map<String,Object> newProps)
|
abstract Object |
updateMapping(Long key,
Object newProps)
|
Object |
updateMapping(Long key,
Properties newProps)
|
Object |
updateTool(Long key,
Map<String,Object> newProps)
Simple API signature for the update series of methods |
protected Object |
updateTool(Long key,
Object newProps)
|
Object |
updateTool(Long key,
Properties newProps)
Simple API signature for the update series of methods |
Object |
updateToolDao(Long key,
Map<String,Object> newProps,
String siteId)
|
abstract Object |
updateToolDao(Long key,
Object newProps,
String siteId,
boolean isMaintainRole)
|
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 |
---|
checkMapping, deleteMapping, getMapping, getMappings, insertMapping |
Field Detail |
---|
public final String LAUNCH_PREFIX
protected static org.sakaiproject.util.ResourceLoader rb
protected static SakaiFoorm foorm
protected org.sakaiproject.tool.api.SessionManager m_sessionManager
protected org.sakaiproject.event.api.UsageSessionService m_usageSessionService
protected org.sakaiproject.user.api.UserDirectoryService m_userDirectoryService
protected org.sakaiproject.event.api.EventTrackingService m_eventTrackingService
protected org.sakaiproject.authz.api.SecurityService securityService
protected org.sakaiproject.site.api.SiteService siteService
protected org.sakaiproject.tool.api.ToolManager toolManager
Constructor Detail |
---|
public BaseLTIService()
Method Detail |
---|
public void setSessionManager(org.sakaiproject.tool.api.SessionManager service)
service
- The SessionManager.public void setUsageSessionService(org.sakaiproject.event.api.UsageSessionService service)
service
- The UsageSessionService.public void setUserDirectoryService(org.sakaiproject.user.api.UserDirectoryService service)
service
- The UserDirectoryService.public void setEventTrackingService(org.sakaiproject.event.api.EventTrackingService service)
service
- The EventTrackingService.protected void getServices()
public void init()
public void destroy()
public String[] getMappingModel()
getMappingModel
in interface LTIService
public String[] getToolModel()
getToolModel
in interface LTIService
LTIService.getToolModel()
public String[] getToolModelDao(String siteId)
org.sakaiproject.lti.api.LTIService#getToolModelDao()
public String[] getToolModelDao(String siteId, boolean isMaintainRole)
org.sakaiproject.lti.api.LTIService#getToolModelDao(java.lang.String, boolean)
public String[] getContentModel(Map<String,Object> tool)
getContentModel
in interface LTIService
public String[] getContentModel(Long tool_id)
getContentModel
in interface LTIService
public String[] getContentModelDao(Map<String,Object> tool, String siteId)
org.sakaiproject.lti.api.LTIService#getContentModel(Map, java.lang.String)
protected String[] getContentModelDao(Map<String,Object> tool, String siteId, boolean isMaintainRole)
org.sakaiproject.lti.api.LTIService#getContentModel(Map, java.lang.String, boolean)
protected String getContext()
public String getContentLaunch(Map<String,Object> content)
getContentLaunch
in interface LTIService
LTIService.getContentLaunch(java.util.Map)
public String formOutput(Object row, String fieldInfo)
formOutput
in interface LTIService
LTIService.formOutput(java.lang.Object,
java.lang.String)
public String formOutput(Object row, String[] fieldInfo)
formOutput
in interface LTIService
LTIService.formOutput(java.lang.Object,
java.lang.String[])
public String formInput(Object row, String fieldInfo)
formInput
in interface LTIService
LTIService.formInput(java.lang.Object,
java.lang.String)
public String formInput(Object row, String[] fieldInfo)
formInput
in interface LTIService
LTIService.formInput(java.lang.Object,
java.lang.String[])
public boolean isAdmin()
isAdmin
in interface LTIService
LTIService.isAdmin()
protected boolean isAdmin(String siteId)
protected boolean isAdmin(String siteId, boolean isMaintainRole)
public boolean isMaintain()
isMaintain
in interface LTIService
LTIService.isMaintain()
protected boolean isMaintain(String siteId)
public Object updateTool(Long key, Map<String,Object> newProps)
updateTool
in interface LTIService
public Object updateTool(Long key, Properties newProps)
updateTool
in interface LTIService
protected Object updateTool(Long key, Object newProps)
updateTool(java.lang.Long,
java.lang.Object)
public Object updateToolDao(Long key, Map<String,Object> newProps, String siteId)
org.sakaiproject.lti.impl.BaseLTIService#updateToolDao(java.lang.Long,
java.lang.Object, java.lang.String)
public abstract Object updateToolDao(Long key, Object newProps, String siteId, boolean isMaintainRole)
key
- newProps
- siteId
- isMaintainRole
-
public Object updateMapping(Long key, Map<String,Object> newProps)
updateMapping
in interface LTIService
LTIService.updateMapping(java.lang.Long, java.util.Map)
public Object updateMapping(Long key, Properties newProps)
updateMapping
in interface LTIService
LTIService.updateMapping(java.lang.Long,
java.util.Properties)
public abstract Object updateMapping(Long key, Object newProps)
key
- newProps
-
public Object updateContent(Long key, Map<String,Object> newProps)
updateContent
in interface LTIService
LTIService.updateContent(java.lang.Long, java.util.Map)
public Object updateContent(Long key, Properties newProps)
updateContent
in interface LTIService
LTIService.updateContent(java.lang.Long,
java.util.Properties)
public Object updateContent(Long key, Properties newProps, String siteId)
updateContent
in interface LTIService
key
- newProps
- siteId
-
public Object updateContent(Long key, Object newProps)
key
- newProps
-
public Object updateContentDao(Long key, Map<String,Object> newProps, String siteId)
updateContentDao
in interface LTIService
key
- newProps
- siteId
-
protected abstract Object updateContentDao(Long key, Object newProps, String siteId, boolean isMaintainRole)
public boolean deleteContent(Long key)
deleteContent
in interface LTIService
protected abstract boolean deleteContentDao(Long key, String siteId, boolean isMaintainRole)
public static int getInt(Object o)
o
-
public void filterContent(Map<String,Object> content, Map<String,Object> tool)
filterContent
in interface LTIService
public static Integer getCorrectProperty(String propName, Map<String,Object> content, Map<String,Object> tool)
propName
- content
- tool
-
public Object insertTool(Properties newProps)
insertTool
in interface LTIService
public Object insertToolDao(Properties newProps, String siteId)
insertToolDao
in interface LTIService
protected abstract Object insertToolDao(Properties newProps, String siteId, boolean isMaintainRole)
public boolean deleteTool(Long key)
deleteTool
in interface LTIService
public boolean deleteToolDao(Long key, String siteId)
public Map<String,Object> getTool(String url)
getTool
in interface LTIService
LTIService.getTool(java.lang.String)
public Map<String,Object> getTool(Long key)
getTool
in interface LTIService
public Map<String,Object> getToolDao(Long key, String siteId)
getToolDao
in interface LTIService
protected abstract Map<String,Object> getToolDao(Long key, String siteId, boolean isMaintainRole)
public List<Map<String,Object>> getTools(String search, String order, int first, int last)
getTools
in interface LTIService
public List<Map<String,Object>> getToolsDao(String search, String order, int first, int last, String siteId)
getToolsDao
in interface LTIService
protected abstract List<Map<String,Object>> getToolsDao(String search, String order, int first, int last, String siteId, boolean isMaintain)
public Object insertContent(Properties newProps)
insertContent
in interface LTIService
public Object insertContentDao(Properties newProps, String siteId)
insertContentDao
in interface LTIService
protected abstract Object insertContentDao(Properties newProps, String siteId, boolean isMaintainRole)
public Map<String,Object> getContent(Long key)
getContent
in interface LTIService
public Map<String,Object> getContent(Long key, String siteId)
getContent
in interface LTIService
public Map<String,Object> getContentDao(Long key)
getContentDao
in interface LTIService
public Map<String,Object> getContentDao(Long key, String siteId)
getContentDao
in interface LTIService
protected abstract Map<String,Object> getContentDao(Long key, String siteId, boolean isMaintainRole)
public List<Map<String,Object>> getContents(String search, String order, int first, int last)
getContents
in interface LTIService
public List<Map<String,Object>> getContentsDao(String search, String order, int first, int last, String siteId)
protected abstract List<Map<String,Object>> getContentsDao(String search, String order, int first, int last, String siteId, boolean isMaintainRole)
public Object insertToolContent(String id, String toolId, Properties reqProps)
insertToolContent
in interface LTIService
public Object insertToolContent(String id, String toolId, Properties reqProps, String siteId)
insertToolContent
in interface LTIService
public Object insertToolContentDao(String id, String toolId, Properties reqProps, String siteId)
protected Object insertToolContentDao(String id, String toolId, Properties reqProps, String siteId, boolean isMaintainRole)
public Object insertToolSiteLink(String id, String button_text)
insertToolSiteLink
in interface LTIService
public Object insertToolSiteLink(String id, String button_text, String siteId)
insertToolSiteLink
in interface LTIService
protected Object insertToolSiteLinkDao(String id, String button_text, String siteId, boolean isMaintainRole)
public String deleteContentLink(Long key)
deleteContentLink
in interface LTIService
public String deleteContentLinkDao(Long key, String siteId)
protected String deleteContentLinkDao(Long key, String siteId, boolean isMaintainRole)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |