Package org.drools.repository

Examples of org.drools.repository.CategoryItem


    }

    @Test
    public void testQueryMetaDataPagedResultsWithAnalystPermissionRootCategory() throws Exception {

        CategoryItem rootCategory = rulesRepository.loadCategory( "/" );
        String categoryName = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryMetaDataPagedResultsWithAnalystPermissionRootCategoryCategory";
        String categoryDescription = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryMetaDataPagedResultsWithAnalystPermissionRootCategoryCategoryDescription";
        CategoryItem cat = rootCategory.addCategory( categoryName,
                                                     categoryDescription );

        String subCategory1Name = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryMetaDataPagedResultsWithAnalystPermissionRootCategoryCat1";
        cat.addCategory( subCategory1Name,
                         "yeah" );
        String subCategory2Name = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryMetaDataPagedResultsWithAnalystPermissionRootCategoryCat2";
        cat.addCategory( subCategory2Name,
                         "yeah" );

        logoutAs( ADMIN_USERNAME );
        final String USERNAME = "queryAndFindUser";
        loginAs( USERNAME );
View Full Code Here


    @Test
    public void testBuiltInSelector() throws Exception {
        RulesRepository repo = rulesRepository;

        CategoryItem rootCat = repo.loadCategory( "/" );
        CategoryItem testBuiltInSelectorCategory1 = rootCat.addCategory( "testBuiltInSelectorCategory1",
                                                                         "yeah" );
        testBuiltInSelectorCategory1.addCategory( "testBuiltInSelectorCategory1Child",
                                                  "yeah" );
        CategoryItem testBuiltInSelectorCategory2 = rootCat.addCategory( "testBuiltInSelectorCategory2",
                                                                         "yeah" );
        testBuiltInSelectorCategory2.addCategory( "testBuiltInSelectorCategory2Child",
                                                  "yeah" );

        //create our package
        ModuleItem pkg = repo.createModule( "testBuiltInSelector",
                                            "" );
View Full Code Here

        rulesRepository.loadDefaultModule();
        rulesRepository.createModule( "anotherPackage",
                                      "woot" );

        CategoryItem cat = rulesRepository.loadCategory( "/" );
        cat.addCategory( "testDeleteUnversioned",
                         "yeah" );

        String uuid = serviceImplementation.createNewRule( "test Delete Unversioned",
                                                           "a description",
                                                           "testDeleteUnversioned",
View Full Code Here

        rulesRepository.loadDefaultModule();
        rulesRepository.createModule( "another",
                                      "woot" );

        CategoryItem cat = rulesRepository.loadCategory( "/" );
        cat.addCategory( "testAddRule",
                         "yeah" );

        String result = serviceImplementation.createNewRule( "test AddRule",
                                                             "a description",
                                                             "testAddRule",
View Full Code Here

                      dtItem.getBinaryContentAsBytes().length );
    }

    @Test
    public void testAttemptDupeRule() throws Exception {
        CategoryItem cat = rulesRepository.loadCategory( "/" );
        cat.addCategory( "testAttemptDupeRule",
                         "yeah" );

        rulesRepository.createModule( "dupes",
                                      "yeah" );
View Full Code Here

    public void testRuleTableLoad() throws Exception {
        TableConfig conf = serviceImplementation.loadTableConfig( ExplorerNodeConfig.RULE_LIST_TABLE_ID );
        assertNotNull( conf.headers );
        assertNotNull( conf.headerTypes );

        CategoryItem cat = rulesRepository.loadCategory( "/" );
        cat.addCategory( "testRuleTableLoad",
                         "yeah" );

        rulesRepository.createModule( "testRuleTableLoad",
                                      "yeah" );
        serviceImplementation.createNewRule( "testRuleTableLoad",
View Full Code Here

    @Test
    public void testBuiltInSelector() throws Exception {
        RulesRepository repo = rulesRepository;

        CategoryItem rootCat = repo.loadCategory( "/" );
        CategoryItem testBuiltInSelectorCategory1 = rootCat.addCategory( "testBuiltInSelectorCategory1",
                                                                         "yeah" );
        testBuiltInSelectorCategory1.addCategory( "testBuiltInSelectorCategory1Child",
                                                  "yeah" );
        CategoryItem testBuiltInSelectorCategory2 = rootCat.addCategory( "testBuiltInSelectorCategory2",
                                                                         "yeah" );
        testBuiltInSelectorCategory2.addCategory( "testBuiltInSelectorCategory2Child",
                                                  "yeah" );

        //create our package
        ModuleItem pkg = repo.createModule( "testBuiltInSelector",
                                            "" );
View Full Code Here

        rulesRepository.createModule( "testBuiltInSelectorPackage",
                                                 "woot" );
        rulesRepository.createState( "Dev" );
        rulesRepository.createState( "QA" );

        CategoryItem cat = rulesRepository.loadCategory( "/" );
        cat.addCategory( "testBuiltInSelectorCat1",
                         "yeah" );
        cat.addCategory( "testBuiltInSelectorCat2",
                         "yeah" );

        String uuid1 = serviceImplementation.createNewRule( "test AddRule1",
                                           "a description",
                                           "testBuiltInSelectorCat1",
View Full Code Here

        rulesRepository.loadDefaultModule();
        rulesRepository.createModule( "testBuiltInSelectorWithAssetCategoryPackage",
                                                 "woot" );

        //we have following categories: cat1, cat2, cat2/cat3
        CategoryItem cat = rulesRepository.loadCategory( "/" );
        CategoryItem cat1 = cat.addCategory( "testBuiltInSelectorWithAssetCategoryCat1",
                         "yeah" );
        CategoryItem cat2 = cat.addCategory( "testBuiltInSelectorWithAssetCategoryCat2",
                         "yeah" );
        CategoryItem cat3 = cat2.addCategory( "testBuiltInSelectorWithAssetCategoryCat3",
                "yeah" );
       
        //rule1 in cat1 and cat3
        String uuid1 = serviceImplementation.createNewRule( "test AddRule1",
                                           "a description",
View Full Code Here

    @Test
    public void testBuiltInSelector() throws Exception {
        ServiceImplementation serviceImplementation = getServiceImplementation();
        RulesRepository repo = serviceImplementation.getRulesRepository();

        CategoryItem rootCat = repo.loadCategory( "/" );
        CategoryItem testBuiltInSelectorCategory1 = rootCat.addCategory( "testBuiltInSelectorCategory1",
                         "yeah" );
        testBuiltInSelectorCategory1.addCategory( "testBuiltInSelectorCategory1Child",
        "yeah" );       
        CategoryItem testBuiltInSelectorCategory2 = rootCat.addCategory( "testBuiltInSelectorCategory2",
        "yeah" );
        testBuiltInSelectorCategory2.addCategory( "testBuiltInSelectorCategory2Child",
        "yeah" );    
       
        //create our package
        PackageItem pkg = repo.createPackage("testBuiltInSelector",
                "");
View Full Code Here

TOP

Related Classes of org.drools.repository.CategoryItem

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.