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());
}
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;
}
Aggregations