|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.server.projects.impl.internal.ProjectHandler
public class ProjectHandler
Represents a project residing in a specific folder and its configuration. The configuration is stored in a file in the project folder.
Field Summary | |
---|---|
static String |
CONFIG_FILE_NAME
The name of the project configuration file in the project folder. |
static String |
REPORT_FILE_NAME
The name of the log file in the project folder, containing the reports from loading the project. |
Constructor Summary | |
---|---|
ProjectHandler(File projectFolder,
String overrideProjectFile,
String projectId)
|
Method Summary | |
---|---|
void |
activate(EnvironmentManager environments)
Activate the project. |
void |
deactivate(EnvironmentManager environments)
Deactivate the project. |
protected String |
findProjectFile(File projectDir)
Find a candidate for the project file to load. |
File |
getLoadReportFile()
Get the file the reports for loading the project are stored in. |
protected File |
getProjectFile()
Get the project file is possible. |
ProjectInfo |
getProjectInfo()
Get the project information if available. |
ProjectScavenger.Status |
getStatus()
Get the project status. |
protected Set<String> |
getSupportedExtensions()
Get the supported file extensions for projects. |
TransformationEnvironment |
getTransformationEnvironment()
Get the transformation environment if available. |
void |
update(EnvironmentManager envManager)
Updates the project status from the configuration and if needed loads the project and transformation environment and adds or removes the transformation environment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFIG_FILE_NAME
public static final String REPORT_FILE_NAME
Constructor Detail |
---|
public ProjectHandler(File projectFolder, String overrideProjectFile, String projectId) throws IOException
projectFolder
- the project folderoverrideProjectFile
- the name of the project file if it should
override the configuration, otherwise null
projectId
- the project identifier
IOException
- if accessing the project configuration file failedMethod Detail |
---|
public void update(EnvironmentManager envManager)
envManager
- the environment managerpublic TransformationEnvironment getTransformationEnvironment()
public ProjectInfo getProjectInfo()
public ProjectScavenger.Status getStatus()
public File getLoadReportFile()
protected File getProjectFile()
null
protected String findProjectFile(File projectDir)
projectDir
- the project directory
null
if none was foundprotected Set<String> getSupportedExtensions()
public void activate(EnvironmentManager environments)
environments
- the environment manager to publish the transformation
environment topublic void deactivate(EnvironmentManager environments)
environments
- the environment manager to remove the transformation
environment from if applicable
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |