Package org.drools.repository

Examples of org.drools.repository.CategoryItem


    @Test
    public void testLoadRuleListForCategoriesWithAnalystPermission() throws SerializationException {
        loginAs( ADMIN_USERNAME );

        CategoryItem rootCategory = rulesRepository.loadCategory( "/" );
        CategoryItem cat = rootCategory.addCategory( "testLoadRuleListForCategoriesWithAnalystPermissionRootCat",
                                                     "description" );
        cat.addCategory( "testLoadRuleListForCategoriesWithAnalystPermissionCat1",
                         "yeah" );
        cat.addCategory( "testLoadRuleListForCategoriesWithAnalystPermissionCat2",
                         "yeah" );

        logoutAs( ADMIN_USERNAME );

        final String USERNAME = "categoryUser";
View Full Code Here


    @Test
    public void testLoadRuleListForCategoriesWithAnalystNoRootCatPermission() throws SerializationException {
        loginAs( ADMIN_USERNAME );

        CategoryItem rootCategory = rulesRepository.loadCategory( "/" );
        CategoryItem cat = rootCategory.addCategory( "testLoadRuleListForCategoriesWithAnalystNoRootCatPermission",
                                                     "description" );
        cat.addCategory( "testLoadRuleListForCategoriesWithAnalystNoRootCatPermissionCat1",
                         "yeah" );
        cat.addCategory( "testLoadRuleListForCategoriesWithAnalystNoRootCatPermissionCat2",
                         "yeah" );

        logoutAs( ADMIN_USERNAME );

        final String USERNAME = "categoryUser";
View Full Code Here

    //    @BeforeClass
    // HACK - Fixable after this is fixed: https://issues.jboss.org/browse/ARQ-540
    @Test @InSequence(-1)
    public void startServers() throws Exception {
        CategoryItem cat = rulesRepository.loadCategory("/");
        cat.addCategory("AssetPackageResourceTestCategory",
                "yeah");
        cat.addCategory("AssetPackageResourceTestCategory2",
        "yeah");       
       
        rulesRepository.createState( "Dev" );
       
        //Package version 1(Initial version)
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

        assertTrue( response.isLastPage() );
    }

    @Test
    public void testQueryFullTextFullResultsWithAnalystPermission() throws Exception {
        CategoryItem rootCategory = rulesRepository.loadCategory( "/" );
        String categoryName = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryFullTextFullResultsWithAnalystPermissionCategory";
        String categoryDescription = "org.drools.guvnor.server.RepositoryQueryAndFindIntegrationTest.testQueryFullTextFullResultsWithAnalystPermissionCategoryDescription";
        CategoryItem cat = rootCategory.addCategory( categoryName,
                                                     categoryDescription );

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

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

    }

    @Test
    public void testQuickFindAssetWithAnalystPermission() throws Exception {

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

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

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

    }

    @Test
    public void testQueryMetaDataPagedResultsWithAnalystPermission() throws Exception {

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

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

        logoutAs( ADMIN_USERNAME );
        final String USERNAME = "queryAndFindUser";
        loginAs( USERNAME );
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.