Package edu.indiana.extreme.xbaya.xregistry

Examples of edu.indiana.extreme.xbaya.xregistry.XRegistryAccesser


  private void ok() {
    OGCEXRegistrySearchResult result = this.list.getSelectedValue();
    hide();

    try {
      Workflow workflow = new XRegistryAccesser(this.engine)
          .getOGCEWorkflow(result.getData().getResourceID());
      OGCEXRegistryLoaderWindow.this.engine.setWorkflow(workflow);
    } catch (Exception e) {
      OGCEXRegistryLoaderWindow.this.engine.getErrorWindow().error(e);
    }
View Full Code Here


      OGCEXRegistryLoaderWindow.this.engine.getErrorWindow().error(e);
    }
  }

  private void delete() {
    XRegistryAccesser xregistryAccesser = new XRegistryAccesser(
        OGCEXRegistryLoaderWindow.this.engine);
    for (OGCEXRegistrySearchResult i : this.list.getSelectedValues()) {
      try {
        xregistryAccesser.deleteOGCEWorkflow(i.getQname());
      } catch (XRegistryClientException e) {
        e.printStackTrace();
      }
    }
    this.list.removeSelectedRows();
View Full Code Here

public class StreamClient {
 
  public void invoke(String operationName, WsdlDefinitions wsdl, String name, String topic){
    ODEClient odeClient = new ODEClient();
    GSSCredential credential = SecurityUtil.getGSSCredential("chathura", "changeme", XBayaConstants.DEFAULT_MYPROXY_SERVER);
    XRegistryAccesser xregistryAccesser = new XRegistryAccesser(credential, XBayaConstants.DEFAULT_XREGISTRY_URL);
    Workflow workflow = xregistryAccesser.getWorkflow(name);
   
    GsiInvoker secureInvoker = null;
    secureInvoker = new GsiInvoker(credential, XBayaSecurity
        .getTrustedCertificates());
View Full Code Here

    return window;
  }

  private Object[] initApplicationNameList() {
    XRegistryAccesser xRegAccesser = new XRegistryAccesser(this.engine);
    AppData[] appDataList = xRegAccesser.searchApplicationByName("");
    List<String> nameList = new ArrayList<String>();
    nameList.add("Select Application");
    for (AppData appData : appDataList) {
      nameList.add(appData.getName().getLocalPart());
    }
View Full Code Here

      }

      serviceBean.setMethodBean(methodBean);

      /* Register to XRegistry */
      XRegistryAccesser xRegAccesser = new XRegistryAccesser(this.engine);

      if (!this.isEditing) {
        xRegAccesser.registerService(serviceBean);
      } else {
        /* Delete old Service Bean */
        QName qName = new QName(this.editingServiceBean.getObjectNamespace(), this.editingServiceBean.getServiceName());
        xRegAccesser.deleteServiceDescrption(qName);

        /* Register updated Service Bean */
        xRegAccesser.registerService(serviceBean);

        this.isEditing = false;
        this.addServiceButton.setText("Add Service");
      }

View Full Code Here

          .substring(secondColonLocation + 1, thirdColonLocation));
    } else {
      workflowQName = new QName(templateIDString);
    }

    XRegistryAccesser xregistryAccesser = new XRegistryAccesser(this.xbayaEngine);
    String templateAsString = xregistryAccesser.getWorkflow(workflowQName).toString();

    System.out.println("templateAsString = " + templateAsString);

    workflow = new Workflow(XMLUtil
        .stringToXmlElement(templateAsString));
View Full Code Here

   *
   */
  public ExperimentMenu(XBayaEngine engine) {
    this.engine = engine;
    this.odeDeploymentDescription = new ODEDeploymentDescriptor();
    this.xregistryAccesser = new XRegistryAccesser(engine);

    createExperimentMenu();
  }
View Full Code Here

  /**
   *
   */
  protected void register() {
    try {
      XRegistryAccesser xregistryAccesser = new XRegistryAccesser(
          this.engine);
      StringBuffer fileData = new StringBuffer(1000);
      BufferedReader reader = new BufferedReader(new FileReader(
          this.fileLocationField.getText()));
      char[] buf = new char[1024];
      int numRead = 0;
      while ((numRead = reader.read(buf)) != -1) {
        String readData = String.valueOf(buf, 0, numRead);
        fileData.append(readData);
        buf = new char[1024];
      }
      reader.close();

      if (this.docTypeComboBox.getText().equals("Host")) {
        xregistryAccesser.registerHost(fileData.toString());
      } else if (this.docTypeComboBox.getText().equals("Application")) {
        xregistryAccesser.registerApplication(fileData.toString());
      } else {
        xregistryAccesser.registerService(fileData.toString());
      }

      JOptionPane.showMessageDialog(RegisterThroughFileWindow.this.dialog
          .getDialog(), this.docTypeComboBox.getText()
          + " description registered successfully", "Successfully",
View Full Code Here

   */
  public WsdlDefinitions getWorkflowWSDL(URI xRegistryURI,
      GSSCredential gssCredential, QName qname,
      String odeEprEndingWithPort) {
    try {
      XRegistryAccesser xregistryAccesser = new XRegistryAccesser(gssCredential, xRegistryURI);
      Workflow workflow = xregistryAccesser.getWorkflow(qname);
      // The REsulting WSDL is not affected by the DSCURL this is
      // necessary to create the other scripts
      // So send in some dummy URI for DSC
      URI dscUrl = XBayaConstants.DEFAULT_DSC_URL;
      return workflow.getOdeInvokableWSDL(dscUrl, odeEprEndingWithPort);
View Full Code Here

    this.jythonFiler = new JythonFiler(engine);
    this.imageFiler = new ImageFiler(engine);
    this.bpelFiler = new BPELFiler(engine);
    this.scuflFiler = new ScuflFiler(engine);
    this.odeDeploymentDescription = new ODEDeploymentDescriptor();
    this.xregistryAccesser = new XRegistryAccesser(engine);

    createFileMenu();
  }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.xregistry.XRegistryAccesser

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.