Package com.esri.gpt.framework.jsf

Examples of com.esri.gpt.framework.jsf.MessageBroker.addErrorMessage()


        }
       
        if (sFileName.length() == 0) {
          msgBroker.addErrorMessage("publication.uploadMetadata.err.file.required");
        } else if (sXml.length() == 0) {
          msgBroker.addErrorMessage("publication.uploadMetadata.err.file.empty");
        } else if (bValidateOnly) {
          ValidationRequest request = new ValidationRequest(context,sFileName,sXml);
          request.verify();
          msgBroker.addSuccessMessage("catalog.publication.success.validated");
        } else {
View Full Code Here


          }
        }

      // handle an empty explicit url or network path 
      } else if (sExplicitPath.length() == 0) {
        msgBroker.addErrorMessage("publication.uploadMetadata.err.file.required");
     
       // process an explicit url or network path
      } else {
        FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_WARN,sExplicitPath,null);
        msgBroker.addMessage(fm);
View Full Code Here

          } else if (pContext.getNumberFailed() > 0) {
            addErrorMessages(pContext,msgBroker,"catalog.publication.uploadMetadata.summary.invalid",
                ProcessedRecord.StatusType.FAILED,pContext.getNumberFailed());
          }
          if ((pContext.getNumberValidated() == 0) && (pContext.getNumberFailed() == 0)) {
            msgBroker.addErrorMessage("catalog.publication.uploadMetadata.summary.valid",new Integer[]{0});
          }
         
        // publication related messages 
        } else {
         
View Full Code Here

      // there seems to be no good exception related to a file that is simply
      // not an XML file, a message containing "content is not allowed in prolog"
      // seems to be the best guess at the moment
      String sMsg = e.toString().toLowerCase();
      if (sMsg.indexOf("content is not allowed in prolog") != -1) {
        msgBroker.addErrorMessage("publication.uploadMetadata.err.file.prolog");
      } else {
        throw e;
      }
     
    }
View Full Code Here

    idAdapter.changePassword(context.getUser(),getChangePasswordCriteria());
    msgBroker.addSuccessMessage("identity.changePassword.success");
    setNavigationOutcome(ResourceKeys.NAVIGATIONOUTCOME_HOME_DIRECT);
   
  } catch (CredentialsDeniedException e) {
    msgBroker.addErrorMessage("identity.changePassword.err.old");
  } catch (PasswordPolicyException e) {
    msgBroker.addErrorMessage("identity.changePassword.err.new");
  } catch (PasswordConfirmationException e) {
    msgBroker.addErrorMessage("identity.changePassword.err.confirm");
  }
View Full Code Here

    setNavigationOutcome(ResourceKeys.NAVIGATIONOUTCOME_HOME_DIRECT);
   
  } catch (CredentialsDeniedException e) {
    msgBroker.addErrorMessage("identity.changePassword.err.old");
  } catch (PasswordPolicyException e) {
    msgBroker.addErrorMessage("identity.changePassword.err.new");
  } catch (PasswordConfirmationException e) {
    msgBroker.addErrorMessage("identity.changePassword.err.confirm");
  }
}
View Full Code Here

  } catch (CredentialsDeniedException e) {
    msgBroker.addErrorMessage("identity.changePassword.err.old");
  } catch (PasswordPolicyException e) {
    msgBroker.addErrorMessage("identity.changePassword.err.new");
  } catch (PasswordConfirmationException e) {
    msgBroker.addErrorMessage("identity.changePassword.err.confirm");
  }
}

/**
* Executes a recover password action.
View Full Code Here

      msgBroker.addSuccessMessage("identity.forgotPassword.success");
      setNavigationOutcome(ResourceKeys.NAVIGATIONOUTCOME_HOME_DIRECT);
    } else {
     
      // add the error message
      msgBroker.addErrorMessage("identity.forgotPassword.err.denied");
    }
  } finally {
  }
}
View Full Code Here

      // navigate to login page if single sign-on mode
      setNavigationOutcome("catalog.identity.login");
    }
   
  } catch (UsernamePolicyException e) {
    msgBroker.addErrorMessage("identity.profile.err.username");
  } catch (PasswordPolicyException e) {
    msgBroker.addErrorMessage("identity.profile.err.password");
  } catch (PasswordConfirmationException e) {
    msgBroker.addErrorMessage("identity.profile.err.confirm");
  } catch (EmailPolicyException e) {
View Full Code Here

    }
   
  } catch (UsernamePolicyException e) {
    msgBroker.addErrorMessage("identity.profile.err.username");
  } catch (PasswordPolicyException e) {
    msgBroker.addErrorMessage("identity.profile.err.password");
  } catch (PasswordConfirmationException e) {
    msgBroker.addErrorMessage("identity.profile.err.confirm");
  } catch (EmailPolicyException e) {
    msgBroker.addErrorMessage("identity.profile.err.email");
  } catch (javax.naming.NameAlreadyBoundException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.