Package org.apache.lenya.cms.repository

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


            Document doc = area.getDocument(uuid, lang);

            store = new DocumentStore(doc, getLogger());
        } catch (Exception e) {
            throw new RepositoryException(e);
        }
        return store;
    }
View Full Code Here


            saveNodes(getRoot(), helper, helper.getDocument().getDocumentElement());
            helper.save(repoNode.getOutputStream());
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new RepositoryException(e);
        }

    }
View Full Code Here

                        this.manager.release(store);
                    }
                }
            }
        } catch (Exception e) {
            throw new RepositoryException(e);
        }
        return tree;
    }
View Full Code Here

            helper.save(repoNode.getOutputStream());
            this.lastModified = repoNode.getLastModified();
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            throw new RepositoryException(e);
        }

    }
View Full Code Here

                        this.manager.release(store);
                    }
                }
            }
        } catch (Exception e) {
            throw new RepositoryException(e);
        }
        return tree;
    }
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

            source.getNode().lock();

        } catch (RepositoryException e) {
            throw e;
        } catch (Exception e) {
            throw new RepositoryException(e);
        } finally {
            if (resolver != null) {
                if (source != null) {
                    resolver.release(source);
                }
View Full Code Here

            source.getNode().unlock();

        } catch (RepositoryException e) {
            throw e;
        } catch (Exception e) {
            throw new RepositoryException(e);
        } finally {
            if (resolver != null) {
                if (source != null) {
                    resolver.release(source);
                }
View Full Code Here

            Request request = ObjectModelHelper.getRequest(objectModel);
            session = RepositoryUtil.getSession(this.manager, request);
        } else if (sessionName.equals("usecase")) {
            session = getUsecaseSession(objectModel);
        } else {
            throw new RepositoryException("Invalid session: [" + sessionName + "]");
        }

        return session;
    }
View Full Code Here

            JXPathHelperConfiguration helperConfig = JXPathHelper.setup(config);
            Object contextObject = FlowHelper.getContextObject(objectModel);
            return (Session) JXPathHelper.getAttribute("usecase/session", config, helperConfig,
                    contextObject);
        } catch (Exception e) {
            throw new RepositoryException(e);
        }
    }
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.