Examples of AssertionStatusReport


Examples of com.sun.xml.registry.uddi.bindings_v2_2.AssertionStatusReport

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

Examples of org.apache.juddi.datatype.response.AssertionStatusReport

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    AssertionStatusReport obj = new AssertionStatusReport();
    Vector nodeList = null;
    AbstractHandler handler = null;

    // We could use the generic attribute value to
    // determine which version of UDDI was used to
    // format the request XML. - Steve

    // Attributes
    obj.setGeneric(element.getAttribute("generic"));
    obj.setOperator(element.getAttribute("operator"));

    // We can ignore the xmlns attribute since we
    // can always determine it's value using the
    // "generic" attribute. - Steve

    // Text Node Value
    // {none}

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,AssertionStatusItemHandler.TAG_NAME);
    for (int i=0; i<nodeList.size(); i++)
    {
      handler = maker.lookup(AssertionStatusItemHandler.TAG_NAME);
      obj.addAssertionStatusItem((AssertionStatusItem)handler.unmarshal((Element)nodeList.elementAt(i)));
    }

    return obj;
  }
View Full Code Here

Examples of org.apache.juddi.datatype.response.AssertionStatusReport

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    AssertionStatusReport report = (AssertionStatusReport)object;
    String generic = report.getGeneric();
    generic = getGeneric(generic);
    String namespace = getUDDINamespace(generic);
    Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
    AbstractHandler handler = null;

    element.setAttribute("generic",generic);
   
    String operator = report.getOperator();
    if (operator != null)
      element.setAttribute("operator",operator);
    else
      element.setAttribute("operator","");
   
    Vector vector = report.getAssertionStatusItemVector();
    if ((vector!=null) && (vector.size() > 0))
    {
      handler = maker.lookup(AssertionStatusItemHandler.TAG_NAME);
      for (int i=0; i<vector.size(); i++)
        handler.marshal((AssertionStatusItem)vector.elementAt(i),element);
View Full Code Here

Examples of org.apache.juddi.datatype.response.AssertionStatusReport

    item.setToKey("dd45a24c-74fc-4e82-80c2-f99cdc76d681");
    item.setKeyedReference(new KeyedReference("uuid:8ff45356-acde-4a4c-86bf-f953611d20c6","Subsidiary","1"));
    item.setCompletionStatus(new CompletionStatus(CompletionStatus.COMPLETE));
    item.setKeysOwned(keysOwned);

    AssertionStatusReport report = new AssertionStatusReport();
    report.setGeneric("2.0");
    report.setOperator("jUDDI.org");
    report.addAssertionStatusItem(item);
    report.addAssertionStatusItem(item);

    System.out.println();

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

Examples of org.apache.juddi.datatype.response.AssertionStatusReport

  {
    GetAssertionStatusReport request = (GetAssertionStatusReport)regObject;
    String generic = request.getGeneric();
    String completionStatus = request.getCompletionStatus();
    AuthInfo authInfo = request.getAuthInfo();
    AssertionStatusReport report = null;

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

    try
    {
      dataStore.beginTrans();

      // validates authentication parameters
      Publisher publisher = getPublisher(authInfo,dataStore);
      String publisherID = publisher.getPublisherID();

      // validate request parameters & execute
      // nothing to validate

      // get the AssertionStatusReport
      report = new AssertionStatusReport();
      report.setGeneric(generic);
      report.setOperator(Config.getOperator());
      report.setAssertionStatusItemVector(dataStore.getAssertionStatusItems(publisherID,completionStatus));

      dataStore.commit();
    }
    catch(RegistryException regex)
    {
View Full Code Here

Examples of org.apache.juddi.datatype.response.AssertionStatusReport

    item.setToKey("dd45a24c-74fc-4e82-80c2-f99cdc76d681");
    item.setKeyedReference(new KeyedReference("uuid:8ff45356-acde-4a4c-86bf-f953611d20c6","Subsidiary","1"));
    item.setCompletionStatus(new CompletionStatus(CompletionStatus.COMPLETE));
    item.setKeysOwned(keysOwned);

    AssertionStatusReport object = new AssertionStatusReport();
    object.setGeneric("2.0");
    object.setOperator("jUDDI.org");
    object.addAssertionStatusItem(item);
    object.addAssertionStatusItem(item);

    return object;

  }
View Full Code Here

Examples of org.apache.juddi.datatype.response.AssertionStatusReport

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    AssertionStatusReport obj = new AssertionStatusReport();
    Vector nodeList = null;
    AbstractHandler handler = null;

    // We could use the generic attribute value to
    // determine which version of UDDI was used to
    // format the request XML. - Steve

    // Attributes
    obj.setGeneric(element.getAttribute("generic"));
    obj.setOperator(element.getAttribute("operator"));

    // We can ignore the xmlns attribute since we
    // can always determine it's value using the
    // "generic" attribute. - Steve

    // Text Node Value
    // {none}

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,AssertionStatusItemHandler.TAG_NAME);
    for (int i=0; i<nodeList.size(); i++)
    {
      handler = maker.lookup(AssertionStatusItemHandler.TAG_NAME);
      obj.addAssertionStatusItem((AssertionStatusItem)handler.unmarshal((Element)nodeList.elementAt(i)));
    }

    return obj;
  }
