Examples of Org


Examples of net.caece.pri.hibernate.Org

        Textbox passwdTB = (Textbox) getFellow("passwd");

        Iterator supplierIt = orgIdCB.getItems().iterator();
        while (supplierIt.hasNext()) {
            Comboitem item = (Comboitem) supplierIt.next();
            Org s = (Org) item.getValue();

            logger.debug("" + var.getOrgId() + ", " + s.getOrgId());
            if (var.getOrgId() != null && var.getOrgId() == s.getOrgId()) {
                orgIdCB.setSelectedItem(item);
            }
        }
        userNameTB.setText(var.getUserName());
        accountTB.setText(var.getAccount());
View Full Code Here

Examples of net.fortuna.ical4j.vcard.property.Org

                            }
                           
                        } //else empty ADR field -> ignore
                        break;
                    case ORG:
                        Org org = (Org)property;
                        String[] unitHierarchy = org.getValues();
                        Mapping orgNameMapping = currentMappings.get(OntologyMappings.ORG_NAME);
                        if(unitHierarchy.length>0 && orgNameMapping != null &&
                                unitHierarchy[0] != null && unitHierarchy[0].trim().length()>0){
                            String orgName = unitHierarchy[0];
                            if(current == null){ //create new Representation for the Organisation
View Full Code Here

Examples of org.apdplat.module.security.model.Org

            ids.addAll(getChildIds(item));
        }
        return ids;
    }
    public static boolean isParentOf(Org parent,Org child){
        Org org=child.getParent();
        while(org!=null){
            if(org.getId()==parent.getId()){
                return true;
            }
            org=org.getParent();
        }
        return false;
    }
View Full Code Here

Examples of org.eclipse.orion.server.cf.objects.Org

        return new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_NOT_FOUND, "Organization not found", null);
      }

      if (this.org == null || "".equals(this.org)) {
        JSONObject org = orgs.getJSONObject(0);
        target.setOrg(new Org().setCFJSON(org));
      } else {
        for (int i = 0; i < orgs.length(); i++) {
          JSONObject orgJSON = orgs.getJSONObject(i);
          if ((!isGuid && org.equals(orgJSON.getJSONObject("entity").getString("name"))) || (isGuid && org.equals(orgJSON.getJSONObject("metadata").getString("guid")))) {
            target.setOrg(new Org().setCFJSON(orgJSON));
            break;
          }
        }
      }
View Full Code Here

