Examples of Domain


Examples of org.data2semantics.platform.domain.Domain

      String moduleName = (String) module.get("name");
      String source = (String) module.get("source");

      // Default domain
      Domain domain;
      String domainPrefix, sourceTail;
     
      if(! source.contains(":"))
      {
        domain = Global.defaultDomain();
        domainPrefix = "java";
        sourceTail = source;
      } else
      {
        domainPrefix = source.split(":")[0];
        sourceTail = source.split(":", 2)[1];
       
        if(! Global.domainExists(domainPrefix))
          throw new RuntimeException("Domain "+domainPrefix+" is not known");
       
        domain = Global.domain(domainPrefix);
      }

      // get name
      builder.module(moduleName, domain);

      // get the source
      builder.source(moduleName, sourceTail);

      // get the inputs
      Map inputMap = (Map) module.get("inputs");
     
      // Get the coupled inputs
      List<?> couples = (List <?>) module.get("couple");
   
     
      List<String> errors = new ArrayList<String>();
     
      if(!domain.validate(source, errors)){
        throw new InconsistentWorkflowException(errors);
      }
     
      parseInputAndCouples(builder, moduleName, domain, sourceTail, inputMap, couples);
     
      // ask the domain object for the outputs
      Map<String, DataType> outputTypeMap = getOutputTypes(source, domain);
     
      for(String outputName : outputTypeMap.keySet())
      {
        boolean print = domain.printOutput(sourceTail, outputName);

        String description = domain.outputDescription(sourceTail, outputName);
        builder.output(moduleName, outputName, description, outputTypeMap.get(outputName), print);
      }
    }
   
    return builder.workflow();
View Full Code Here

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

      JSONObject result = new JSONObject();
      domains = new ArrayList<Domain>();
      JSONArray resources = domainsJSON.getJSONArray(CFProtocolConstants.V2_KEY_RESOURCES);
      for (int k = 0; k < resources.length(); ++k) {
        JSONObject domainJSON = resources.getJSONObject(k);
        Domain domain = new Domain();
        domain.setCFJSON(domainJSON);
        if (domainName == null || domainName.equals(domain.getDomainName())) {
          domains.add(domain);
          result.append("Domains", domain.toJSON());
        }
      }

      if (domains.isEmpty())
        return new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_NOT_FOUND, "Domain can not be found", null);
View Full Code Here

Examples of org.glassfish.admin.amx.intf.config.Domain

   
    private SecurityService getSecurityService()
    {  
        // this is ugly, the underlying API doesn't understand that there is more than one <security-service>,
        // each with one or more <auth-realm>.  So we'll just take the first config
        final Domain domainConfig = getDomainRootProxy().child(Domain.class);
        final Config config = domainConfig.getConfigs().getConfig().values().iterator().next();
       
        return config.getSecurityService();
    }
View Full Code Here

Examples of org.hibernate.search.test.session.Domain

    searchFactory = session.getSearchFactory();

    // create some different domains:
    {
      session.beginTransaction();
      session.persist( new Domain( 1, "jboss.org" ) );
      session.persist( new Domain( 2, "jboss.com" ) );
      session.persist( new Domain( 3, "hibernate.org" ) );
      session.persist( new Domain( 4, "geocities.com" ) );
      session.getTransaction().commit();
    }
    assertEquals( 2, countDomainsByFullText( "jboss" ) );
    assertEquals( 1, countDomainsByFullText( "hibernate" ) );
    assertEquals( 1, countDomainsByFullText( "geocities" ) );

    // now create some and delete others:
    {
      session.beginTransaction();
      session.persist( new Domain( 5, "sun.com" ) );
      session.persist( new Domain( 6, "mysql.com" ) );
      session.persist( new Domain( 7, "oracle.com" ) );
      Domain hibernateDomain = (Domain) session.get( Domain.class, 3 );
      session.delete( hibernateDomain );
      Domain geocitiesDomain = (Domain) session.get( Domain.class, 4 );
      session.delete( geocitiesDomain );
      session.getTransaction().commit();
    }
    assertEquals( 0, countDomainsByFullText( "hibernate" ) );
    assertEquals( 0, countDomainsByFullText( "geocities" ) );
    assertEquals( 2, countDomainsByFullText( "jboss" ) );
    assertEquals( 1, countDomainsByFullText( "sun" ) );
    assertEquals( 1, countDomainsByFullText( "mysql" ) );
    assertEquals( 1, countDomainsByFullText( "oracle" ) );

    // use create/update/delete:
    {
      session.beginTransaction();
      session.persist( new Domain( 3, "hibernate.org" ) );
      Domain mysqlDomain = (Domain) session.get( Domain.class, 6 );
      session.delete( mysqlDomain );
      //persisting a new entity having the same PK as a deleted one:
      session.persist( new Domain( 6, "myhql.org" ) );
      Domain sunDomain = (Domain) session.get( Domain.class, 5 );
      sunDomain.setName( "community.oracle.com" );
      session.getTransaction().commit();
    }
    assertEquals( 1, countDomainsByFullText( "hibernate" ) );
    assertEquals( 2, countDomainsByFullText( "oracle" ) );
    assertEquals( 1, countDomainsByFullText( "myhql" ) );
    assertEquals( 1, countDomainsByFullText( "community" ) );
    assertEquals( 0, countDomainsByFullText( "mysql" ) );

    // now creating and deleting the "same" (as by pk) entity several times in same transaction:
    {
      session.beginTransaction();
      session.persist( new Domain( 8, "mysql.org" ) );
      Domain mysqlDomain = (Domain) session.load( Domain.class, 8 );
      session.delete( mysqlDomain );
      Domain newDomain = new Domain( 8, "something.org" );
      session.persist( newDomain );
      session.delete( newDomain );
      session.persist( new Domain( 8, "somethingnew.org" ) );
      session.getTransaction().commit();
    }
    assertEquals( 1, countDomainsByFullText( "somethingnew" ) );

    session.close();
