Package org.apache.lenya.cms.repository

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


            int revision = getRevision(getRepositoryNode()) + 1;
            writer.writeTree(this);
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new RepositoryException(e);
        } finally {
            if (writer != null) {
                this.manager.release(writer);
            }
        }
View Full Code Here


    public void save() throws RepositoryException {
        try {
            saveDocument();
        } catch (SiteException e) {
            throw new RepositoryException(e);
        }
    }
View Full Code Here

        try {
            int currentVersion = getLatestVersion();
            int lockVersion = getLock().getVersion();
            return currentVersion > lockVersion;
        } catch (Exception e) {
            throw new RepositoryException(e);
        }
    }
View Full Code Here

            DocumentBuilder builder = publication.getDocumentBuilder();
            DocumentIdentifier identifier = new DocumentIdentifier(publicationId, area, uuid,
                    language);
            document = buildDocument(this, identifier, revision, builder);
        } catch (Exception e) {
            throw new RepositoryException(e);
        }
        if (getLogger().isDebugEnabled())
            getLogger().debug("DocumentFactory::build() done.");

        return document;
View Full Code Here

                tree = new SiteTreeImpl(this.manager, area, getLogger());
            } else {
                tree = new DelegatingSiteTree(this.manager, area, this, storeSession, key);
            }
        } catch (Exception e) {
            throw new RepositoryException(e);
        } finally {
            if (store != null) {
                this.manager.release(store);
            }
        }
View Full Code Here

        try {
            DocumentFactory factory = DocumentUtil.createDocumentFactory(this.manager, session);
            Publication publication = factory.getPublication(publicationId);
            tree = new DefaultSiteTree(factory, publication, area, this.manager, getLogger());
        } catch (Exception e) {
            throw new RepositoryException(e);
        }
        return tree;
    }
View Full Code Here

TOP

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

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.