Package com.esri.gpt.framework.mail

Examples of com.esri.gpt.framework.mail.FeedbackMessage


* @return the feedback message
*/
public FeedbackMessage getFeedbackMessage() {
  if (_feedbackMessage == null) {
    RequestContext context = extractRequestContext();
    _feedbackMessage = new FeedbackMessage();
    //_feedbackMessage.setFromName(context.getUser().getName());
    _feedbackMessage.setFromAddress(context.getUser().getProfile().getEmailAddress());
  }
  return _feedbackMessage;
}
View Full Code Here


*/
private void executeSendFeedback(ActionEvent event, RequestContext context)
  throws Exception {
  MessageBroker msgBroker = extractMessageBroker();
  ApplicationConfiguration appConfig = context.getApplicationConfiguration();
  FeedbackMessage msg = getFeedbackMessage();
 
  // validate parameters
  boolean bOk = true;
  String sName = msg.getFromName();
  String sEmail = msg.getFromAddress();
  String sBody = msg.getBody();
  String sSender = sEmail;
  if (!Val.chkEmail(sEmail)) {
    bOk = false;
    msgBroker.addErrorMessage("identity.feedback.err.email");
  } else if (sBody.length() == 0) {
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.mail.FeedbackMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.