View Full Code Here

Examples of org.apache.juddi.datatype.response.AssertionStatusReport

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    AssertionStatusReport report = (AssertionStatusReport)object;
    Element element = parent.getOwnerDocument().createElementNS(null,TAG_NAME);
    AbstractHandler handler = null;

    String generic = report.getGeneric();
    if ((generic != null) && (generic.trim().length() > 0))
    {
      element.setAttribute("generic",generic);

      if (generic.equals(IRegistry.UDDI_V1_GENERIC))
        element.setAttribute("xmlns",IRegistry.UDDI_V1_NAMESPACE);
      else if (generic.equals(IRegistry.UDDI_V2_GENERIC))
        element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
      else if (generic.equals(IRegistry.UDDI_V3_GENERIC))
        element.setAttribute("xmlns",IRegistry.UDDI_V3_NAMESPACE);
    }
    else // Default to UDDI v2 values
    {
      element.setAttribute("generic",IRegistry.UDDI_V2_GENERIC);
      element.setAttribute("xmlns",IRegistry.UDDI_V2_NAMESPACE);
    }
   
    String operator = report.getOperator();
    if (operator != null)
      element.setAttribute("operator",operator);
    else
      element.setAttribute("operator","");
   
    Vector vector = report.getAssertionStatusItemVector();
    if ((vector!=null) && (vector.size() > 0))
    {
      handler = maker.lookup(AssertionStatusItemHandler.TAG_NAME);
      for (int i=0; i<vector.size(); i++)
        handler.marshal((AssertionStatusItem)vector.elementAt(i),element);
View Full Code Here

Examples of org.apache.juddi.datatype.response.AssertionStatusReport

    item.setToKey("dd45a24c-74fc-4e82-80c2-f99cdc76d681");
    item.setKeyedReference(new KeyedReference("uuid:8ff45356-acde-4a4c-86bf-f953611d20c6","Subsidiary","1"));
    item.setCompletionStatus(new CompletionStatus(CompletionStatus.COMPLETE));
    item.setKeysOwned(keysOwned);

    AssertionStatusReport report = new AssertionStatusReport();
    report.setGeneric("2.0");
    report.setOperator("jUDDI.org");
    report.addAssertionStatusItem(item);
    report.addAssertionStatusItem(item);

    System.out.println();

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

Examples of org.apache.juddi.datatype.response.AssertionStatusReport

  {
    GetAssertionStatusReport request = (GetAssertionStatusReport)regObject;
    String generic = request.getGeneric();
    String completionStatus = request.getCompletionStatus();
    AuthInfo authInfo = request.getAuthInfo();
    AssertionStatusReport report = null;

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

    try
    {
      dataStore.beginTrans();

      // validates authentication parameters
      Publisher publisher = getPublisher(authInfo,dataStore);
      String publisherID = publisher.getPublisherID();

      // validate request parameters & execute
      // nothing to validate

      // get the AssertionStatusReport
      report = new AssertionStatusReport();
      report.setGeneric(generic);
      report.setOperator(Config.getOperator());
      report.setAssertionStatusItemVector(dataStore.getAssertionStatusItems(publisherID,completionStatus));

      dataStore.commit();
    }
    catch(RegistryException regex)
    {
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.