public class Context
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected com.enterprisedt.util.debug.Logger |
logger
Logger for this class and subclasses
|
Constructor and Description |
---|
Context() |
Modifier and Type | Method and Description |
---|---|
void |
addDisabledEventListenerClass(java.lang.Class eventListenerClass) |
void |
addTableName(java.lang.String name) |
java.lang.Object |
clone()
Returns a copy of this Context instance: some fields are cloned, some are shared.
|
boolean |
containsBean(java.lang.String name)
Return true if specified bean exists in the Spring application context.
|
java.lang.Object |
get(java.lang.String beanName) |
org.springframework.context.ApplicationContext |
getApplicationContext() |
java.lang.String |
getBaseURL()
Getter for the baseURL property.
|
java.lang.Object |
getBean(java.lang.String name)
Returns an instance, which may be shared or independent, of the specified bean.
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getBeanNamesToObjects() |
com.archibus.config.ConfigManager.Immutable |
getConfigManager() |
java.lang.String |
getContextPath() |
com.archibus.config.ContextCacheable.Immutable |
getCurrentContext()
Gets the currentContext attribute of the Context object
|
com.archibus.config.Database.Immutable |
getDatabase() |
com.archibus.db.DbConnection.ThreadSafe |
getDbConnection() |
java.util.List<java.lang.Class> |
getDisabledEventListenerClasses() |
java.lang.Object |
getEventHandler(java.lang.String name)
Returns the event handler specified by name.
|
EventHandlerContext |
getEventHandlerContext() |
java.lang.Throwable |
getException() |
javax.servlet.http.HttpSession |
getHttpSession() |
JobManager.ThreadSafe |
getJobManager()
Returns the JobManager instance.
|
com.archibus.model.licensing.LicenseManager |
getLicenseManager() |
java.util.Locale |
getLocale() |
java.lang.String |
getNextRequest() |
com.archibus.config.Project.Immutable |
getProject() |
java.lang.String |
getRealContextPath() |
javax.servlet.http.HttpServletRequest |
getRequest() |
java.lang.String |
getRequestURL() |
javax.servlet.http.HttpServletResponse |
getResponse() |
com.archibus.context.DatabaseRole |
getRole() |
static com.archibus.context.DatabaseRole[] |
getRoles() |
com.archibus.servletx.controller.SecurityController |
getSecurityController() |
com.archibus.context.Session |
getSession() |
java.util.List<java.lang.String> |
getTableNames() |
com.archibus.context.TransactionInfos |
getTransactionInfos() |
com.archibus.context.User |
getUser() |
com.archibus.security.UserAccount.Immutable |
getUserAccount() |
com.archibus.config.UserSession.Immutable |
getUserSession() |
com.archibus.context.UserSessionDto |
getUserSessionDto() |
com.archibus.config.Version |
getVersion()
Getter for the version property.
|
java.lang.String |
getWebAppPath() |
boolean |
isDebug() |
void |
onUserSessionChange(com.archibus.config.UserSession.Immutable userSession)
Description of the Method
|
void |
put(java.lang.String key,
java.lang.Object value) |
void |
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> m) |
void |
remove(java.lang.String beanName) |
void |
removeDisabledEventListenerClass(java.lang.Class eventListenerClass) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBaseURL(java.lang.String baseURL)
Setter for the baseURL property.
|
void |
setConfigManager(com.archibus.config.ConfigManager.Immutable configManager) |
void |
setContextPath(java.lang.String contextPath) |
void |
setDbConnection(com.archibus.db.DbConnection.ThreadSafe dbConnection) |
void |
setDebug(boolean debug) |
void |
setEventHandlerContext(EventHandlerContext eventHandlerContext) |
void |
setException(java.lang.Throwable exception) |
void |
setHttpSession(javax.servlet.http.HttpSession httpSession) |
void |
setLicenseManager(com.archibus.model.licensing.LicenseManager licenseManager) |
void |
setLocale(java.util.Locale locale) |
void |
setNextRequest(java.lang.String nextRequest) |
void |
setProject(com.archibus.config.Project.Immutable project) |
void |
setRealContextPath(java.lang.String realContextPath) |
void |
setRequest(javax.servlet.http.HttpServletRequest request) |
void |
setRequestURL(java.lang.String url) |
void |
setResponse(javax.servlet.http.HttpServletResponse response) |
void |
setRole(com.archibus.context.DatabaseRole role) |
void |
setSecurityController(com.archibus.servletx.controller.SecurityController securityController) |
void |
setSession(com.archibus.context.Session session) |
void |
setTransactionInfos(com.archibus.context.TransactionInfos transactionInfos) |
void |
setUser(com.archibus.context.User user) |
void |
setUserAccount(com.archibus.security.UserAccount.Immutable userAccount) |
void |
setUserSession(com.archibus.config.UserSession.Immutable userSession) |
void |
setUserSessionDto(com.archibus.context.UserSessionDto userSessionDto) |
void |
setVersion(com.archibus.config.Version version)
Setter for the version property.
|
void |
setWebAppPath(java.lang.String webAppPath) |
protected final com.enterprisedt.util.debug.Logger logger
public java.lang.Object clone()
clone
in class java.lang.Object
public static com.archibus.context.DatabaseRole[] getRoles()
public void addDisabledEventListenerClass(java.lang.Class eventListenerClass)
public void addTableName(java.lang.String name)
public org.springframework.context.ApplicationContext getApplicationContext()
public java.lang.Object getBean(java.lang.String name) throws org.springframework.beans.BeansException
BeanFactory.getBean(String)
name
- the name of the bean to retrieve.org.springframework.beans.factory.NoSuchBeanDefinitionException
- if there is no bean definition with the specified name.org.springframework.beans.BeansException
- if the bean could not be obtained.public boolean containsBean(java.lang.String name)
BeanFactory.containsBean(String)
name
- The bean name.public com.archibus.config.ConfigManager.Immutable getConfigManager()
public java.lang.String getContextPath()
public com.archibus.config.ContextCacheable.Immutable getCurrentContext()
public com.archibus.config.Database.Immutable getDatabase()
public com.archibus.db.DbConnection.ThreadSafe getDbConnection()
public java.util.List<java.lang.Class> getDisabledEventListenerClasses()
public java.lang.Object getEventHandler(java.lang.String name)
name
- the event handler name, e.q. CostService.com.archibus.utility.ExceptionBase
public EventHandlerContext getEventHandlerContext()
public java.lang.Throwable getException()
public javax.servlet.http.HttpSession getHttpSession()
public JobManager.ThreadSafe getJobManager()
context
- public com.archibus.model.licensing.LicenseManager getLicenseManager()
public java.util.Locale getLocale()
public java.lang.String getNextRequest()
public com.archibus.config.Project.Immutable getProject()
public java.lang.String getRealContextPath()
public javax.servlet.http.HttpServletRequest getRequest()
public java.lang.String getRequestURL()
public javax.servlet.http.HttpServletResponse getResponse()
public com.archibus.context.DatabaseRole getRole()
public com.archibus.servletx.controller.SecurityController getSecurityController()
public com.archibus.context.Session getSession()
public java.util.List<java.lang.String> getTableNames()
public com.archibus.context.TransactionInfos getTransactionInfos()
public com.archibus.context.User getUser()
public com.archibus.security.UserAccount.Immutable getUserAccount()
public com.archibus.config.UserSession.Immutable getUserSession()
public com.archibus.context.UserSessionDto getUserSessionDto()
public java.lang.String getWebAppPath()
public boolean isDebug()
public void onUserSessionChange(com.archibus.config.UserSession.Immutable userSession)
userSession
- Description of the Parameterpublic void removeDisabledEventListenerClass(java.lang.Class eventListenerClass)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
applicationContext
- the applicationContext to setpublic void setConfigManager(com.archibus.config.ConfigManager.Immutable configManager)
configManager
- the configManager to setpublic void setContextPath(java.lang.String contextPath)
contextPath
- the contextPath to setpublic void setDbConnection(com.archibus.db.DbConnection.ThreadSafe dbConnection)
public void setDebug(boolean debug)
debug
- the debug to setpublic void setEventHandlerContext(EventHandlerContext eventHandlerContext)
public void setException(java.lang.Throwable exception)
exception
- the exception to setpublic void setHttpSession(javax.servlet.http.HttpSession httpSession)
httpSession
- the httpSession to setpublic void setLicenseManager(com.archibus.model.licensing.LicenseManager licenseManager)
licenseManager
- the licenseManager to setpublic void setLocale(java.util.Locale locale)
locale
- the locale to setpublic void setNextRequest(java.lang.String nextRequest)
public void setProject(com.archibus.config.Project.Immutable project)
project
- the project to setpublic void setRealContextPath(java.lang.String realContextPath)
realContextPath
- the realContextPath to setpublic void setRequest(javax.servlet.http.HttpServletRequest request)
request
- the request to setpublic void setRequestURL(java.lang.String url)
public void setResponse(javax.servlet.http.HttpServletResponse response)
response
- the response to setpublic void setRole(com.archibus.context.DatabaseRole role)
public void setSecurityController(com.archibus.servletx.controller.SecurityController securityController)
securityController
- the securityController to setpublic void setSession(com.archibus.context.Session session)
session
- the session to setpublic void setTransactionInfos(com.archibus.context.TransactionInfos transactionInfos)
public void setUser(com.archibus.context.User user)
public void setUserAccount(com.archibus.security.UserAccount.Immutable userAccount)
userAccount
- the userAccount to setpublic void setUserSession(com.archibus.config.UserSession.Immutable userSession)
userSession
- the userSession to setpublic void setUserSessionDto(com.archibus.context.UserSessionDto userSessionDto)
public void setWebAppPath(java.lang.String webAppPath)
webAppPath
- the webAppPath to setpublic java.lang.Object get(java.lang.String beanName)
public void remove(java.lang.String beanName)
public java.util.HashMap<java.lang.String,java.lang.Object> getBeanNamesToObjects()
public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> m)
public void put(java.lang.String key, java.lang.Object value)
public java.lang.String getBaseURL()
public void setBaseURL(java.lang.String baseURL)
baseURL
- the baseURL to set.public com.archibus.config.Version getVersion()
public void setVersion(com.archibus.config.Version version)
version
- the version to set.