Package org.apache.lenya.cms.repository

Examples of org.apache.lenya.cms.repository.Session.commit()


            Importer importer = new Importer(getManager(), getLogger());
            importer.importContent(defaultPub, area, path);

            assertTrue(area.getSite().contains("/tutorial"));

            session.commit();
        }

        Session aliceSession = login("alice");
        Publication alicePub = getPublication(aliceSession, "test");
        final SiteStructure authSite = alicePub.getArea("authoring").getSite();
View Full Code Here


        Publication[] pubs = factory.getPublications();
        for (int i = 0; i < pubs.length; i++) {
            this.migratedDocs.clear();
            migratePublication(pubs[i]);
        }
        session.commit();
    }

    private void migratePublication(Publication pub) throws Exception {
        getLogger().info("Migrating publication [" + pub.getId() + "]");
View Full Code Here

        lenyaSession.commit();
       
        SiteNode aliceNode = aliceSite.getNodes()[2];
        aliceNode.setVisible(!aliceNode.isVisible());
        try {
            aliceSession.commit();
            assertTrue("No exception raised", false);
        }
        catch (Exception ignore) {
        }
       
View Full Code Here

       
        Inbox inbox = getInbox(alice);
        cleanUp(inbox, SUBJECT);
       
        assertFalse(containsMessage(inbox, SUBJECT));
        session.commit();
        Thread.sleep(100);
        assertTrue(containsMessage(inbox, SUBJECT));
       
        cleanUp(inbox, SUBJECT);
View Full Code Here

            importer.importContent(defaultPub, area, path);
           
            assertTrue(area.getSite().contains("/tutorial"));
            checkLinks(area);
           
            session.commit();
        }
       
        Session aliceSession = login("alice");
        Publication alicePub = getPublication(aliceSession, "test");
        assertTrue(alicePub.getArea("authoring").getSite().contains("/tutorial"));
View Full Code Here

        Inbox inbox = getInbox(alice);
        cleanUp(inbox, SUBJECT);

        assertFalse(containsMessage(inbox, SUBJECT));
        session.commit();
        Thread.sleep(100);
        assertTrue(containsMessage(inbox, SUBJECT));

        cleanUp(inbox, SUBJECT);
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.