Examples of loadRecentEdited()


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()

                                        "drl" );
        RuleAsset ass = impl.loadRuleAsset( id );

        impl.checkinVersion( ass );

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

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

                      es.get( 0 ).note );

        ib.clearAll();

        impl.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.metaData.name,
                      es.get( 0 ).note );

        assertEquals( 0,
                      ib.loadRecentEdited().size() );
    }

    public void testLoadAssetHistoryAndRestore() throws Exception {
        ServiceImplementation impl = getService();
        impl.repository.createPackage( "testLoadAssetHistory",
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( 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 secondUsersInbox = new UserInbox( repo2 );
            secondUsersInbox.loadIncoming();
            assertEquals( 0,
                          secondUsersInbox.loadIncoming().size() );
            assertEquals( 1,
                          secondUsersInbox.loadRecentEdited().size() );

            //ok lets create a third 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.getUuid(),
                          es.get( 0 ).assetUUID );
            assertEquals( ass.getName(),
View Full Code Here

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

                          es.get( 0 ).note );

            ib.clearAll();

            repositoryAssetService.loadRuleAsset( ass.getUuid() );
            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.getName(),
                          es.get( 0 ).note );

            assertEquals( 0,
                          ib.loadRecentEdited().size() );
        } finally {
            RepositoryStartupService.removeListeners();
        }
    }
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.