Package org.opencms.jsp.userdata
Class CmsUserDataRequestConfig
- java.lang.Object
-
- org.opencms.jsp.userdata.CmsUserDataRequestConfig
-
public class CmsUserDataRequestConfig extends java.lang.Object
Configuration for user data requests.Mostly used to access texts to show to the user. Currently, a thin wrapper around an XML content.
-
-
Constructor Summary
Constructors Constructor Description CmsUserDataRequestConfig(CmsObject cms, CmsXmlContent content, java.util.Locale locale)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMailSubject()
Gets the email subject.java.lang.String
getMailText()
Gets the email text.long
getRequestLifetime()
Gets the time for which user data requests are valid (in milliseconds).java.lang.String
getText(java.lang.String key)
Gets the text for the given key.
-
-
-
Constructor Detail
-
CmsUserDataRequestConfig
public CmsUserDataRequestConfig(CmsObject cms, CmsXmlContent content, java.util.Locale locale)
Creates a new instance.- Parameters:
cms
- the CMS contextcontent
- the content with the configurationlocale
- the locale
-
-
Method Detail
-
getMailSubject
public java.lang.String getMailSubject()
Gets the email subject.- Returns:
- the email subject
-
getMailText
public java.lang.String getMailText()
Gets the email text.- Returns:
- the email text
-
getRequestLifetime
public long getRequestLifetime()
Gets the time for which user data requests are valid (in milliseconds).- Returns:
- the time for which user data requests are valid
-
getText
public java.lang.String getText(java.lang.String key)
Gets the text for the given key.- Parameters:
key
- the text key- Returns:
- the text for that key
-
-