View Full Code Here

Examples of org.integratedmodelling.riskwiz.domain.Domain

        Vector<? extends Domain> domainProduct = node.getDomainProduct();
        Vector<String> scheme = this.getScheme();
        int[] map = new int[domainProduct.size()];
   
        for (int i = 0; i < domainProduct.size(); i++) {
            Domain dom = domainProduct.get(i);
            int index = scheme.indexOf(dom.getName());

            if (index == -1) {
                return null;
            } else {
                map[i] = index;
View Full Code Here

Examples of org.jSyncManager.SJS.Adapters.SMTPServer.Config.Domain

         //Try and get the user from the local configuration: Make them otherwise
         User user = config.getUsers().get(address[0]);
     if(user==null){
        user = new User(address[0], null);
     }
     Domain dom = config.getDomains().get(address[1]);
     // may not be a local domain, create one if remote
     if(dom == null) {
       dom = new Domain(address[1]);
     }
     currentMsg.addTo(new Address(user,dom));
      }
      return response;
   }   // end processRcpt()
View Full Code Here

Examples of org.jboss.aop.Domain

   {
      //Scoped AOP deployments are only available when deployed as part of a scoped sar, ear etc.
      //It can contain an aop.xml file, or it can be part of a .aop file

      AspectManager manager = aspectManager;
      Domain domain = AOPClassLoaderInitializer.initializeForUnit(unit);
      if (domain != null)
      {
         manager = domain;
      }
      log.debug("Adding AspectManager attachment " + manager + " for " + unit);
View Full Code Here

Examples of org.jboss.dashboard.domain.Domain

                    else adp.getNameI18nMap().remove(new Locale(lang));
                }
                if (param_name.startsWith(PARAM_PROPERTY_TYPE)) {
                    String pId = param_name.substring(param_name.indexOf("_") + 1, param_name.length());
                    AbstractDataProperty adp = (AbstractDataProperty) dataProvider.getDataSet().getPropertyById(pId);
                    Domain domnain = (Domain) Class.forName(param_value).newInstance();
                    if (domnain instanceof LabelDomain) ((LabelDomain) domnain).setConvertedFromNumeric(true);
                    adp.setDomain(domnain);
                }
            }
            dataProvider.save();
View Full Code Here

Examples of org.jboss.shrinkwrap.api.Domain

        final Set<ClassLoader> classloaders = new HashSet<ClassLoader>(1);
        classloaders.add(thisCl);
        if (log.isLoggable(Level.FINEST)) {
            log.finest("Using ClassLoader for ShrinkWrap Domain: " + thisCl);
        }
        final Domain shrinkwrapDomain = ShrinkWrap.createDomain(new ConfigurationBuilder().classLoaders(classloaders));

        // Set
        this.bindAddress = bindAddress;
        this.deployedArchives = new ConcurrentHashMap<String, GenericArchive>();
        this.shrinkwrapDomain = shrinkwrapDomain;
View Full Code Here

Examples of org.jclouds.cloudstack.domain.Domain

   @Test
   public void testListDomainChildren() {
      skipIfNotDomainAdmin();

      Set<Domain> domains = domainAdminClient.getDomainClient().listDomains();
      Domain root = findRootOfVisibleTree(domains);
      if (domains.size() > 1) {
         assertTrue(root.hasChild());
      }

      Set<Domain> children = domainAdminClient.getDomainClient()
         .listDomainChildren(parentDomainId(root.getId()).isRecursive(true));
      assertEquals(domains.size() - 1, children.size());
      assertTrue(Sets.difference(domains, children).contains(root));
   }
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.