Package edu.indiana.extreme.xbaya.mylead

Examples of edu.indiana.extreme.xbaya.mylead.MyLeadConfiguration


     * @throws ComponentRegistryException
     */
    public void testMetadata() throws ComponentException, GraphException,
            XmlException, ComponentRegistryException {
        WorkflowCreator workflowCreator = new WorkflowCreator();
        MyLeadConfiguration myleadConfig = new MyLeadConfiguration(
                this.configuration.getMyLeadAgentURL(), this.configuration
                        .getMyLeadUser(), this.configuration.getMyLeadProject());

        Workflow workflow = workflowCreator.createGFacWorkflow();
        String templateID = "http://test";

        String uid = myleadConfig.getUser();

        String name = workflow.getName();
        String description = workflow.getDescription();

        MinimalLEADMetadata metadata = new MinimalLEADMetadata(uid, name, description);
View Full Code Here


            MyLeadException, ComponentRegistryException, MyProxyException {
        // Get MyProxy
        this.myProxyClient.load();
        GSSCredential proxy = this.myProxyClient.getProxy();

        MyLeadConfiguration myleadConfig = new MyLeadConfiguration(
                this.configuration.getMyLeadAgentURL(), this.configuration
                        .getMyLeadUser(), this.configuration.getMyLeadProject());
        MyLead myLead = new MyLead(myleadConfig, proxy);
        WorkflowCreator workflowCreator = new WorkflowCreator();
View Full Code Here

    public void testList() throws MyLeadException, MyProxyException {
        // Get MyProxy
        this.myProxyClient.load();
        GSSCredential proxy = this.myProxyClient.getProxy();

        MyLeadConfiguration myleadConfig = new MyLeadConfiguration(
                this.configuration.getMyLeadAgentURL(), this.configuration
                        .getMyLeadUser(), this.configuration.getMyLeadProject());
        MyLead myLead = new MyLead(myleadConfig, proxy);
        List<MyleadWorkflowMetadata> workflowTemplates = myLead.list();
        for (MyleadWorkflowMetadata template : workflowTemplates) {
View Full Code Here

            ComponentRegistryException, MyProxyException {
        // Get MyProxy
        this.myProxyClient.load();
        GSSCredential proxy = this.myProxyClient.getProxy();

        MyLeadConfiguration myleadConfig = new MyLeadConfiguration(
                this.configuration.getMyLeadAgentURL(), this.configuration
                        .getMyLeadUser(), this.configuration.getMyLeadProject());
        MyLead myLead = new MyLead(myleadConfig, proxy);

        UserX509Credential gpelUserCredential = new UserX509Credential(
View Full Code Here

            if (this.mode == GUI_MODE) {
              leadCtxHeader = WSDLUtil.buildLeadContextHeader(this.workflow, this.configuration, this.engine.getMyLead(), new MonitorConfiguration(this.configuration.getBrokerURL(), this.topic, true, this.configuration.getMessageBoxURL()), wsNode.getID(), null);
            } else {
              leadCtxHeader = WSDLUtil.buildLeadContextHeader(this.workflow, this.configuration,
              // Set the userdn in the right proxy if necessary
                  new MyLead(new MyLeadConfiguration(), proxy), new MonitorConfiguration(this.configuration.getBrokerURL(), this.topic, true, this.configuration.getMessageBoxURL()), wsNode.getID(), null);
            }
          } catch (URISyntaxException e) {
            throw new XBayaException(e);
          }
View Full Code Here

              leadCtxHeader = WSDLUtil.buildLeadContextHeader(this.workflow, this.configuration, this.engine.getMyLead(), new MonitorConfiguration(this.configuration.getBrokerURL(), this.topic, true, this.configuration.getMessageBoxURL()), foreachWSNode.getID(), null);
            } else {
              leadCtxHeader = WSDLUtil.buildLeadContextHeader(this.workflow, this.configuration,
              // //////////Set the userdn in
              // the right proxy if necessary
                  new MyLead(new MyLeadConfiguration(), proxy), new MonitorConfiguration(this.configuration.getBrokerURL(), this.topic, true, this.configuration.getMessageBoxURL()), foreachWSNode.getID(), null);
            }

          } catch (URISyntaxException e) {
            raiseException(e);
          }
View Full Code Here

    }
  }

  private void initMyLead() {
    MyLeadConfiguration myLeadConfiguration = this.myLead
        .getConfiguration();
    try {
      myLeadConfiguration.set(this.configuration.getMyLeadAgentURL(),
          this.configuration.getMyLeadUser(), this.configuration
              .getMyLeadProject());
    } catch (RuntimeException e) {
      getErrorWindow().error(ErrorMessages.UNEXPECTED_ERROR, e);
    } catch (Error e) {
View Full Code Here

        XBayaConfiguration config = this.engine.getConfiguration();
        URI url = config.getMyLeadAgentURL();
        String user = config.getMyLeadSampleUser();
        String project = config.getMyLeadSampleProject();
        final MyLeadConfiguration configuration = new MyLeadConfiguration(url,
                user, project);
        boolean valid = configuration.isValid();
        this.myLeadLoadSampleWorkflowItem.setEnabled(valid);
        this.myLeadLoadSampleWorkflowItem
                .addActionListener(new AbstractAction() {
                    private MyLeadLoadWindow window;
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.mylead.MyLeadConfiguration

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.