Package org.apache.juddi.datatype.request

Examples of org.apache.juddi.datatype.request.DeleteBusiness


    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    DeleteBusiness request = (DeleteBusiness)object;
    Element element = parent.getOwnerDocument().createElement(TAG_NAME);
    AbstractHandler handler = null;

    String generic = request.getGeneric();
    if (generic != null)
      element.setAttribute("generic",generic);

    AuthInfo authInfo = request.getAuthInfo();
    if (authInfo != null)
    {
      handler = maker.lookup(AuthInfoHandler.TAG_NAME);
      handler.marshal(authInfo,element);
    }

    Vector keyVector = request.getBusinessKeyVector();
    if ((keyVector!=null) && (keyVector.size() > 0))
    {
      handler = maker.lookup(BusinessKeyHandler.TAG_NAME);
      for (int i=0; i<keyVector.size(); i++)
        handler.marshal(new BusinessKey((String)keyVector.elementAt(i)),element);
View Full Code Here


    Element child = null;

    AuthInfo authInfo = new AuthInfo();
    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    DeleteBusiness service = new DeleteBusiness();
    service.setAuthInfo(authInfo);
    service.addBusinessKey("1bd50f65-9671-41ae-8d13-b3b5a5afcda0");
    service.addBusinessKey(new BusinessKey("1fbe67e6-f8b5-4743-a23f-9c13e4273d9f"));

    System.out.println();

    RegistryObject regObject = service;
    handler.marshal(regObject,parent);
View Full Code Here

   */
  public RegistryObject execute(RegistryObject regObject)
    throws RegistryException
  {
    // extract individual parameters
    DeleteBusiness request = (DeleteBusiness)regObject;
    String generic = request.getGeneric();
    AuthInfo authInfo = request.getAuthInfo();
    Vector businessKeyVector = request.getBusinessKeyVector();

    // aquire a jUDDI datastore instance
    DataStore dataStore = DataStoreFactory.getDataStore();

    try
View Full Code Here

    reg.init();

    try
    {
      // create a request
      DeleteBusiness request = new DeleteBusiness();

      // invoke the server
      DispositionReport response = (DispositionReport)reg.execute(request);
      System.out.println("errno: "+response.toString());
    }
View Full Code Here

  {

    AuthInfo authInfo = new AuthInfo();
    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    DeleteBusiness object = new DeleteBusiness();
    object.setAuthInfo(authInfo);
    object.addBusinessKey("1bd50f65-9671-41ae-8d13-b3b5a5afcda0");
    object.addBusinessKey(new BusinessKey("1fbe67e6-f8b5-4743-a23f-9c13e4273d9f"));

    return object;

  }
View Full Code Here

   * @exception RegistryException;
   */
  public DispositionReport deleteBusiness(AuthInfo authInfo,Vector businessKeyVector)
    throws RegistryException
  {
    DeleteBusiness request = new DeleteBusiness();
    request.setAuthInfo(authInfo);
    request.setBusinessKeyVector(businessKeyVector);

    return (DispositionReport)execute(request);
  }
View Full Code Here

TOP

Related Classes of org.apache.juddi.datatype.request.DeleteBusiness

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.