|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.opencms.template.A_CmsTemplate
|
+--com.opencms.template.CmsXmlTemplate
|
+--com.opencms.workplace.CmsLoginNew
Template class for displaying the login screen of the OpenCms workplace.
Reads template files of the content type CmsXmlWpTemplateFile.
| Field Summary |
| Fields inherited from class com.opencms.template.CmsXmlTemplate |
C_BODY_ELEMENT, C_DEBUG, C_FRAME_SELECTOR, m_cache |
| 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 | |
CmsLoginNew()
|
|
| Method Summary | |
CmsCacheDirectives |
getCacheDirectives(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Prevent caching of this template in the element cache |
byte[] |
getContent(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Gets the content of the login template and processes the data input. |
Object |
getTitle(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Customized getTitle() method for adding the current
version information to the title of the login screen. |
boolean |
isCacheable(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Prevent caching of this template |
Object |
message(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Returns a localized String for the key value given as tagcontent
parameter. |
Object |
version(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Returns a String with the version information of this OpenCms instance |
| Methods inherited from class com.opencms.template.A_CmsTemplate |
debugPrint, isExportable, isProxyPrivateCacheable, isProxyPublicCacheable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.opencms.template.I_CmsTemplate |
isExportable, isProxyPrivateCacheable, isProxyPublicCacheable |
| Constructor Detail |
public CmsLoginNew()
| Method Detail |
public byte[] getContent(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
throws CmsException
If the user has authenticated himself to the system, the login window is closed and the workplace is opened. If the login was incorrect, an error message is displayed and the login dialog is displayed again.
getContent in interface I_CmsTemplategetContent in class CmsXmlTemplatecms - request initialized CmsObjecttemplateFile - the login template fileelementName - not usedparameters - parameters of the request and the templatetemplateSelector - selector of the template tag to be displayed
CmsException - if something goes wrongCmsXmlTemplate.getContent(CmsObject, String, String, Hashtable, String)
public Object getTitle(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws CmsException
getTitle() method for adding the current
version information to the title of the login screen.
getTitle in class CmsXmlTemplatecms - for accessing system resourcestagcontent - (unused)doc - reference to the A_CmsXmlContent object of the initiating XML document.
CmsException
public Object version(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws CmsException
cms - for accessing system resourcestagcontent - (unused)doc - reference to the A_CmsXmlContent object of the initiating XML document.
CmsException - in case of errors processing the template
public Object message(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws CmsException
tagcontent
parameter.
cms - for accessing system resourcestagcontent - key value for the resource bundledoc - reference to the A_CmsXmlContent object of the initiating XML document.
CmsException - in case of errors processing the template
public boolean isCacheable(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
isCacheable in interface I_CmsTemplateisCacheable in class A_CmsTemplatecms - for accessing system resourcestemplateFile - filename of the template fileelementName - element name of this template in our parent template.parameters - hash with all template class parameterstemplateSelector - template section that should be processed
public CmsCacheDirectives getCacheDirectives(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
getCacheDirectives in class CmsXmlTemplatecms - for accessing system resourcestemplateFile - filename of the template fileelementName - element name of this template in our parent template.parameters - hash with all template class parameterstemplateSelector - template section that should be processed
new CmsCacheDirectives(false)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||