Examples of GfacGUIException


Examples of edu.indiana.extreme.gfac.utils.GfacGUIException

   */
  public static void createObject(RegistryService regService, String serviceMapStr) throws GfacException {
    try {
      RegistryUtil.registerServiceMapFromStr(regService, serviceMapStr);
    } catch (Exception e) {
      String errormessage = new GfacGUIException(e).getMessage();
      throw new GfacException(errormessage, FaultCode.LocalError);
    }
  }
View Full Code Here

Examples of edu.indiana.extreme.gfac.utils.GfacGUIException

      objectResource = SearchUtils.search4Resources(super.getContext().getRegService(), objectName, documentType);
      setSearchCount(objectResource.length);
      setPageId("searchAll");
      return ServiceConstants.SUCCESS_STATUS;
    } catch (Exception e) {
      String errormessage = new GfacGUIException(e).getMessage();
      super.setErrorString(errormessage);
        FacesMessage message = new FacesMessage(
                  FacesMessage.SEVERITY_ERROR,
                  e.getClass().getName(),errormessage);
              FacesContext.getCurrentInstance().addMessage(
View Full Code Here

Examples of edu.indiana.extreme.gfac.utils.GfacGUIException

    try {
      objectResource = SearchUtils.search4Resources(super.getContext().getRegService(), objectName, event.getNewValue().toString());
      setSearchCount(objectResource.length);
      setPageId("searchAll");
    } catch (Exception e) {
      String errormessage = new GfacGUIException(e).getMessage();
      super.setErrorString(errormessage);
        FacesMessage message = new FacesMessage(
                  FacesMessage.SEVERITY_ERROR,
                  e.getClass().getName(),errormessage);
              FacesContext.getCurrentInstance().addMessage(
View Full Code Here

Examples of edu.indiana.extreme.gfac.utils.GfacGUIException

      objectResource = SearchUtils.search4Resources(super.getContext().getRegService(), objectName, ServiceConstants.SEARCH_SERVICE);
      setSearchCount(objectResource.length);
      setPageId("searchService");
      return ServiceConstants.SUCCESS_STATUS;
    } catch (Exception e) {
      String errormessage = new GfacGUIException(e).getMessage();
      super.setErrorString(errormessage);
        FacesMessage message = new FacesMessage(
                  FacesMessage.SEVERITY_ERROR,
                  e.getClass().getName(),errormessage);
              FacesContext.getCurrentInstance().addMessage(
View Full Code Here

Examples of edu.indiana.extreme.gfac.utils.GfacGUIException

      objectResource = SearchUtils.invokedServiceSearch(super.getContext().getRegService(), objectName);
      setSearchCount(objectResource.length);
      setPageId("searchServiceIns");
      return ServiceConstants.SUCCESS_STATUS;
    } catch (Exception e) {
      String errormessage = new GfacGUIException(e).getMessage();
      super.setErrorString(errormessage);
        FacesMessage message = new FacesMessage(
                  FacesMessage.SEVERITY_ERROR,
                  e.getClass().getName(),errormessage);
              FacesContext.getCurrentInstance().addMessage(
View Full Code Here

Examples of edu.indiana.extreme.gfac.utils.GfacGUIException

              if(ProxyManager.getDefaultProxy(username) == null){
                HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse();
                PrintWriter out = response.getWriter();
                  out.println("<h3>Login to My Proxy server using Xregistry Interface's Proxy Configration link or ProxyManager Portlet!</h3><br>");
                  out.close();
                throw new GfacGUIException("Login to My Proxy server using Xregistry Interface's Proxy Configration link or ProxyManager Portlet");
              }
             context.setGssCredential(ProxyManager.getDefaultProxy(username));
             // to  create RegistryService instance
              context.load();
          facesContext.getExternalContext().getSessionMap().put("applicationGlobalContext", context);
          this.setContext(context);
          checkStatus = true;
            }else{
              UserInfo userInfo =  (UserInfo) facesContext.getExternalContext().getSessionMap().get("userInfo");
              String userName = userInfo.getUserName();
               GSSCredential credential = ProxyManager.getDefaultProxy(userName);
          if(credential != null){
            context = new ApplicationGlobalContext();
            context.setGssCredential(credential);
            context.load();
            facesContext.getExternalContext().getSessionMap().put("applicationGlobalContext", context);
            this.setContext(context);
              checkStatus = true;
          }else{
            FacesContext.getCurrentInstance().getExternalContext().redirect("ProxyConfigure.jsf");
          }
          }
      } else {
        checkStatus = true;
     
    }
    } catch (Exception e) {
      String errormessage = new GfacGUIException(e).getMessage();
      setErrorString(errormessage);
      FacesMessage message = new FacesMessage(
          FacesMessage.SEVERITY_ERROR, e.getClass().getName(),
          errormessage);
      currentInstance.addMessage(null, message);
View Full Code Here

Examples of edu.indiana.extreme.gfac.utils.GfacGUIException

     */
  public static void createObject(RegistryService regService,String appDescStr) throws GfacException {
    try {
      regService.registerAppDesc(appDescStr);
    } catch (Exception e) {
      String errormessage = new GfacGUIException(e).getMessage();
      throw new GfacException(errormessage, FaultCode.LocalError);
    }

  }
View Full Code Here

Examples of edu.indiana.extreme.gfac.utils.GfacGUIException

    super();
    try {
//      client = super.getContext().getAdminClient();
      getUserGroup();
    catch (Exception e) {
      String errormessage = new GfacGUIException(e).getMessage();
      super.setErrorString(errormessage);
      FacesMessage message = new FacesMessage(
          FacesMessage.SEVERITY_ERROR, e.getClass().getName(),
          errormessage);
      FacesContext.getCurrentInstance().addMessage(null, message);
View Full Code Here

Examples of edu.indiana.extreme.gfac.utils.GfacGUIException

        return ServiceConstants.EDIT_SERVICE;
      }else{
        throw new Exception("Object type passed '" + objectType + "' is not valid");
      }
    } catch (Exception e) {
      String errormessage = new GfacGUIException(e).getMessage();
      e.printStackTrace();
      FacesMessage message = new FacesMessage(
                  FacesMessage.SEVERITY_ERROR,
                  e.getClass().getName(),errormessage);
              FacesContext.getCurrentInstance().addMessage(
View Full Code Here

Examples of edu.indiana.extreme.gfac.utils.GfacGUIException

      FacesContext facesContext=FacesContext.getCurrentInstance();
          SearchBean searchbean = (SearchBean)facesContext.getExternalContext().getSessionMap().get("searchBean");
          searchbean.search();
      return ServiceConstants.DELETED_STATUS;
    } catch (Exception e) {
      String errormessage = new GfacGUIException(e).getMessage();
        FacesMessage message = new FacesMessage(
                  FacesMessage.SEVERITY_ERROR,
                  e.getClass().getName(),errormessage);
              FacesContext.getCurrentInstance().addMessage(
                  null, message);
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.