Package org.apache.lenya.cms.repository

Examples of org.apache.lenya.cms.repository.SharedItemStore


           
            if (session.isModifiable() || session instanceof SharedItemStore) {
                tree = new SiteTreeImpl(this.manager, area, getLogger());
            }
            else {
                SharedItemStore store = null;
                try {
                    store = (SharedItemStore) this.manager.lookup(SharedItemStore.ROLE);
                    tree = new DelegatingSiteTree(this.manager, area, this, store, key);
                }
                finally {
View Full Code Here


           
            if (session.isModifiable() || session instanceof SharedItemStore) {
                tree = new SiteTreeImpl(this.manager, area, getLogger());
            }
            else {
                SharedItemStore store = null;
                try {
                    store = (SharedItemStore) this.manager.lookup(SharedItemStore.ROLE);
                    SiteTreeImpl sharedTree = (SiteTreeImpl) store.getRepositoryItem(this, key);
                    tree = new DelegatingSiteTree(this.manager, area, sharedTree);
                }
                finally {
                    if (store != null) {
                        this.manager.release(store);
View Full Code Here

    public RepositoryItem buildItem(Session session, String key) throws RepositoryException {
        String[] snippets = key.split(":");
        String publicationId = snippets[0];
        String areaName = snippets[1];
        SiteTree tree;
        SharedItemStore store = null;
        try {
            DocumentFactory factory = DocumentUtil.createDocumentFactory(this.manager, session);
            Publication publication = factory.getPublication(publicationId);
            Area area = publication.getArea(areaName);
            store = (SharedItemStore) this.manager.lookup(SharedItemStore.ROLE);

            Session storeSession = store.getSession();
            if (session.isModifiable() || session == storeSession) {
                tree = new SiteTreeImpl(this.manager, area, getLogger());
            } else {
                tree = new DelegatingSiteTree(this.manager, area, this, storeSession, key);
            }
View Full Code Here

TOP

Related Classes of org.apache.lenya.cms.repository.SharedItemStore

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.