|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opencms.jsp.CmsJspBean
org.opencms.jsp.CmsJspActionElement
org.opencms.frontend.templateone.CmsTemplateBase
org.opencms.frontend.templateone.CmsTemplateBean
org.opencms.frontend.templateone.CmsTemplateForm
org.opencms.frontend.templateone.CmsTemplateFormLetter
public class CmsTemplateFormLetter
Provides methods to build the page "letter to the editor" form.
| Field Summary |
|---|
| Fields inherited from class org.opencms.frontend.templateone.CmsTemplateForm |
|---|
MESSAGE_BUNDLE_FORM, PARAM_ACTION |
| Fields inherited from class org.opencms.frontend.templateone.CmsTemplateBase |
|---|
ATTRIBUTE_ORIGINAL_URI |
| Fields inherited from class org.opencms.jsp.CmsJspActionElement |
|---|
NOT_INITIALIZED |
| Constructor Summary | |
|---|---|
CmsTemplateFormLetter()
Empty constructor, required for every JavaBean. |
|
CmsTemplateFormLetter(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Constructor, with parameters. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
checkTextsUri()
Returns the text URI from the configuration file and checks the presence. |
java.lang.String |
getConcern()
Returns the concern of contact. |
java.lang.String |
getConcernDetail()
Returns the concern details if specified. |
java.lang.String |
getContactCity()
Returns the contact city. |
java.lang.String |
getContactCountry()
Returns the contact country. |
java.lang.String |
getContactEmail()
Returns the contact email address. |
java.lang.String |
getContactFirstName()
Returns the contact first name. |
java.lang.String |
getContactLastName()
Returns the contact last name. |
java.lang.String |
getContactNumber()
Returns the contact street number. |
java.lang.String |
getContactPhone()
Returns the contact phone number. |
java.lang.String |
getContactSalutation()
Returns the contact salutation. |
java.lang.String |
getContactStreet()
Returns the contact street. |
java.lang.String |
getContactTitle()
Returns the contact title. |
java.lang.String |
getContactZip()
Returns the contact zip code. |
java.lang.String |
getCopy()
Returns the send copy to sender flag. |
java.lang.String |
getMessage()
Returns the message for the recipient. |
java.lang.String |
isConcernChecked(java.lang.String currentValue)
Returns the "checked" attribute if the current "concern" radio button is checked. |
java.lang.String |
isCopyChecked()
Examines the value of the send copy checkbox and returns the "checked" attribute. |
java.lang.String |
isSalutationSelected(java.lang.String currentValue)
Returns the "selected" attribute if the current "contact option" is selected. |
boolean |
sendMail()
Sends the recommendation email(s) to the recipient and/or the sender. |
void |
setConcern(java.lang.String concern)
Sets the concern of contact. |
void |
setConcernDetail(java.lang.String concernDetail)
Sets the concern details if specified. |
void |
setContactCity(java.lang.String contactCity)
Sets the contact city. |
void |
setContactCountry(java.lang.String contactCountry)
Sets the contact country. |
void |
setContactEmail(java.lang.String email)
Sets the contact email address. |
void |
setContactFirstName(java.lang.String contactFirstName)
Sets the contact first name. |
void |
setContactLastName(java.lang.String contactLastName)
Sets the contact last name. |
void |
setContactNumber(java.lang.String contactNumber)
Sets the contact street number. |
void |
setContactPhone(java.lang.String contactPhone)
Sets the contact phone number. |
void |
setContactSalutation(java.lang.String contactSalutation)
Sets the contact salutation. |
void |
setContactStreet(java.lang.String contactStreet)
Sets the contact street. |
void |
setContactTitle(java.lang.String contactTitle)
Sets the contact title. |
void |
setContactZip(java.lang.String contactZip)
Sets the contact zip code. |
void |
setCopy(java.lang.String copy)
Sets the send copy to sender flag. |
void |
setMessage(java.lang.String message)
Sets the message for the recipient. |
boolean |
validate()
Validates the values of the input fields and creates error messages, if necessary. |
| Methods inherited from class org.opencms.frontend.templateone.CmsTemplateForm |
|---|
getConfigPath, getError, getErrors, getFormattedString, getFormText, getFormUri, getPageTitle, getPageUri, getPageUri, getPageUrl, getTextsUri, hasValidationErrors, init, isChecked, isSelected, isSubmitted, isValidEmailAddress, removeHtmlTags, setErrors |
| Methods inherited from class org.opencms.frontend.templateone.CmsTemplateBase |
|---|
getOriginalUri, initUri, isUriChanged |
| Methods inherited from class org.opencms.jsp.CmsJspActionElement |
|---|
editable, editable, editable, editableManualClose, editableManualOpen, getContent, getContent, getMessages, getMessages, getMessages, getMessages, getNavigation, getNavigationUri, img, img, include, include, include, include, include, include, includeSilent, includeSilent, includeSilent, includeSilent, info, label, link, link, properties, properties, property, property, property, property, template, template, template, toAbsolute, user |
| Methods inherited from class org.opencms.jsp.CmsJspBean |
|---|
getCmsObject, getController, getJspContext, getMessage, getRequest, getRequestContext, getResponse, handleException, isNotInitialized, isSupressingExceptions, setContentType, setStatus, setSupressingExceptions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsTemplateFormLetter()
public CmsTemplateFormLetter(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Use this constructor for the template.
context - the JSP page context objectreq - the JSP requestres - the JSP response| Method Detail |
|---|
public java.lang.String getConcern()
public java.lang.String getConcernDetail()
public java.lang.String getContactCity()
public java.lang.String getContactCountry()
public java.lang.String getContactEmail()
public java.lang.String getContactFirstName()
public java.lang.String getContactLastName()
public java.lang.String getContactNumber()
public java.lang.String getContactPhone()
public java.lang.String getContactSalutation()
public java.lang.String getContactStreet()
public java.lang.String getContactTitle()
public java.lang.String getContactZip()
public java.lang.String getCopy()
public java.lang.String getMessage()
public java.lang.String isConcernChecked(java.lang.String currentValue)
currentValue - the value of the current radio button to check
public java.lang.String isCopyChecked()
public java.lang.String isSalutationSelected(java.lang.String currentValue)
currentValue - the value of the current radio button to check
public boolean sendMail()
public void setConcern(java.lang.String concern)
concern - the concern of contactpublic void setConcernDetail(java.lang.String concernDetail)
concernDetail - the concern details if specifiedpublic void setContactCity(java.lang.String contactCity)
contactCity - the contact citypublic void setContactCountry(java.lang.String contactCountry)
contactCountry - the contact countrypublic void setContactEmail(java.lang.String email)
email - the contact email addresspublic void setContactFirstName(java.lang.String contactFirstName)
contactFirstName - the contact first namepublic void setContactLastName(java.lang.String contactLastName)
contactLastName - the contact last namepublic void setContactNumber(java.lang.String contactNumber)
contactNumber - the contact street numberpublic void setContactPhone(java.lang.String contactPhone)
contactPhone - the contact phone numberpublic void setContactSalutation(java.lang.String contactSalutation)
contactSalutation - the contact salutationpublic void setContactStreet(java.lang.String contactStreet)
contactStreet - the contact streetpublic void setContactTitle(java.lang.String contactTitle)
contactTitle - the contact titlepublic void setContactZip(java.lang.String contactZip)
contactZip - the contact zip codepublic void setCopy(java.lang.String copy)
copy - the send copy to sender flagpublic void setMessage(java.lang.String message)
message - the message for the recipientpublic boolean validate()
validate in class CmsTemplateFormprotected java.lang.String checkTextsUri()
CmsTemplateFormReturns the default texts URI if the file specified in the configuration can not be found.
checkTextsUri in class CmsTemplateFormCmsTemplateForm.checkTextsUri()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||