Examples of addDomain()


Examples of org.apache.cayenne.conf.Configuration.addDomain()

        // stick a DataDomain
        DataDomain domain = (DataDomain) NamedObjectFactory.createObject(
                DataDomain.class,
                config);
        domain.getEntityResolver().setIndexedByClass(false);
        config.addDomain(domain);

        controller.projectOpenedAction(project);

        // select default domain
        getProjectController().fireDomainDisplayEvent(
View Full Code Here

Examples of org.apache.cayenne.conf.Configuration.addDomain()

        Configuration config = Configuration.getSharedConfiguration();
        if (getDomain() != config.getDomain()) {
            if (config.getDomain() != null) {
                config.removeDomain(config.getDomain().getName());
            }
            config.addDomain(getDomain());
        }
    }

    /**
     * Helper method to create a new DataContext with the ObjectStore
View Full Code Here

Examples of org.apache.cayenne.conf.Configuration.addDomain()

        // stick a DataDomain
        DataDomain domain = (DataDomain) NamedObjectFactory.createObject(
                DataDomain.class,
                config);
        domain.getEntityResolver().setIndexedByClass(false);
        config.addDomain(domain);

        controller.projectOpenedAction(project);

        // select default domain
        getProjectController().fireDomainDisplayEvent(
View Full Code Here

Examples of org.apache.james.cli.probe.ServerProbe.addDomain()

                    printUsage();
                    System.exit(1);
                }
            } else if (CmdType.ADDDOMAIN.equals(cmdType)) {
                if (cmdType.hasCorrectArguments(arguments.length)) {
                    probe.addDomain(arguments[1]);
                } else {
                    printUsage();
                    System.exit(1);
                }
            } else if (CmdType.REMOVEDOMAIN.equals(cmdType)) {
View Full Code Here

Examples of org.apache.james.domainlist.jdbc.JDBCDomainList.addDomain()

        dom.setFileSystem(new MockFileSystem());
        dom.setDataSource(data);
        dom.setLog(new SimpleLog("MockLog"));
        dom.configure(setUpConfiguration(repos + table));
        dom.init();
        dom.addDomain("domain1.");

        assertEquals("two domain found",dom.getDomains().length,2);
       
        dom.removeDomain("domain1.");
        assertNull("two domain found",dom.getDomains());
View Full Code Here

Examples of org.apache.jetspeed.security.spi.SecurityDomainStorageManager.addDomain()

        if (domainAccessManager.getDomainByName(SecurityDomain.DEFAULT_NAME) == null)
        {
            SecurityDomainStorageManager domainStorageManager = (SecurityDomainStorageManager)scm.getComponent("org.apache.jetspeed.security.spi.SecurityDomainStorageManager");
            SecurityDomainImpl defaultSecurityDomain = new SecurityDomainImpl();
            defaultSecurityDomain.setName(SecurityDomain.DEFAULT_NAME);
            domainStorageManager.addDomain(defaultSecurityDomain);
        }
        RoleManager roleManager = (RoleManager)scm.getComponent("org.apache.jetspeed.security.RoleManager");
        if (!roleManager.roleExists("user"))
        {
            roleManager.addRole("user");
View Full Code Here

Examples of org.apache.jetspeed.security.spi.SecurityDomainStorageManager.addDomain()

        if (domainAccessManager.getDomainByName(SecurityDomain.DEFAULT_NAME) == null)
        {
            SecurityDomainStorageManager domainStorageManager = (SecurityDomainStorageManager)scm.getComponent("org.apache.jetspeed.security.spi.SecurityDomainStorageManager");
            SecurityDomainImpl defaultSecurityDomain = new SecurityDomainImpl();
            defaultSecurityDomain.setName(SecurityDomain.DEFAULT_NAME);
            domainStorageManager.addDomain(defaultSecurityDomain);
        }
        RoleManager roleManager = (RoleManager)scm.getComponent("org.apache.jetspeed.security.RoleManager");
        if (!roleManager.roleExists("user"))
        {
            roleManager.addRole("user");
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.addDomain()

    kb.addClass( C );

    kb.addDatatypeProperty( p );
    kb.addDatatypeProperty( q );

    kb.addDomain( p, C );

    kb.addRange( q, XSDInteger.getInstance().getName() );

    kb.addSubClass( C, some( q, TOP_LIT ) );
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.addDomain()

    kb.addDatatypeProperty( p );

    // B is completely defined except this equivalence
    kb.addEquivalentClass( A, B );
    // A is not primitive because of the domain axiom
    kb.addDomain( p, A );
    // C should be inferred to be a subclass of A and B
    kb.addSubClass( C, some(p, TOP_LIT ) );

    kb.classify();
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.addDomain()

    kb.addClass( C );
   
    kb.addDatatypeProperty( p );
    kb.addDatatypeProperty( q );
   
    kb.addDomain( p, C );
   
    kb.addRange( q, XSDInteger.getInstance().getName() );
   
    kb.addSubClass( C, some( q, TOP_LIT ) );
   
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.