Examples of loadRecentEdited()


Examples of org.drools.guvnor.server.repository.UserInbox.loadRecentEdited()

            UserInbox ib = new UserInbox( getRulesRepository() );
            if ( inboxName.equals( ExplorerNodeConfig.RECENT_VIEWED_ID ) ) {
                return UserInbox.toTable( ib.loadRecentOpened(),
                                          false );
            } else if ( inboxName.equals( ExplorerNodeConfig.RECENT_EDITED_ID ) ) {
                return UserInbox.toTable( ib.loadRecentEdited(),
                                          false );
            } else {
                return UserInbox.toTable( ib.loadIncoming(),
                                          true );
            }
View Full Code Here

Examples of org.drools.guvnor.server.repository.UserInbox.loadRecentEdited()

            UserInbox ib = new UserInbox( rulesRepository );
            if ( inboxName.equals( ExplorerNodeConfig.RECENT_VIEWED_ID ) ) {
                return UserInbox.toTable( ib.loadRecentOpened(),
                                          false );
            } else if ( inboxName.equals( ExplorerNodeConfig.RECENT_EDITED_ID ) ) {
                return UserInbox.toTable( ib.loadRecentEdited(),
                                          false );
            } else {
                return UserInbox.toTable( ib.loadIncoming(),
                                          true );
            }
View Full Code Here

Examples of org.drools.guvnor.server.repository.UserInbox.loadRecentEdited()

            UserInbox ib = new UserInbox( repo2 );
            ib.loadIncoming();
            assertEquals( 0,
                          ib.loadIncoming().size() );
            assertEquals( 1,
                          ib.loadRecentEdited().size() );

            //ok lets create another user...
            RulesRepository repo3 = new RulesRepository( TestEnvironmentSessionHelper.getSessionFor( "fourthuser" ) );
            AssetItem as3 = repo3.loadDefaultPackage().loadAsset( "testLoadInbox" );
            as3.updateContent( "hey22" );
View Full Code Here

Examples of org.drools.guvnor.server.repository.UserInbox.loadRecentEdited()

            RepositoryAssetService repositoryAssetService = getRepositoryAssetService();
            RuleAsset ass = repositoryAssetService.loadRuleAsset( id );

            repositoryAssetService.checkinVersion( ass );

            List<InboxEntry> es = ib.loadRecentEdited();
            assertEquals( 1,
                          es.size() );
            assertEquals( ass.uuid,
                          es.get( 0 ).assetUUID );
            assertEquals( ass.name,
View Full Code Here

Examples of org.drools.guvnor.server.repository.UserInbox.loadRecentEdited()

                          es.get( 0 ).note );

            ib.clearAll();

            repositoryAssetService.loadRuleAsset( ass.uuid );
            es = ib.loadRecentEdited();
            assertEquals( 0,
                          es.size() );

            //now check they have it in their opened list...
            es = ib.loadRecentOpened();
View Full Code Here

Examples of org.drools.guvnor.server.repository.UserInbox.loadRecentEdited()

                          es.get( 0 ).assetUUID );
            assertEquals( ass.name,
                          es.get( 0 ).note );

            assertEquals( 0,
                          ib.loadRecentEdited().size() );
        } finally {
            RepositoryStartupService.removeListeners();
        }
    }
View Full Code Here

Examples of org.drools.guvnor.server.repository.UserInbox.loadRecentEdited()

            RepositoryStartupService.registerCheckinListener();
            ServiceImplementation serv = getServiceImplementation();
            RepositoryCategoryService repositoryCategoryService = getRepositoryCategoryService();
            RepositoryPackageService repositoryPackageService = getRepositoryPackageService();
            UserInbox ib = new UserInbox( serv.getRulesRepository() );
            List<InboxEntry> inbox = ib.loadRecentEdited();

            repositoryPackageService.listPackages();

            repositoryCategoryService.createCategory( "/",
                                                      "testCheckinCategory",
View Full Code Here

Examples of org.drools.guvnor.server.repository.UserInbox.loadRecentEdited()

            String uuid2 = repositoryAssetService.checkinVersion( asset );
            assertEquals( uuid,
                          uuid2 );

            assertTrue( ib.loadRecentEdited().size() > inbox.size() );

            RuleAsset asset2 = repositoryAssetService.loadRuleAsset( uuid );
            assertNotNull( asset2.lastModified );
            assertTrue( asset2.lastModified.after(start) );
View Full Code Here

Examples of org.drools.guvnor.server.repository.UserInbox.loadRecentEdited()

    public void testCheckin() throws Exception {
        ServiceImplementation serv = getService();

        UserInbox ib = new UserInbox( serv.repository );
        List<InboxEntry> inbox = ib.loadRecentEdited();

        serv.listPackages();

        serv.createCategory( "/",
                             "testCheckinCategory",
View Full Code Here

Examples of org.drools.guvnor.server.repository.UserInbox.loadRecentEdited()

        String uuid2 = serv.checkinVersion( asset );
        assertEquals( uuid,
                      uuid2 );

        assertTrue( ib.loadRecentEdited().size() > inbox.size() );

        RuleAsset asset2 = serv.loadRuleAsset( uuid );
        assertNotNull( asset2.metaData.lastModifiedDate );
        assertTrue( asset2.metaData.lastModifiedDate.after( start ) );
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.