Examples of DocumentLocator


Examples of eu.planets_project.ifr.core.services.migration.genericwrapper1.utils.DocumentLocator

    @Before
    public void setUp() throws Exception {

  this.testParameters.add(new Parameter("mode", "complete"));

  DocumentLocator documentLocator = new DocumentLocator(
    "deprecatedGenericWrapperV1ExampleConfigFile.xml");
  this.genericWrapper = new GenericMigrationWrapper(documentLocator
    .getDocument(), this.getClass().getCanonicalName());

    }
View Full Code Here

Examples of eu.planets_project.ifr.core.services.migration.genericwrapper1.utils.DocumentLocator

    /**
     * @throws Exception
     */
    public MigrationPathsTest() throws Exception {
        final DocumentLocator documentLocator = new DocumentLocator(
                TEST_CONFIGURATION_FILE_NAME);
        final Document pathsConfiguration = documentLocator.getDocument();

        final MigrationPathsFactory migrationPathsFactory = new MigrationPathsFactory();
        this.migrationPathsToTest = migrationPathsFactory
                .getMigrationPaths(pathsConfiguration);
    }
View Full Code Here

Examples of eu.planets_project.ifr.core.services.migration.genericwrapper2.utils.DocumentLocator

     * @throws java.lang.Exception
     */
    @Before
    public void setUp() throws Exception {

  final DocumentLocator documentLocator = new DocumentLocator(
    CONFIG_FILE_NAME);

  serviceDescriptionFactory = new ServiceDescriptionFactory(this
    .getClass().getCanonicalName(), SERVICE_PROVIDER,
    documentLocator.getDocument());
    }
View Full Code Here

Examples of eu.planets_project.ifr.core.services.migration.genericwrapper2.utils.DocumentLocator

    /**
     * @throws java.lang.Exception
     */
    @Before
    public void setUp() throws Exception {
  DocumentLocator documentLocator = new DocumentLocator(TEST_CONFIG_FILE);
  Document testConfiguration = documentLocator.getDocument();
  this.migrationPathFactory = new DBMigrationPathFactory(testConfiguration);
    }
View Full Code Here

Examples of eu.planets_project.ifr.core.services.migration.genericwrapper2.utils.DocumentLocator

    public void setUp() throws Exception {

  final Configuration environmentConfiguration = ServiceConfig
    .getConfiguration("genericwrapper2_GenericMigrationWrapperTest");

  final DocumentLocator documentLocator = new DocumentLocator(
    "GenericWrapperConfigFileExample.xml");

  this.genericWrapper = new GenericMigrationWrapper(documentLocator
    .getDocument(), environmentConfiguration, this.getClass()
    .getCanonicalName());

  this.testParameters = new ArrayList<Parameter>();
    }
View Full Code Here

Examples of eu.planets_project.ifr.core.services.migration.genericwrapper2.utils.DocumentLocator

    /**
     * @throws Exception
     */
    public MigrationPathsTest() throws Exception {
        final DocumentLocator documentLocator = new DocumentLocator(
                TEST_CONFIGURATION_FILE_NAME);
        final Document pathsConfiguration = documentLocator.getDocument();

        final MigrationPathFactory migrationPathsFactory = new DBMigrationPathFactory(pathsConfiguration);
        this.migrationPathsToTest = migrationPathsFactory
                .getAllMigrationPaths();
    }
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentLocator

      SiteStructure site = area.getSite();
      SiteNode node = site.getNode(PATH);
      Document doc_en = node.getLink("en").getDocument();
      Document doc_de = node.getLink("de").getDocument();

      DocumentLocator loc = DocumentLocator.getLocator(pub.getId(), "trash", PATH, doc_en.getLanguage());

      docMgr.copyAll(area, PATH, trashArea, PATH);

      SiteStructure trashSite = trashArea.getSite();
      assertTrue(trashSite.contains(PATH));
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentLocator

        try {
            selector = (ServiceSelector) this.manager.lookup(SiteManager.ROLE + "Selector");
            siteManager = (SiteManager) selector.select(publication.getSiteManagerHint());

            if (!liveSite.contains(document.getPath())) {
                DocumentLocator liveLoc = document.getLocator().getAreaVersion(
                        Publication.LIVE_AREA);
                DocumentLocator[] requiredNodes = siteManager
                        .getRequiredResources(map, liveLoc);
                for (int i = 0; i < requiredNodes.length; i++) {
                    String path = requiredNodes[i].getPath();
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentLocator

            try {
                selector = (ServiceSelector) this.manager.lookup(SiteManager.ROLE + "Selector");
                siteManager = (SiteManager) selector.select(publication.getSiteManagerHint());

                if (!liveSite.contains(document.getPath())) {
                    DocumentLocator liveLoc = document.getLocator().getAreaVersion(
                            Publication.LIVE_AREA);
                    DocumentLocator[] requiredNodes = siteManager
                            .getRequiredResources(map, liveLoc);
                    for (int i = 0; i < requiredNodes.length; i++) {
                        String path = requiredNodes[i].getPath();
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentLocator

            try {
                selector = (ServiceSelector) this.manager.lookup(SiteManager.ROLE + "Selector");
                siteManager = (SiteManager) selector.select(publication.getSiteManagerHint());

                if (!liveSite.contains(document.getPath())) {
                    DocumentLocator liveLoc = document.getLocator().getAreaVersion(
                            Publication.LIVE_AREA);
                    DocumentLocator[] requiredNodes = siteManager
                            .getRequiredResources(map, liveLoc);
                    for (int i = 0; i < requiredNodes.length; i++) {
                        String path = requiredNodes[i].getPath();
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.