Package fit

Examples of fit.Binding$SaveBinding


    /**
     * Create an instance of {@link SaveBinding }
     *
     */
    public SaveBinding createSaveBinding() {
        return new SaveBinding();
    }
View Full Code Here


      // next evaluate output params
      for (int column = 0; column < accessors.length; column++, cell = cell.more) {
        int direction = accessors[column].getDirection();
        if (direction == DbParameterAccessor.OUTPUT || direction == DbParameterAccessor.RETURN_VALUE
            || direction == DbParameterAccessor.SEQUENCE) {
          Binding binding = columnBindings[column];
          if (binding instanceof SymbolAccessQueryBinding) {
            String keyName = accessors[column].getName();
            ((SymbolAccessQueryBinding) binding).doCell(this, cell, keyName, rowNum);
          } else {
            columnBindings[column].doCell(this, cell);
View Full Code Here

     * bind db accessors to columns based on the text in the header
     */
    private Map<DbParameterAccessor, Binding> getColumnBindings() throws Exception {
        Map<DbParameterAccessor, Binding> bindings = new HashMap<DbParameterAccessor, Binding>();
        for (DbParameterAccessor accessor : accessors.toArray()) {
            Binding binding = (accessor.hasDirection(INPUT) ? new SymbolAccessSetBinding() : new SymbolAccessQueryBinding());
            binding.adapter = new DbParameterAccessorTypeAdapter(accessor, this);
            bindings.put(accessor, binding);
        }
        return bindings;
    }
View Full Code Here

   *
   * @exception RegistryException;
   */
  public BindingDetail saveBinding(String authInfo,
      BindingTemplate[] bindingArray) throws RegistryException {
    SaveBinding request = this.objectFactory.createSaveBinding();

    if (authInfo != null) {
      request.setAuthInfo(authInfo);
    }

    if (bindingArray != null) {
      request.getBindingTemplate().addAll(Arrays.asList(bindingArray));
    }
   
        BindingDetail bd;
        JAXBElement<?> o = execute(this.objectFactory.createSaveBinding(request),
            this.getPublishURI());
View Full Code Here

   *
   * @exception RegistryException;
   */
  public BindingDetail saveBinding(String authInfo,
      BindingTemplate[] bindingArray) throws RegistryException {
    SaveBinding request = this.objectFactory.createSaveBinding();

    if (authInfo != null) {
      request.setAuthInfo(authInfo);
    }

    if (bindingArray != null) {
      request.getBindingTemplate().addAll(Arrays.asList(bindingArray));
    }
   
        BindingDetail bd;
        JAXBElement<?> o = execute(this.objectFactory.createSaveBinding(request),
            this.getPublishURI());
View Full Code Here

                r.getTModelKey().addAll(body.getTModelKey());
                return r;
        }
       
        public static SaveBinding MapSaveBinding(org.uddi.api_v3.SaveBinding body) {
                SaveBinding r = new SaveBinding();
                r.setGeneric(VERSION);
               
                r.setAuthInfo(body.getAuthInfo());
                r.getBindingTemplate().addAll(MapBinding(body.getBindingTemplate()));
                return r;
        }
View Full Code Here

   
    BindingTemplate bindingTemplate=null;
    log.info("Registering bindingTemplate with key " + binding.getBindingKey());
    try {
      String authToken = getAuthToken(node.getSecurityUrl());
      SaveBinding saveBinding = new SaveBinding();
      saveBinding.setAuthInfo(authToken);
      saveBinding.getBindingTemplate().add(binding);
      BindingDetail bindingDetail = getUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).saveBinding(saveBinding);
      bindingTemplate = bindingDetail.getBindingTemplate().get(0);
    } catch (Exception e) {
      log.error("Unable to register template binding " + bindingTemplate.getBindingKey()
          + " ." + e.getMessage(),e);
View Full Code Here

  }
 
  public void saveBinding(String authInfo, String bindingXML, String bindingKey) {
    try {
      // First save the entity
      SaveBinding sb = new SaveBinding();
      sb.setAuthInfo(authInfo);
     
      BindingTemplate btIn = (BindingTemplate)EntityCreator.buildFromDoc(bindingXML, "org.uddi.api_v3");
      sb.getBindingTemplate().add(btIn);
      publication.saveBinding(sb);
     
      // Now get the entity and check the values
      GetBindingDetail gb = new GetBindingDetail();
      gb.getBindingKey().add(bindingKey);
View Full Code Here

    this.publication = publication;
  }
 
  public void saveNotifierBinding(String authInfo, String bindingXML, String bindingKey) {
    try {
      SaveBinding sb = new SaveBinding();
      sb.setAuthInfo(authInfo);
     
      BindingTemplate btIn = (BindingTemplate)EntityCreator.buildFromDoc(bindingXML, "org.uddi.api_v3");
      sb.getBindingTemplate().add(btIn);
      publication.saveBinding(sb);   
    }
    catch(Exception e) {
      logger.error(e.getMessage(), e);
      Assert.fail("No exception should be thrown: " + e.getMessage());
View Full Code Here

                this.publication = publication;
        }

        public void saveNotifierBinding(String authInfo, String bindingXML, String bindingKey, Integer port) {
                try {
                        SaveBinding sb = new SaveBinding();
                        sb.setAuthInfo(authInfo);
                        BindingTemplate btIn = (BindingTemplate) EntityCreator.buildFromDoc(bindingXML, "org.uddi.api_v3");
                        String value = btIn.getAccessPoint().getValue();
                        value = value.replace("{randomPort}", port.toString());
                        sb.getBindingTemplate().add(btIn);
                        publication.saveBinding(sb);
                } catch (Exception e) {
                        logger.error(e.getMessage(), e);
                        Assert.fail("No exception should be thrown: " + e.getMessage());
                }
View Full Code Here

TOP

Related Classes of fit.Binding$SaveBinding

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.