|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.opencms.core.A_OpenCms
|
+--com.opencms.core.OpenCms
This class is the main class of the OpenCms system, think of it as the "operating system" of OpenCms.
Any request to an OpenCms resource will be processed by this class first. The class will try to map the request to a VFS (Virtual File System) resource, i.e. an URI. If the resource is found, it will be read anf forwarded to to a launcher, which is performs the output of the requested resource.
The OpenCms class is independent of access module to the OpenCms (e.g. Servlet, Command Shell), therefore this class is not responsible for user authentification. This is done by the access module to the OpenCms.
There will be only one instance of the OpenCms object created for any accessing class. This means that in the default configuration, where OpenCms is accessed through a servlet, there will be only one instance of this class running at a time.
A_OpenCms,
OpenCmsHttpServlet,
CmsObject| Field Summary |
| Fields inherited from class com.opencms.core.A_OpenCms |
m_resourceBroker |
| Fields inherited from interface com.opencms.boot.I_CmsLogChannels |
C_FLEX_CACHE, C_FLEX_LOADER, C_LOGGING, C_MODULE_CRITICAL, C_MODULE_DEBUG, C_MODULE_INFO, C_OPENCMS_CACHE, C_OPENCMS_CRITICAL, C_OPENCMS_CRONSCHEDULER, C_OPENCMS_DEBUG, C_OPENCMS_ELEMENTCACHE, C_OPENCMS_INFO, C_OPENCMS_INIT, C_OPENCMS_POOL, C_OPENCMS_STATICEXPORT, C_OPENCMS_STREAMING, C_PREPROCESSOR_IS_LOGGING |
| Constructor Summary | |
OpenCms(source.org.apache.java.util.Configurations conf)
Constructor to create a new OpenCms object. |
|
| Method Summary | |
void |
destroy()
Destructor, called when the the servlet is shut down. |
CmsResourceTranslator |
getFileTranslator()
Returns the file name translator this OpenCms has read from the opencms.properties. |
CmsLauncherManager |
getLauncherManager()
Returns the launcher manager used. |
static CmsElementCache |
getOnlineElementCache()
Returns the ElementCache used for the online project. |
static String |
getPasswordValidatingClass()
Returns the Class that is used for the password validation. |
static CmsStaticExportProperties |
getStaticExportProperties()
Returns the properties for the static export. |
static Hashtable |
getVariantDependencies()
Returns the hashtable with the variant dependencies used for the elementcache. |
void |
initUser(CmsObject cms,
I_CmsRequest cmsReq,
I_CmsResponse cmsRes,
String user,
String group,
int project,
CmsCoreSession sessionStorage)
Inits a user and updates the given CmsObject withs this users information. |
void |
showResource(CmsObject cms,
CmsFile file)
Selects the appropriate launcher for a given file by analyzing the file's launcher id and calls the initlaunch() method to initiate the generating of the output. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OpenCms(source.org.apache.java.util.Configurations conf)
throws Exception
It reads the configurations from the opencms.properties
file in the config/ subdirectory. With the information
from this file is inits a ResourceBroker (Database access module),
various caching systems and other options.
This will only be done once per accessing class.
conf - The configurations from the opencms.properties file.| Method Detail |
public void destroy()
throws CmsException
destroy in class A_OpenCmsCmsException - If something goes wrong during shutdown.public CmsLauncherManager getLauncherManager()
public static CmsElementCache getOnlineElementCache()
public static String getPasswordValidatingClass()
public static CmsStaticExportProperties getStaticExportProperties()
public static Hashtable getVariantDependencies()
public CmsResourceTranslator getFileTranslator()
public void initUser(CmsObject cms,
I_CmsRequest cmsReq,
I_CmsResponse cmsRes,
String user,
String group,
int project,
CmsCoreSession sessionStorage)
throws CmsException
cms - The CmsObject to updatecmsReq - The current I_CmsRequest (usually initialized form the HttpServletRequest)cmsRes - The current I_CmsResponse (usually initialized form the HttpServletResponse)user - The name of the user to initgroup - The name of the current groupproject - The id of the current projectsessionStorage - The session storage for this OpenCms instance
CmsException
public void showResource(CmsObject cms,
CmsFile file)
throws CmsException
showResource in class A_OpenCmscms - CmsObject containing all document and user informationfile - CmsFile object representing the selected file.
CmsException - In case of problems acessing the resource.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||