public class CmsUgcSessionFactory extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
CmsUgcSession |
createSession(CmsObject cms,
javax.servlet.http.HttpServletRequest request,
CmsUgcConfiguration config)
Creates a new editing session.
|
CmsUgcSession |
createSession(CmsObject cms,
javax.servlet.http.HttpServletRequest request,
java.lang.String sitePath)
Creates a new editing session.
|
CmsUgcSession |
createSessionForFile(CmsObject cms,
javax.servlet.http.HttpServletRequest request,
java.lang.String configPath,
java.lang.String fileName)
Creates a new session for a given file.
|
static CmsUgcSessionFactory |
getInstance()
Returns the factory instance.
|
CmsUgcSession |
getSession(javax.servlet.http.HttpServletRequest request,
CmsUUID sessionId)
Returns the session, if already initialized.
|
static void |
setAdminCms(CmsObject adminCms)
Sets the admin CmsObject instance.
|
public static CmsUgcSessionFactory getInstance()
public static void setAdminCms(CmsObject adminCms)
adminCms - the admin CmsObjectpublic CmsUgcSession createSession(CmsObject cms, javax.servlet.http.HttpServletRequest request, CmsUgcConfiguration config) throws CmsUgcException
cms - the cms contextrequest - the requestconfig - the configurationCmsUgcException - if creating the session failspublic CmsUgcSession createSession(CmsObject cms, javax.servlet.http.HttpServletRequest request, java.lang.String sitePath) throws CmsUgcException
cms - the cms contextrequest - the requestsitePath - the configuration site pathCmsUgcException - if creating the session failspublic CmsUgcSession createSessionForFile(CmsObject cms, javax.servlet.http.HttpServletRequest request, java.lang.String configPath, java.lang.String fileName) throws CmsUgcException
cms - the CMS context to userequest - the current requestconfigPath - the path of the form configurationfileName - the file name (*not* path) of the XML content for which the session should be initializedCmsUgcException - if something goes wrongpublic CmsUgcSession getSession(javax.servlet.http.HttpServletRequest request, CmsUUID sessionId)
request - the requestsessionId - the form session id