Search in sources :

Example 11 with Project

use of eu.esdihumboldt.hale.common.core.io.project.model.Project in project hale by halestudio.

the class ArchiveProjectExportAdvisor method prepareProvider.

@Override
public void prepareProvider(ArchiveProjectWriter provider) {
    super.prepareProvider(provider);
    ProjectService projectService = getService(ProjectService.class);
    Project project = (Project) projectService.getProjectInfo();
    // set a copy of the project
    provider.setProject(project.clone());
}
Also used : Project(eu.esdihumboldt.hale.common.core.io.project.model.Project) ProjectService(eu.esdihumboldt.hale.ui.service.project.ProjectService)

Example 12 with Project

use of eu.esdihumboldt.hale.common.core.io.project.model.Project in project hale by halestudio.

the class ProjectServiceImpl method createDefaultProject.

/**
 * Create a project with default values
 *
 * @return the created project
 */
private Project createDefaultProject() {
    Project project = new Project();
    project.setCreated(new Date());
    project.setAuthor(System.getProperty("user.name"));
    project.setHaleVersion(haleVersion);
    project.setName(null);
    return project;
}
Also used : Project(eu.esdihumboldt.hale.common.core.io.project.model.Project) Date(java.util.Date)

Aggregations

Project (eu.esdihumboldt.hale.common.core.io.project.model.Project)12 File (java.io.File)6 IOConfiguration (eu.esdihumboldt.hale.common.core.io.project.model.IOConfiguration)4 URI (java.net.URI)4 Value (eu.esdihumboldt.hale.common.core.io.Value)3 IOReport (eu.esdihumboldt.hale.common.core.io.report.IOReport)3 IOMessageImpl (eu.esdihumboldt.hale.common.core.io.report.impl.IOMessageImpl)3 ProjectService (eu.esdihumboldt.hale.ui.service.project.ProjectService)3 IOProviderConfigurationException (eu.esdihumboldt.hale.common.core.io.IOProviderConfigurationException)2 DefaultInputSupplier (eu.esdihumboldt.hale.common.core.io.supplier.DefaultInputSupplier)2 FileIOSupplier (eu.esdihumboldt.hale.common.core.io.supplier.FileIOSupplier)2 FileInputStream (java.io.FileInputStream)2 FileOutputStream (java.io.FileOutputStream)2 Date (java.util.Date)2 ATransaction (de.fhg.igd.slf4jplus.ATransaction)1 AlignmentReader (eu.esdihumboldt.hale.common.align.io.AlignmentReader)1 AlignmentWriter (eu.esdihumboldt.hale.common.align.io.AlignmentWriter)1 LoadAlignmentAdvisor (eu.esdihumboldt.hale.common.align.io.impl.LoadAlignmentAdvisor)1 Alignment (eu.esdihumboldt.hale.common.align.model.Alignment)1 CachingImportProvider (eu.esdihumboldt.hale.common.core.io.CachingImportProvider)1