Examples of migrate()


Examples of com.volantis.mcs.migrate.impl.framework.identification.Step.migrate()

                stepType = getCurrentStepType(stepType, steps);

                // Do the migration.
                Exception firstException = null;
                try {
                    step.migrate(stepInput, stepOutput, stepType);
                } catch (ResourceMigrationException e) {
                    firstException = e;
                } finally {
                    try {
                        stepInput.close();
View Full Code Here

Examples of com.volantis.mcs.migrate.impl.framework.stream.XSLStreamMigrator.migrate()

                getClass().getResourceAsStream("xml/simpleExpectedOutput.xml");
        ByteArrayOutputStream output = new ByteArrayOutputStream();

        XSLStreamMigrator migrator =
                new XSLStreamMigrator(SIMPLE_STYLESHEET_LOCATION, reporter);
        migrator.migrate(input, output, StepType.INTERMEDIATE);
        String outputString = new String(output.toByteArray());

        XMLUnit.setIgnoreWhitespace(true);
        XMLAssert.assertXMLEqual("Result should be as expected",
                                 new InputStreamReader(expected),
View Full Code Here

Examples of com.volantis.mcs.migrate.impl.set.file.FileResourceSetMigrator.migrate()

        outputDir.deleteOnExit();
        FileResourceSetMigrator frsm = new FileResourceSetMigrator(file, outputDir,
                                                                   new SimpleCLINotificationReporter());
        PathIdentifyingResourceMigrator migrator =
                new PathIdentifyingResourceMigrator(paths);
        frsm.migrate(migrator);
        if (migrator.failed()) {
            fail(migrator.getFailures().toString());
        }
    }
View Full Code Here

Examples of eu.planets_project.pp.plato.services.action.IMigrationAction.migrate()

        Measurement report = new Measurement();
        report.setProperty(new MeasurableProperty(new FreeStringScale(), MigrationResult.MIGRES_REPORT));
        report.setValue(report.getProperty().getScale().createValue());
       
        try {
            MigrationResult result = service.migrate(e.getAction(), r);
            if (result.isSuccessful()) {
                /* put all info to toolExperience */
                eInfo.getMeasurements().putAll(result.getMeasurements());

                ((BooleanValue)success.getValue()).setValue("true");
View Full Code Here

Examples of eu.planets_project.services.migrate.Migrate.migrate()

         
          //the service's input
          byte[] array = FileUtils.readFileToByteArray(f1);
         
          //the service call and it's result
            DigitalObject digitalObject = extractor.migrate(
                    new DigitalObject.Builder(Content.byValue(array))
                            .build(), null, null, null).getDigitalObject();
            byte[] results = IOUtils.toByteArray(digitalObject.getContent().getInputStream());
      String xcdl = new String(results,"UTF-8");
     
View Full Code Here

Examples of eu.scape_project.planning.model.interfaces.actions.IMigrationAction.migrate()

                        if (workflow != null) {
                            byte[] workflowData = byteStreamManager.load(workflow.getPid());
                            workflow.getData().setData(workflowData);
                        }
                        DigitalObject objectToMigrate = digitalObjectManager.getCopyOfDataFilledDigitalObject(record);
                        migrationResult = migrationAction.migrate(a, objectToMigrate);
                    } catch (StorageException e) {
                        log.error("Failed to load sample object", e);
                    } catch (NullPointerException e) {
                        log.error(
                            "Caught nullpointer exception when running a migration tool. ### WRONG CONFIGURATION? ###",
View Full Code Here

Examples of hidb2.kern.db.MigrationScript.migrate()

        {
        Class<?> clzz = Class.forName(clzzName);

        MigrationScript ms = (MigrationScript) clzz.newInstance();

        res = ms.migrate(this);

        if (res == C_OK)
          {
          // Update database version
          Statement s = _cnx.createStatement();
View Full Code Here

Examples of org.apache.james.mailbox.jpa.migrator.command.JpaMigrateCommand.migrate()

            for (String jira: jiras) {
                JpaMigrateCommand jiraJpaMigratable = (JpaMigrateCommand) Class.forName(JPA_MIGRATION_COMMAND_PACKAGE + "." + jira.toUpperCase() + JpaMigrateCommand.class.getSimpleName()).newInstance();
                System.out.println("Now executing " + jira + " migration.");
                em.getTransaction().begin();
                jiraJpaMigratable.migrate(em);
                em.getTransaction().commit();
                System.out.println(jira + " migration is successfully achieved.");
            }
           
        }
View Full Code Here

Examples of org.drools.repository.migration.MigrateDroolsPackage.migrate()

        if ( initialized ) return;
        if ( self.session.getUserID().equals( "anonymous" ) ) return;
        try {
            MigrateDroolsPackage migration = new MigrateDroolsPackage();
            if ( migration.needsMigration( self ) ) {
                migration.migrate( self );
            }
        } catch ( RepositoryException e ) {
            throw new RulesRepositoryException( e );
        }
        initialized = true;
View Full Code Here

Examples of org.drools.repository.migration.MigrateDroolsPackage.migrate()

                                                   instream,
                                                   ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW );
            session.save();
            MigrateDroolsPackage mig = new MigrateDroolsPackage();
            if ( mig.needsMigration( this ) ) {
                mig.migrate( this );
            }
        } catch ( ItemExistsException e ) {
            String message = "Item already exists. At least two items with the path: " + e.getLocalizedMessage();
            log.error( message,
                       e );
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.