public class AbstractSiteContext extends AbstractContext
| Constructor and Description |
|---|
AbstractSiteContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addApplication(AbstractApplicationContext applicationContext) |
void |
addFiles(FilesServletContext context) |
FilesServletContext |
addFiles(String localPath,
String path) |
LocaleContext |
addLanguage(String language) |
void |
addLocale(LocaleContext locale) |
<T extends AbstractServlet> |
addServlet(Class<T> clazz,
String path,
AbstractApplicationContext applicationContext) |
void |
destroySession(String id) |
String |
getAccessControlAllowOrigin() |
ApplicationContextList |
getApplicationContexts() |
LocaleContext |
getDefaultLocale() |
String |
getDefaultNotSecuredPath()
Return path to redirect user after logout
|
String |
getDefaultSecuredPath() |
ArrayList<FilesServletContext> |
getFiles() |
String |
getFullName() |
int |
getHttpPort() |
LocaleContext |
getLocaleByPath(String path) |
LocaleContext |
getLocaleByRequest(AbstractHttpRequestContext request) |
ArrayList<LocaleContext> |
getLocales() |
String |
getLoginPath()
Return path to login page
If non-registered user attempt call servlet, than can be access only in secured mode, it will be redirected to this page and cookie 'CLAWIZ_REDIRECT_AFTER_LOGIN' will be set to user request URI
|
PortalContext |
getPortalContext() |
ServletContext |
getServletContextByPath(String path,
LocaleContext localeContext) |
ServletContext |
getServletContextByRequest(AbstractHttpRequestContext request) |
ArrayList<ServletContext> |
getServlets() |
PortalSession |
getSession(String id) |
String |
getSessionIdParameterName() |
Collection<PortalSession> |
getSessions() |
long |
getSessionTimeout() |
String |
getSiteAutoLoginUserName() |
String |
getSiteAutoLoginUserPassword() |
String |
getSiteName() |
void |
makeAddPath(ServletContext context) |
PortalSession |
newSession() |
void |
prepare() |
void |
prepareApplications() |
void |
putSession(String id,
PortalSession session) |
String |
removeLocaleFromPath(String path,
LocaleContext localeContext) |
void |
setAccessControlAllowOrigin(String accessControlAllowOrigin) |
void |
setDefaultLocale(LocaleContext defaultLocale) |
void |
setDefaultNotSecuredPath(String defaultNotSecuredPath) |
void |
setDefaultSecuredPath(String defaultSecuredPath)
Set path to redirect after user successfully registered.
|
void |
setHttpPort(int port) |
void |
setLoginPath(String loginPath)
Set path to site login page
If non-registered user attempt call servlet, than can be access only in secured mode, it will be redirected to this page and cookie 'CLAWIZ_REDIRECT_AFTER_LOGIN' will be set to user request URI
|
void |
setPortalContext(PortalContext portalContext) |
void |
setSessionTimeout(long sessionTimeout) |
void |
setSiteAutoLoginUserName(String siteUserName)
AutoLogin methods send site to ALWAYS log new session with defined user and password
Use it for test purposes only
|
void |
setSiteAutoLoginUserPassword(String siteAutoLoginUserPassword)
AutoLogin methods send site to ALWAYS log new session with defined user and password
Use it for test purposes only
|
void |
setSiteName(String name) |
getConfig, setConfigcommit, destroy, executeQuery, executeQueryBigDecimal, executeQueryDate, executeQueryString, executeUpdate, getLogger, getSavepoint, getService, getService, getService, getServiceScope, getSession, init, logDebug, logError, logInfo, notNull, processExtensions, processExtensions, rollback, rollbackToSavepoint, setServiceScope, setSession, throwExceptionpublic String getSessionIdParameterName()
public PortalSession getSession(String id)
public PortalSession newSession()
public Collection<PortalSession> getSessions()
public void destroySession(String id)
public void putSession(String id, PortalSession session)
public PortalContext getPortalContext()
public void setPortalContext(PortalContext portalContext)
public void makeAddPath(ServletContext context)
public LocaleContext getLocaleByPath(String path)
public LocaleContext getLocaleByRequest(AbstractHttpRequestContext request)
public String removeLocaleFromPath(String path, LocaleContext localeContext)
public ServletContext getServletContextByPath(String path, LocaleContext localeContext)
public ServletContext getServletContextByRequest(AbstractHttpRequestContext request)
public <T extends AbstractServlet> ServletContext addServlet(Class<T> clazz, String path, AbstractApplicationContext applicationContext)
public ArrayList<ServletContext> getServlets()
public FilesServletContext addFiles(String localPath, String path)
public void addFiles(FilesServletContext context)
public ArrayList<FilesServletContext> getFiles()
public String getSiteName()
public void setSiteName(String name)
public int getHttpPort()
public void setHttpPort(int port)
public String getAccessControlAllowOrigin()
public void setAccessControlAllowOrigin(String accessControlAllowOrigin)
public String getFullName()
public ArrayList<LocaleContext> getLocales()
public LocaleContext getDefaultLocale()
public void setDefaultLocale(LocaleContext defaultLocale)
public void addLocale(LocaleContext locale)
public LocaleContext addLanguage(String language)
public String getLoginPath()
AbstractHttpRequestContext.getUri()public void setLoginPath(String loginPath)
loginPath - Path to sitelogin pageAbstractHttpRequestContext.getUri()public String getDefaultSecuredPath()
public void setDefaultSecuredPath(String defaultSecuredPath)
defaultSecuredPath - Path to redirect after user successfully registered.public void prepare()
prepare in class AbstractContextpublic void prepareApplications()
public String getDefaultNotSecuredPath()
public void setDefaultNotSecuredPath(String defaultNotSecuredPath)
public long getSessionTimeout()
public void setSessionTimeout(long sessionTimeout)
public void addApplication(AbstractApplicationContext applicationContext)
public ApplicationContextList getApplicationContexts()
public String getSiteAutoLoginUserName()
public void setSiteAutoLoginUserName(String siteUserName)
siteUserName - public String getSiteAutoLoginUserPassword()
public void setSiteAutoLoginUserPassword(String siteAutoLoginUserPassword)
siteAutoLoginUserPassword - Copyright © 2018. All rights reserved.