Examples of RegisteredInfo


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

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    RegisteredInfo obj = new RegisteredInfo();
    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,BusinessInfosHandler.TAG_NAME);
    if (nodeList.size() > 0)
    {
      handler = maker.lookup(BusinessInfosHandler.TAG_NAME);
      obj.setBusinessInfos((BusinessInfos)handler.unmarshal((Element)nodeList.elementAt(0)));
    }

    nodeList = XMLUtils.getChildElementsByTagName(element,TModelInfosHandler.TAG_NAME);
    if (nodeList.size() > 0)
    {
      handler = maker.lookup(TModelInfosHandler.TAG_NAME);
      obj.setTModelInfos((TModelInfos)handler.unmarshal((Element)nodeList.elementAt(0)));
    }

    return obj;
  }
View Full Code Here

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

    return obj;
  }

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

    String generic = info.getGeneric();
    if (generic != null)
    {
      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);
    }

    String operator = info.getOperator();
    if (operator != null)
      element.setAttribute("operator",operator);

    BusinessInfos bInfos = info.getBusinessInfos();
    if (bInfos!=null)
    {
      handler = maker.lookup(BusinessInfosHandler.TAG_NAME);
      handler.marshal(bInfos,element);
    }

    TModelInfos tInfos = info.getTModelInfos();
    if (tInfos!=null)
    {
      handler = maker.lookup(TModelInfosHandler.TAG_NAME);
      handler.marshal(tInfos,element);
    }
View Full Code Here

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

    TModelInfos tInfos = new TModelInfos();
    tInfos.addTModelInfo(tInfo);
    tInfos.addTModelInfo(tInfo);

    RegisteredInfo info = new RegisteredInfo();
    info.setGeneric("2.0");
    info.setOperator("jUDDI.org");
    info.setBusinessInfos(bInfos);
    info.setTModelInfos(tInfos);

    System.out.println();

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

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

    TModelInfos tInfos = new TModelInfos();
    tInfos.addTModelInfo(tInfo);
    tInfos.addTModelInfo(tInfo);

    RegisteredInfo object = new RegisteredInfo();
    object.setGeneric("2.0");
    object.setOperator("jUDDI.org");
    object.setBusinessInfos(bInfos);
    object.setTModelInfos(tInfos);


    return object;

  }
View Full Code Here

Examples of org.apache.ws.scout.model.uddi.v2.RegisteredInfo

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

        RegisteredInfo ri;
        JAXBElement<?> o = execute(this.objectFactory.createGetRegisteredInfo(request),
            this.getPublishURI());
        ri = (RegisteredInfo) o.getValue();

        return ri;
View Full Code Here

Examples of org.apache.ws.scout.model.uddi.v2.RegisteredInfo

          ConnectionImpl con = ((RegistryServiceImpl)getRegistryService()).getConnection();
            AuthToken auth = this.getAuthToken(con,registry);
         
            try
            {
              RegisteredInfo ri = null;
              try {
                ri = registry.getRegisteredInfo(auth.getAuthInfo());
              } catch (RegistryException rve) {
                String username = getUsernameFromCredentials(con.getCredentials());
                if (AuthTokenSingleton.getToken(username) != null) {
View Full Code Here

Examples of org.apache.ws.scout.model.uddi.v2.RegisteredInfo

          ConnectionImpl con = ((RegistryServiceImpl)getRegistryService()).getConnection();
            AuthToken auth = this.getAuthToken(con,registry);
        LinkedHashSet<Organization> orgs = null;
            try
            {
              RegisteredInfo ri = null;
              try {
                ri = registry.getRegisteredInfo(auth.getAuthInfo());
              } catch (RegistryException rve) {
                String username = getUsernameFromCredentials(con.getCredentials());
                if (AuthTokenSingleton.getToken(username) != null) {
                  AuthTokenSingleton.deleteAuthToken(username);
                }
                auth = getAuthToken(con, registry);
                ri = registry.getRegisteredInfo(auth.getAuthInfo());
              }

              if (ri != null && ri.getBusinessInfos()!=null) {
                List<BusinessInfo> bizInfoList = ri.getBusinessInfos().getBusinessInfo();
                orgs = new LinkedHashSet<Organization>();
                for (BusinessInfo businessInfo : bizInfoList) {
                  BusinessDetail detail = registry.getBusinessDetail(businessInfo.getBusinessKey());
                        orgs.add(((BusinessLifeCycleManagerImpl)registryService.getLifeCycleManagerImpl()).createOrganization(detail));
          }
View Full Code Here

Examples of org.apache.ws.scout.model.uddi.v2.RegisteredInfo

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

        RegisteredInfo ri;
        JAXBElement<?> o = execute(this.objectFactory.createGetRegisteredInfo(request),
            this.getPublishURI());
        ri = (RegisteredInfo) o.getValue();

        return ri;
View Full Code Here

Examples of org.apache.ws.scout.model.uddi.v2.RegisteredInfo

          ConnectionImpl con = ((RegistryServiceImpl)getRegistryService()).getConnection();
            AuthToken auth = this.getAuthToken(con,registry);
         
            try
            {
              RegisteredInfo ri = registry.getRegisteredInfo(auth.getAuthInfo());
                if (ri != null) {
                    for (String key:keys) {
                        BusinessDetail detail = registry.getBusinessDetail(key);
                        col.add(registryService.getLifeCycleManagerImpl().createOrganization(detail));
                    }
View Full Code Here

Examples of org.apache.ws.scout.model.uddi.v2.RegisteredInfo

          ConnectionImpl con = ((RegistryServiceImpl)getRegistryService()).getConnection();
            AuthToken auth = this.getAuthToken(con,registry);
        LinkedHashSet<Organization> orgs = null;
            try
            {
              RegisteredInfo ri = registry.getRegisteredInfo(auth.getAuthInfo());
              if (ri != null && ri.getBusinessInfos()!=null) {
                List<BusinessInfo> bizInfoList = ri.getBusinessInfos().getBusinessInfo();
                orgs = new LinkedHashSet<Organization>();
                for (BusinessInfo businessInfo : bizInfoList) {
                  BusinessDetail detail = registry.getBusinessDetail(businessInfo.getBusinessKey());
                        orgs.add(registryService.getLifeCycleManagerImpl().createOrganization(detail));
          }
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.