Package org.uddi.api_v3

Examples of org.uddi.api_v3.Name


   * @param lang
   * @return
   */
  public static Name generateName(String value, String lang)
  {
    Name name = new Name();
    name.setValue(value);
    if(lang != null)
      name.setLang(lang);
     
    return name;
  }
View Full Code Here


  @Override
  protected void postValidate() throws Exception
  {
    BusinessList businessList;
   
    Name name = new Name();
    name.setValue(businessEntity.getName().get(0).getValue());
    name.setLang(businessEntity.getName().get(0).getLang());
   
    FindBusiness findBusiness = new FindBusiness();
    findBusiness.getName().add(name);
   
    inqueryService = JUDDIServiceProvider.getInquiryService();
View Full Code Here

  {
    GeneralDataProvider data = GeneralDataProvider.getInstance();
    serviceName = data.getCountry(false);// retrieves random service name from country file
   
    //Name of the service in English.
    Name name = new Name();
    name.setLang("en");
    name.setValue(serviceName);

    //Description of the service in English.
    Description description = new Description();
    description.setLang("en");
    description.setValue(data.getText(1, false));
View Full Code Here

    if (body.getFindTModel()==null && body.getCategoryBag()==null &&
        ( body.getTModelBag()==null || body.getTModelBag().getTModelKey().size() == 0)
        && body.getName().size() == 0 && body.getBusinessKey() != null) {
      //support searching for all services for a business
      findQualifiers.setApproximateMatch(true);
      body.getName().add(new Name("%", null));
    }
    keysFound = FindServiceByNameQuery.select(em, findQualifiers, body.getName(), body.getBusinessKey(), keysFound);
   
    if (body.getTModelBag().getTModelKey().size()==0) body.setTModelBag(null);
    return keysFound;
View Full Code Here

   * different from the deleted business key.
   */
  @Override
  protected void postValidate() throws Exception
 
    Name name = serviceInfo.getName().get(0);
    String businessKey = serviceInfo.getBusinessKey();
    String serviceKey = serviceInfo.getServiceKey();
   
    FindService findService = new FindService();
    findService.getName().add(name);
View Full Code Here

    FindQualifiers findQualifiers = new FindQualifiers();
    findQualifiers.getFindQualifier().add("sortByNameDesc");
    findQualifiers.getFindQualifier().add("approximateMatch");

    int maxServ = 0;
    Name r = new Name();
    r.setLang("en");
    r.setValue(serviceToFind);
   
    FindService findService = new FindService();
    findService.setAuthInfo(authenticationToken.getAuthInfo());
    findService.getName().add(r);
    findService.setFindQualifiers(findQualifiers);
    findService.setMaxRows(maxServ);
   
    ServiceList serviceList = inquiryService.findService(findService);
    serviceInfos = serviceList.getServiceInfos();
   
    //ServiceInfo serviceInfo = null;
   
    //serviceInfo becomes the first service found?
    for (ServiceInfo si : serviceInfos.getServiceInfo())
    {
      if (serviceInfo == null)
      {
        serviceInfo = si;
      }
     
      Name _name = si.getName().get(0);
      System.out.println("ServiceInfo #: " + _name.getValue());
    }

   
  }
View Full Code Here

      fb.setAuthInfo(token);
      org.uddi.api_v3.FindQualifiers fq = new org.uddi.api_v3.FindQualifiers();
      fq.getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);

      fb.setFindQualifiers(fq);
      Name searchname = new Name();
      searchname.setValue(UDDIConstants.WILDCARD);
      fb.getName().add(searchname);
      BusinessList findBusiness = inquiry.findBusiness(fb);
      return findBusiness;

   }
View Full Code Here

        private void ExportBusiness() throws Exception {
                FileOutputStream fos = new FileOutputStream(businessfile);
                FindBusiness req = new FindBusiness();
                req.setAuthInfo(token);
                req.getName().add(new Name(UDDIConstants.WILDCARD, null));
                req.setFindQualifiers(new FindQualifiers());
                req.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                int offset = 0;
                int maxrows = 100;
View Full Code Here

        }

        private void ExportTmodels() throws Exception {
                FileOutputStream fos = new FileOutputStream(tmodelfile);
                FindTModel req = new FindTModel();
                req.setName(new Name(UDDIConstants.WILDCARD, null));
                req.setAuthInfo(token);
                req.setFindQualifiers(new FindQualifiers());
                req.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
                int offset = 0;
                int maxrows = 100;
View Full Code Here

  public TModelList findTModel(String name, CategoryBag categoryBag,
      IdentifierBag identifierBag, FindQualifiers findQualifiers,
      int maxRows) throws RegistryV3Exception {
    FindTModel request = this.objectFactory.createFindTModel();

    Name jaxbName = this.objectFactory.createName();

    if (name != null) {
      jaxbName.setValue(name);
    }

    request.setName(jaxbName);

    if (categoryBag != null) {
View Full Code Here

TOP

Related Classes of org.uddi.api_v3.Name

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.