Examples of org.jclouds.savvis.vpdc.domain.Org

  
   @Override
   public Iterable<VM> listNodes() {
      Builder<VM> builder = ImmutableSet.builder();
      for (Resource org1 : api.listOrgs()) {
         Org org = api.getBrowsingApi().getOrg(org1.getId());
         for (Resource vdc : org.getVDCs()) {
            VDC VDC = api.getBrowsingApi().getVDCInOrg(org.getId(), vdc.getId());
            for (Resource vApp : Iterables.filter(VDC.getResourceEntities(), new Predicate<Resource>() {

               @Override
               public boolean apply(Resource arg0) {
                  return VCloudMediaType.VAPP_XML.equals(arg0.getType());
               }

            })) {
               builder.add(api.getBrowsingApi().getVMInVDC(org.getId(), vdc.getId(), vApp.getId(),
                     withPowerState()));
            }
         }
      }
      return builder.build();
View Full Code Here

Examples of org.jclouds.savvis.vpdc.domain.Org

   @Override
   public Iterable<Network> listLocations() {
      Builder<Network> builder = ImmutableSet.builder();
      for (Resource org1 : api.listOrgs()) {
         Org org = api.getBrowsingApi().getOrg(org1.getId());
         for (Resource vdc : org.getVDCs()) {
            VDC VDC = api.getBrowsingApi().getVDCInOrg(org.getId(), vdc.getId());
            // optionally constrain locations
            if (email != null && VDC.getDescription().indexOf(email) != -1)
               continue;
            for (Resource network : VDC.getAvailableNetworks()) {
               builder.add(api.getBrowsingApi().getNetworkInVDC(org.getId(), vdc.getId(), network.getId()));
            }
         }
      }
      return builder.build();
   }
View Full Code Here

Examples of org.jclouds.savvis.vpdc.domain.Org

      Matcher matcher = netPattern.matcher(from.getHref().toASCIIString());
      if (matcher.find()) {
         Location provider = new LocationBuilder().scope(LocationScope.PROVIDER).id(providerName).description(
                  endpoint.get().toASCIIString()).iso3166Codes(isoCodes).build();

         Org org = api.getBrowsingApi().getOrg(matcher.group(1));

         Location orgLocation = new LocationBuilder().scope(LocationScope.REGION).id(org.getId()).description(
                  org.getDescription()).parent(provider).build();

         VDC vdc = api.getBrowsingApi().getVDCInOrg(org.getId(), matcher.group(2));

         Location vdcLocation = new LocationBuilder().scope(LocationScope.ZONE).id(vdc.getId()).description(
                  vdc.getDescription()).parent(orgLocation).build();

         return new LocationBuilder().scope(LocationScope.NETWORK).id(from.getId()).description(from.getName()).parent(
View Full Code Here

Examples of org.jclouds.savvis.vpdc.domain.Org

   }

   @Test
   public void testOrg() throws Exception {
      for (Resource org : restContext.getApi().listOrgs()) {
         Org response = api.getOrg(org.getId());

         assertNotNull(response);
         assertNotNull(response.getId());
         assertNotNull(response.getHref());
         assertNotNull(response.getName());
         // savvis leaves this null for some reason
         assertEquals(response.getType(), null);
         assert response.getImages().size() >= 0;
         assert response.getDescription() != null;
         assert response.getVDCs().size() >= 0;
         assertEquals(api.getOrg(response.getId()).toString(), response.toString());
      }
   }
View Full Code Here

Examples of org.jclouds.savvis.vpdc.domain.Org

   }

   @Test
   public void testVDC() throws Exception {
      for (Resource org1 : restContext.getApi().listOrgs()) {
         Org org = api.getOrg(org1.getId());
         for (Resource vdc : org.getVDCs()) {
            VDC response = api.getVDCInOrg(org.getId(), vdc.getId());
            assertNotNull(response);
            assertNotNull(response.getId());
            assertNotNull(response.getHref());
            assertNotNull(response.getName());
            assertNotNull(response.getStatus());
            assertEquals(response.getType(), "application/vnd.vmware.vcloud.vdc+xml");
            assertNotNull(response.getDescription());
            assertNotNull(response.getResourceEntities());
            assertNotNull(response.getAvailableNetworks());
            assertEquals(api.getVDCInOrg(org.getId(), response.getId()).toString(), response.toString());
         }
      }
   }
View Full Code Here

Examples of org.jclouds.savvis.vpdc.domain.Org

   }

   @Test
   public void testNetwork() throws Exception {
      for (Resource org1 : restContext.getApi().listOrgs()) {
         Org org = api.getOrg(org1.getId());
         for (Resource vdc : org.getVDCs()) {
            VDC VDC = api.getVDCInOrg(org.getId(), vdc.getId());
            for (Resource vApp : VDC.getAvailableNetworks()) {
               Network response = api.getNetworkInVDC(org.getId(), vdc.getId(), vApp.getId());
               assertNotNull(response);
               assertNotNull(response.getId());
               assertNotNull(response.getHref());
               assertNotNull(response.getName());
               assertEquals(response.getType(), VCloudMediaType.NETWORK_XML);
               assertNotNull(response.getNetmask());
               assertNotNull(response.getGateway());
               assertNotNull(response.getInternalToExternalNATRules());
               assertEquals(api.getNetworkInVDC(org.getId(), vdc.getId(), response.getId()).toString(), response
                        .toString());
            }
         }
      }
   }
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.