org.sakaiproject.entitybroker.providers
Class SessionEntityProvider
java.lang.Object
org.sakaiproject.entitybroker.util.AbstractEntityProvider
org.sakaiproject.entitybroker.providers.SessionEntityProvider
- All Implemented Interfaces:
- ActionsExecutable, CollectionResolvable, Createable, CRUDable, Deleteable, Describeable, Inputable, Outputable, Redirectable, RedirectDefinable, RequestAware, Resolvable, Sampleable, Saveable, Updateable, CoreEntityProvider, EntityProvider, Formats, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
public class SessionEntityProvider
- extends AbstractEntityProvider
- implements CoreEntityProvider, CRUDable, CollectionResolvable, Inputable, Outputable, RequestAware, Describeable, RedirectDefinable, ActionsExecutable
Entity provider for Sakai Sessions
- Author:
- Aaron Zeckoski (azeckoski @ gmail.com)
| Fields inherited from interface org.sakaiproject.entitybroker.entityprovider.extension.Formats |
ALL_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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AUTH_USERNAME
public static String AUTH_USERNAME
AUTH_PASSWORD
public static String AUTH_PASSWORD
sessionManager
public org.sakaiproject.tool.api.SessionManager sessionManager
userDirectoryService
public org.sakaiproject.user.api.UserDirectoryService userDirectoryService
PREFIX
public static String PREFIX
SessionEntityProvider
public SessionEntityProvider()
setSessionManager
public void setSessionManager(org.sakaiproject.tool.api.SessionManager sessionManager)
setUserDirectoryService
public void setUserDirectoryService(org.sakaiproject.user.api.UserDirectoryService userDirectoryService)
getEntityPrefix
public String getEntityPrefix()
- Specified by:
getEntityPrefix in interface EntityProvider
defineURLMappings
public TemplateMap[] defineURLMappings()
- Specified by:
defineURLMappings in interface RedirectDefinable
getCurrentSession
public Object getCurrentSession()
entityExists
public boolean entityExists(String id)
- Specified by:
entityExists in interface CoreEntityProvider
getSampleEntity
public Object getSampleEntity()
- Specified by:
getSampleEntity in interface Sampleable
getEntity
public Object getEntity(EntityReference ref)
- Specified by:
getEntity in interface Resolvable
createEntity
public String createEntity(EntityReference ref,
Object entity,
Map<String,Object> params)
- Specified by:
createEntity in interface Createable
updateEntity
public void updateEntity(EntityReference ref,
Object entity,
Map<String,Object> params)
- Specified by:
updateEntity in interface Updateable
deleteEntity
public void deleteEntity(EntityReference ref,
Map<String,Object> params)
- Specified by:
deleteEntity in interface Deleteable
getEntities
public List<?> getEntities(EntityReference ref,
Search search)
- Specified by:
getEntities in interface CollectionResolvable
getHandledInputFormats
public String[] getHandledInputFormats()
- Specified by:
getHandledInputFormats in interface Inputable
getHandledOutputFormats
public String[] getHandledOutputFormats()
- Specified by:
getHandledOutputFormats in interface Outputable
setRequestGetter
public void setRequestGetter(RequestGetter requestGetter)
- Specified by:
setRequestGetter in interface RequestAware
Copyright © 2007-2012 Sakai Project. All Rights Reserved.