Package javax.xml.registry.infomodel

Examples of javax.xml.registry.infomodel.Key


            pa.setToKey(assc.getTargetObject().getKey().getId());
      }
            Concept c = assc.getAssociationType();
            String v = c.getValue();
      KeyedReference kr = KeyedReference.Factory.newInstance();
            Key key = c.getKey();
      if (key == null) {
        // TODO:Need to check this. If the concept is a predefined
        // enumeration, the key can be the parent classification scheme
                key = c.getClassificationScheme().getKey();
            }
      if (key == null || key.getId() == null) {
        // The parent classification scheme may not always contain the
        // key. It is okay if it doesn't, since the UDDI v2 spec allows
        // TModelKey to be absent.

        // TODO: This setting to "" should not be needed at all.
        // However, a bug in jUDDI needs it to be there. See:
        // http://issues.apache.org/jira/browse/JUDDI-78
        //kr.setTModelKey("");
      } else {
                kr.setTModelKey(key.getId());
      }
            kr.setKeyName("Concept");

      if (v != null) {
            kr.setKeyValue(v);
View Full Code Here


            /*
             * there may not always be a key...
             */
            if (o != null) {
                Key k = o.getKey();

        if (k != null && k.getId() != null) {
                    bs.setBusinessKey(k.getId());
                }
                   
      } else {
                /*
                 * gmj - I *think* this is the right thing to do
View Full Code Here

    try {
            /*
             * a fresh scheme might not have a key
             */

            Key k = scheme.getKey();

            if (k != null && k.getId() != null) {
                tm.setTModelKey(k.getId());
            } else {
                tm.setTModelKey("");
            }

            /*
 
View Full Code Here

      throws JAXRException {
      TModel tm = TModel.Factory.newInstance();
    if (scheme == null)
      return null;
    try {
            Key key = scheme.getKey();
      if (key != null && key.getId() != null)
        tm.setTModelKey(key.getId());
            Slot sl1 = scheme.getSlot("authorizedName");
      if (sl1 != null && sl1.getName() != null)
        tm.setAuthorizedName(sl1.getName());

            Slot sl2 = scheme.getSlot("operator");
View Full Code Here

    BusinessServices bss = BusinessServices.Factory.newInstance();
    BusinessService[] barr = new BusinessService[0];

    try {
      // It may just be an update
            Key key = org.getKey();
      if (key != null && key.getId() != null) {
        biz.setBusinessKey(key.getId());
            } else {
                biz.setBusinessKey("");
            }
      // Lets get the Organization attributes at the top level
     
View Full Code Here

            user.setEmailAddresses(emailAddresses);
            user.setTelephoneNumbers(numbers);

            //Concepts for NAICS and computer          
            ClassificationScheme cScheme = getClassificationScheme("ntis-gov:naics", "");
            Key cKey = blm.createKey("uuid:C0B9FE13-324F-413D-5A5B-2004DB8E5CC2");
            cScheme.setKey(cKey);
            Classification classification = blm.createClassification(cScheme,
                    "Computer Systems Design and Related Services",
                    "5415");
            org.addClassification(classification);
            ClassificationScheme cScheme1 = getClassificationScheme("D-U-N-S", "");
            Key cKey1 = blm.createKey("uuid:3367C81E-FF1F-4D5A-B202-3EB13AD02423");
            cScheme1.setKey(cKey1);
            ExternalIdentifier ei =
                    blm.createExternalIdentifier(cScheme1, "D-U-N-S number",
                            "08-146-6849");
            org.addExternalIdentifier(ei);
            org.addService(service);
            orgs.add(org);
            BulkResponse br = blm.saveOrganizations(orgs);
            if (br.getStatus() == JAXRResponse.STATUS_SUCCESS) {
                System.out.println("Organization Saved");
                Collection coll = br.getCollection();
                Iterator iter = coll.iterator();
                while (iter.hasNext()) {
                    Key key = (Key) iter.next();
                    System.out.println("Saved Key=" + key.getId());
                }//end while
            } else {
                System.err.println("JAXRExceptions " +
                        "occurred during save:");
                Collection exceptions = br.getExceptions();
View Full Code Here

            //String qname= "%S%";
            String qname = "%";
            names.add(qname);
            Collection fQualifiers = new ArrayList();
            fQualifiers.add(FindQualifier.SORT_BY_NAME_DESC);
            Key key = new KeyImpl("67AB9FD0-C3D9-11D8-BC4B-D52B9593C1C0");
            BulkResponse br = bqm.findServices(key, fQualifiers,
                    names, null, null);
            if (br != null &&
                    br.getStatus() == JAXRResponse.STATUS_SUCCESS) {
                System.out.println("Successfully queried the  registry");
View Full Code Here

    * Section D-11
    */
   public Key getKey()
   {
      String id = null;
      Key key = null;
      try
      {
         id = source.getKey().getId();
         id += "|" + target.getKey().getId();
         Key k = null;
         if(type != null ) k = type.getKey();
         if(k == null || k.getId() == "" ) id +="|NULL";
         else
          id+="|"+k.getId();
         id += "|" + "Concept"//UDDI: KeyedReference->Key Name
         //String val = "NULL"; KS unused
         if(type!= nullid += "|" + type.getValue();
         else  id +="|NULL";

View Full Code Here

        try {
            Iterator iter = keys.iterator();
            int currLoc = 0;
            while (iter.hasNext()) {
                Key key = (Key) iter.next();
                keyarr[currLoc] = key.getId();
                currLoc++;
            }
            // Delete operation
            DispositionReport bd = (DispositionReport) executeOperation(keyarr, op);
            List<Result> resultList = bd.getResult();
View Full Code Here

                bt.setAccessPoint(accessPoint);
            }
            ServiceBinding sb = serviceBinding.getTargetBinding();
      if (sb != null) {
        HostingRedirector red = objectFactory.createHostingRedirector();
                Key key = sb.getKey();
        if (key != null && key.getId() != null) {
          red.setBindingKey(key.getId());
                } else {
                    red.setBindingKey("");
                }
                bt.setHostingRedirector(red);
            } else {
View Full Code Here

TOP

Related Classes of javax.xml.registry.infomodel.Key

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.