Examples of RCEnvironment


Examples of org.apache.lenya.cms.rc.RCEnvironment

     */
    public RevisionController getRevisionController(FOM_Cocoon cocoon)
            throws PageEnvelopeException, IOException {
        final Publication publication = getPageEnvelope(cocoon).getPublication();
        final String publicationPath = publication.getDirectory().getCanonicalPath();
        final RCEnvironment rcEnvironment = RCEnvironment.getInstance(publication
                .getServletContext().getCanonicalPath());
        String rcmlDirectory = rcEnvironment.getRCMLDirectory();
        rcmlDirectory = publicationPath + File.separator + rcmlDirectory;
        String backupDirectory = rcEnvironment.getBackupDirectory();
        backupDirectory = publicationPath + File.separator + backupDirectory;

        return new RevisionController(rcmlDirectory, backupDirectory, publicationPath);
    }
View Full Code Here

Examples of org.apache.lenya.cms.rc.RCEnvironment

                    PublicationFactory factory = PublicationFactory.getInstance(getLogger());
                    Publication pub = factory.getPublication(publicationId, context
                            .getAbsolutePath());

                    String publicationPath = pub.getDirectory().getCanonicalPath();
                    RCEnvironment rcEnvironment = RCEnvironment.getInstance(pub.getServletContext()
                            .getCanonicalPath());
                    String rcmlDirectory = publicationPath + File.separator
                            + rcEnvironment.getRCMLDirectory();
                    String backupDirectory = publicationPath + File.separator
                            + rcEnvironment.getBackupDirectory();
                    this.revisionController = new RevisionController(rcmlDirectory,
                            backupDirectory, publicationPath);
                } finally {
                    if (resolver != null) {
                        if (contextSource != null) {
View Full Code Here

Examples of org.apache.lenya.cms.rc.RCEnvironment

     * @throws IOException when something went wrong.
     */
    protected RevisionController getRevisionController() throws RevisionControlException, ExecutionException {
        if (revisionController == null) {
            File publicationDir = publication.getDirectory();
            RCEnvironment rcEnvironment;
            try {
                File servletContext = publication.getServletContext();
                rcEnvironment = RCEnvironment.getInstance(servletContext.getCanonicalPath());
            } catch (IOException e) {
                throw new RevisionControlException(e);
            }

            File rcmlDirectory = new File(publicationDir, rcEnvironment.getRCMLDirectory());
            File backupDirectory = new File(publicationDir, rcEnvironment.getBackupDirectory());

            revisionController =
                new RevisionController(
                    rcmlDirectory.getAbsolutePath(),
                    backupDirectory.getAbsolutePath(),
View Full Code Here

Examples of org.apache.lenya.cms.rc.RCEnvironment

            getLogger().error("Resolving page envelope failed: ", e);
        }

        //get Parameters for RC
        String publicationPath = publication.getDirectory().getCanonicalPath();
        RCEnvironment rcEnvironment =
        RCEnvironment.getInstance(publication.getServletContext().getCanonicalPath());
        rcmlDirectory = rcEnvironment.getRCMLDirectory();
        rcmlDirectory = publicationPath + File.separator + rcmlDirectory;
        backupDirectory = rcEnvironment.getBackupDirectory();
        backupDirectory = publicationPath + File.separator + backupDirectory;

        // Initialize Revision Controller
        rc = new RevisionController(rcmlDirectory, backupDirectory, publicationPath);
        getLogger().debug("revision controller" + rc);
View Full Code Here

Examples of org.apache.lenya.cms.rc.RCEnvironment

        }

        //get Parameters for RC
        String publicationPath = publication.getEnvironment().getPublicationPath();
        String servletContextPath = publication.getServletContext().getCanonicalPath();
        RCEnvironment rcEnvironment = new RCEnvironment(servletContextPath);
        rcmlDirectory = rcEnvironment.getRCMLDirectory();
        rcmlDirectory=publicationPath+rcmlDirectory;
        backupDirectory = rcEnvironment.getBackupDirectory();
        backupDirectory=publicationPath+backupDirectory;

        // Initialize Revision Controller
        rc = new RevisionController(rcmlDirectory, backupDirectory, publicationPath);
        getLogger().debug("revision controller" + rc);
View Full Code Here

Examples of org.apache.lenya.cms.rc.RCEnvironment

        String urlPrefix = request.getContextPath() + "/" + publication.getId() + "/" + area;
        documentUrl = requestURI.substring(urlPrefix.length());

  documentId = computeDocumentId(requestURI);
        this.publication = publication;
        rcEnvironment = new RCEnvironment(publication.getServletContext().getCanonicalPath());
        context = request.getContextPath();
    }
View Full Code Here

Examples of org.apache.lenya.cms.rc.RCEnvironment

  directories = requestURI.split("/");
        area = directories[AREA_POS];

  documentId = computeDocumentId(requestURI);
        publication = new Publication(publicationId, path);
        rcEnvironment = new RCEnvironment(path);
        context = request.getContextPath();
    }
View Full Code Here

Examples of org.apache.lenya.cms.rc.RCEnvironment

     */
    public RevisionController getRevisionController(FOM_Cocoon cocoon)
    throws PageEnvelopeException, IOException {       
        final Publication publication = getPageEnvelope(cocoon).getPublication();
        final String publicationPath = publication.getDirectory().getAbsolutePath();
        final RCEnvironment rcEnvironment = RCEnvironment.getInstance(publication.getServletContext().getAbsolutePath());
        String rcmlDirectory = rcEnvironment.getRCMLDirectory();
        rcmlDirectory = publicationPath + File.separator + rcmlDirectory;
        String backupDirectory = rcEnvironment.getBackupDirectory();
        backupDirectory = publicationPath + File.separator + backupDirectory;

        return new RevisionController(rcmlDirectory, backupDirectory, publicationPath);     
    }
View Full Code Here

Examples of org.apache.lenya.cms.rc.RCEnvironment

            throw e;
        }

        //get Parameters for RC
        String publicationPath = publication.getDirectory().getAbsolutePath();
        RCEnvironment rcEnvironment =
            RCEnvironment.getInstance(publication.getServletContext().getAbsolutePath());
        rcmlDirectory = rcEnvironment.getRCMLDirectory();
        rcmlDirectory = publicationPath + File.separator + rcmlDirectory;
        backupDirectory = rcEnvironment.getBackupDirectory();
        backupDirectory = publicationPath + File.separator + backupDirectory;

        // Initialize Revision Controller
        rc = new RevisionController(rcmlDirectory, backupDirectory, publicationPath);
        getLogger().debug("revision controller" + rc);
View Full Code Here

Examples of org.apache.lenya.cms.rc.RCEnvironment

            getLogger().error("Resolving page envelope failed: ", e);
        }

        //get Parameters for RC
        String publicationPath = publication.getDirectory().getCanonicalPath();
        RCEnvironment rcEnvironment =
            RCEnvironment.getInstance(publication.getServletContext().getCanonicalPath());
        rcmlDirectory = rcEnvironment.getRCMLDirectory();
        rcmlDirectory = publicationPath + File.separator + rcmlDirectory;
        backupDirectory = rcEnvironment.getBackupDirectory();
        backupDirectory = publicationPath + File.separator + backupDirectory;

        // Initialize Revision Controller
        rc = new RevisionController(rcmlDirectory, backupDirectory, publicationPath);
        getLogger().debug("revision controller" + rc);
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.