Package org.apache.lenya.cms.cocoon.source

Examples of org.apache.lenya.cms.cocoon.source.RepositorySource


            throws ProcessingException, SAXException, IOException {
       
        super.setup(resolver, objectModel, src, par);
        this.src = src;
       
        RepositorySource source = null;
        try {
            source = (RepositorySource) resolver.resolveURI(src);
            this.content = source.getContent();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        finally {
            if (source != null) {
View Full Code Here


    public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par)
            throws ProcessingException, SAXException, IOException {

        super.setup(resolver, objectModel, src, par);

        RepositorySource source = null;
        try {
            source = (RepositorySource) resolver.resolveURI(src);
            this.content = source.getContent();
        } catch (Exception e) {
            throw new RuntimeException(e);
        } finally {
            if (source != null) {
                resolver.release(source);
View Full Code Here

    /**
     * @see org.apache.lenya.cms.site.SiteStructure#getRepositoryNode()
     */
    public Node getRepositoryNode() {
        SourceResolver resolver = null;
        RepositorySource documentSource = null;
        Node node = null;
        try {
            resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
            documentSource = (RepositorySource) resolver.resolveURI(getSourceURI());
            node = documentSource.getNode();
        } catch (Exception e) {
            throw new RuntimeException(e);
        } finally {
            if (resolver != null) {
                if (documentSource != null) {
View Full Code Here

     * @return The repository nodes that represent this resource.
     */
    public Transactionable[] getRepositoryNodes() {
        Node[] nodes = new Node[2];
        SourceResolver resolver = null;
        RepositorySource documentSource = null;
        RepositorySource metaSource = null;
        try {
            resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
            documentSource = (RepositorySource) resolver.resolveURI(getSourceURI());
            metaSource = (RepositorySource) resolver.resolveURI(getMetaSourceURI());
            nodes[0] = documentSource.getNode();
            nodes[1] = metaSource.getNode();
        } catch (Exception e) {
            throw new RuntimeException(e);
        } finally {
            if (resolver != null) {
                if (documentSource != null) {
View Full Code Here

    /**
     * @see org.apache.lenya.cms.site.SiteStructure#getRepositoryNode()
     */
    public org.apache.lenya.cms.repository.Node getRepositoryNode() {
        SourceResolver resolver = null;
        RepositorySource source = null;
        try {
            resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
            source = (RepositorySource) resolver.resolveURI(this.sourceUri);
            return source.getNode();
        } catch (Exception e) {
            throw new RuntimeException(e);
        } finally {
            if (resolver != null) {
                if (source != null) {
View Full Code Here

     * @see org.apache.lenya.cms.publication.Document#getRepositoryNodes()
     */
    public Node[] getRepositoryNodes() {
        Node[] nodes = new Node[2];
        SourceResolver resolver = null;
        RepositorySource documentSource = null;
        RepositorySource metaSource = null;
        try {
            resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
            documentSource = (RepositorySource) resolver.resolveURI(getSourceURI());
            metaSource = (RepositorySource) resolver.resolveURI(getMetaSourceURI());
            nodes[0] = documentSource.getNode();
            nodes[1] = metaSource.getNode();
        } catch (Exception e) {
            throw new RuntimeException(e);
        } finally {
            if (resolver != null) {
                if (documentSource != null) {
View Full Code Here

            throws ProcessingException, SAXException, IOException {
       
        super.setup(resolver, objectModel, src, par);
        this.src = src;
       
        RepositorySource source = null;
        try {
            source = (RepositorySource) resolver.resolveURI(src);
            this.content = source.getContent();
            this.validity = source.getValidity();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        finally {
            if (source != null) {
View Full Code Here

TOP

Related Classes of org.apache.lenya.cms.cocoon.source.RepositorySource

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.