public class SessionEntityProvider
extends org.sakaiproject.entitybroker.util.AbstractEntityProvider
implements org.sakaiproject.entitybroker.entityprovider.CoreEntityProvider, org.sakaiproject.entitybroker.entityprovider.capabilities.CRUDable, org.sakaiproject.entitybroker.entityprovider.capabilities.CollectionResolvable, org.sakaiproject.entitybroker.entityprovider.capabilities.Inputable, org.sakaiproject.entitybroker.entityprovider.capabilities.Outputable, org.sakaiproject.entitybroker.entityprovider.capabilities.RequestAware, org.sakaiproject.entitybroker.entityprovider.capabilities.Describeable, org.sakaiproject.entitybroker.entityprovider.capabilities.RedirectDefinable, org.sakaiproject.entitybroker.entityprovider.capabilities.ActionsExecutable
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_PASSWORD |
static String |
AUTH_USERNAME |
static String |
PREFIX |
org.sakaiproject.tool.api.SessionManager |
sessionManager |
org.sakaiproject.user.api.UserDirectoryService |
userDirectoryService |
developerHelperServiceSEARCH_LOCATION_REFERENCE, SEARCH_TAGS, SEARCH_USER_REFERENCEALL_KNOWN_FORMATS, ATOM, ATOM_EXTENSIONS, ATOM_MIME_TYPE, FORM, FORM_EXTENSIONS, FORM_MIME_TYPE, HTML, HTML_EXTENSIONS, HTML_MIME_TYPE, JSON, JSON_EXTENSIONS, JSON_MIME_TYPE, JSONP, JSONP_EXTENSIONS, JSONP_MIME_TYPE, RSS, RSS_EXTENSIONS, RSS_MIME_TYPE, TXT, TXT_EXTENSIONS, TXT_MIME_TYPE, UTF_8, XML, XML_EXTENSIONS, XML_MIME_TYPE| Constructor and Description |
|---|
SessionEntityProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
createEntity(org.sakaiproject.entitybroker.EntityReference ref,
Object entity,
Map<String,Object> params) |
org.sakaiproject.entitybroker.entityprovider.extension.TemplateMap[] |
defineURLMappings() |
void |
deleteEntity(org.sakaiproject.entitybroker.EntityReference ref,
Map<String,Object> params) |
boolean |
entityExists(String id) |
Object |
getCurrentSession() |
List<?> |
getEntities(org.sakaiproject.entitybroker.EntityReference ref,
org.sakaiproject.entitybroker.entityprovider.search.Search search) |
Object |
getEntity(org.sakaiproject.entitybroker.EntityReference ref) |
String |
getEntityPrefix() |
String[] |
getHandledInputFormats() |
String[] |
getHandledOutputFormats() |
Object |
getSampleEntity() |
void |
setRequestGetter(org.sakaiproject.entitybroker.entityprovider.extension.RequestGetter requestGetter) |
void |
setSessionManager(org.sakaiproject.tool.api.SessionManager sessionManager) |
void |
setUserDirectoryService(org.sakaiproject.user.api.UserDirectoryService userDirectoryService) |
void |
updateEntity(org.sakaiproject.entitybroker.EntityReference ref,
Object entity,
Map<String,Object> params) |
public static String AUTH_USERNAME
public static String AUTH_PASSWORD
public org.sakaiproject.tool.api.SessionManager sessionManager
public org.sakaiproject.user.api.UserDirectoryService userDirectoryService
public static String PREFIX
public void setSessionManager(org.sakaiproject.tool.api.SessionManager sessionManager)
public void setUserDirectoryService(org.sakaiproject.user.api.UserDirectoryService userDirectoryService)
public String getEntityPrefix()
getEntityPrefix in interface org.sakaiproject.entitybroker.entityprovider.EntityProviderpublic org.sakaiproject.entitybroker.entityprovider.extension.TemplateMap[] defineURLMappings()
defineURLMappings in interface org.sakaiproject.entitybroker.entityprovider.capabilities.RedirectDefinablepublic Object getCurrentSession()
public boolean entityExists(String id)
entityExists in interface org.sakaiproject.entitybroker.entityprovider.CoreEntityProviderpublic Object getSampleEntity()
getSampleEntity in interface org.sakaiproject.entitybroker.entityprovider.capabilities.Sampleablepublic Object getEntity(org.sakaiproject.entitybroker.EntityReference ref)
getEntity in interface org.sakaiproject.entitybroker.entityprovider.capabilities.Resolvablepublic String createEntity(org.sakaiproject.entitybroker.EntityReference ref, Object entity, Map<String,Object> params)
createEntity in interface org.sakaiproject.entitybroker.entityprovider.capabilities.Createablepublic void updateEntity(org.sakaiproject.entitybroker.EntityReference ref,
Object entity,
Map<String,Object> params)
updateEntity in interface org.sakaiproject.entitybroker.entityprovider.capabilities.Updateablepublic void deleteEntity(org.sakaiproject.entitybroker.EntityReference ref,
Map<String,Object> params)
deleteEntity in interface org.sakaiproject.entitybroker.entityprovider.capabilities.Deleteablepublic List<?> getEntities(org.sakaiproject.entitybroker.EntityReference ref, org.sakaiproject.entitybroker.entityprovider.search.Search search)
getEntities in interface org.sakaiproject.entitybroker.entityprovider.capabilities.CollectionResolvablepublic String[] getHandledInputFormats()
getHandledInputFormats in interface org.sakaiproject.entitybroker.entityprovider.capabilities.Inputablepublic String[] getHandledOutputFormats()
getHandledOutputFormats in interface org.sakaiproject.entitybroker.entityprovider.capabilities.Outputablepublic void setRequestGetter(org.sakaiproject.entitybroker.entityprovider.extension.RequestGetter requestGetter)
setRequestGetter in interface org.sakaiproject.entitybroker.entityprovider.capabilities.RequestAwareCopyright © 2007-2015 Sakai Project. All Rights Reserved.