List of usage examples for javax.xml.registry InvalidRequestException getLocalizedMessage
public String getLocalizedMessage()
From source file:it.cnr.icar.eric.client.ui.thin.RegistryObjectCollectionBean.java
/** * Saves Current Registry Object being displayed. * * @param none// w ww . j a va 2 s . c o m * @return boolean */ public String doApplyOnCurrentROB() { String status = "failure"; String croID = null; if (!isUserAllowedToPublish()) { status = RegistryBrowser.getInstance().getAuthenticationStatus(); RegistryBrowser.getInstance() .setPublishOperationMessage(WebUIResourceBundle.getInstance().getString("applyButtonText")); } else { try { ArrayList<Object> robs = new ArrayList<Object>(); if (currentRegistryObject == null) { append(WebUIResourceBundle.getInstance().getString("noObjectsSelected")); } else if (!this.checkErrorMessageForCRO()) { croID = currentRegistryObject.getId(); robs.add(currentRegistryObject); internalDoApply(robs); if (currentRegistryObject != null && !currentRegistryObject.isNew()) { refreshSearchExplore(); } append(WebUIResourceBundle.getInstance().getString("applySuccessful")); status = "publishSuccessful"; } else { status = "saveSuccessful"; } this.reinitializeSearchPanel(croID); } catch (InvalidRequestException ire) { log.error(ire.getLocalizedMessage()); append(ire.getLocalizedMessage()); } catch (Exception ex) { this.doDeleteFile(); log.error(WebUIResourceBundle.getInstance().getString("message.FailedToSaveThisObject"), ex); append(WebUIResourceBundle.getInstance().getString("message.FailedToApplyThisObject") + " " + ex.getLocalizedMessage()); } } return status; }