public interface ProjectService
ProjectService
manages information on a HALE project, such as the
loaded schemas, instances etc.Modifier and Type | Method and Description |
---|---|
void |
addExportConfigurations(List<IOConfiguration> confs)
Add the given configuration to the export configurations of the project
|
void |
addListener(ProjectServiceListener listener)
Adds a project service listener
|
void |
clean()
Clean the project, reset all services.
|
void |
executeAndRemember(IOConfiguration conf)
Execute and remember the given I/O configuration.
|
ComplexConfigurationService |
getConfigurationService()
Get a project scoped configuration service
|
List<String> |
getExportConfigurationNames()
Get all the names of the saved export configurations
|
URI |
getLoadLocation()
Returns the location the current project was loaded from.
|
LocationUpdater |
getLocationUpdater()
Returns the location updater for the current project.
|
ProjectInfo |
getProjectInfo()
Get general information about the current project
|
Iterable<? extends Resource> |
getResources()
Get the resources associated with the current project.
|
boolean |
hasResources(String actionId)
Determines if there are any resources loaded for a given action.
|
boolean |
isChanged()
Get if the project content is changed
|
void |
load(URI uri)
Load a project from a given file.
|
void |
loadTemplate(Project project)
Load a template project.
|
void |
open()
Open a project.
|
void |
rememberIO(String actionId,
String providerId,
IOProvider provider)
Remember I/O operations after the execution of the corresponding I/O
provider for storing it in the project.
|
void |
removeExportConfigurations(List<IOConfiguration> confs)
Remove the given configurations from the export configurations of the
project
|
void |
removeListener(ProjectServiceListener listener)
Removes a project service listener
|
void |
removeResource(String resourceId)
Remove a specific resource.
|
List<? extends Resource> |
removeResources(String actionId)
Remove all resources of the specified actionId from the project.
|
void |
save()
Save the project.
|
void |
saveAs()
Save the project to the given file
|
void |
setChanged()
Inform the service about a change in the project content.
|
void |
updateProjectInfo(ProjectDescription info)
Update the project information with the given description.
|
void addListener(ProjectServiceListener listener)
listener
- the listener to addvoid removeListener(ProjectServiceListener listener)
listener
- the listener to removevoid rememberIO(String actionId, String providerId, IOProvider provider)
actionId
- the I/O action identifierproviderId
- the I/O provider identifierprovider
- the I/O provider instance used for the I/O operationvoid executeAndRemember(IOConfiguration conf)
conf
- the I/O configurationList<? extends Resource> removeResources(String actionId)
actionId
- the I/O action identifierrememberIO(String, String, IOProvider)
void removeResource(String resourceId)
resourceId
- the resource identifierIterable<? extends Resource> getResources()
boolean hasResources(String actionId)
actionId
- the action identifierComplexConfigurationService getConfigurationService()
ProjectInfo getProjectInfo()
void updateProjectInfo(ProjectDescription info)
info
- the project information to merge with the projectboolean isChanged()
void setChanged()
void clean()
void load(URI uri)
uri
- the project filevoid loadTemplate(Project project)
project
- the project templatevoid open()
void save()
saveAs()
if needed.void saveAs()
LocationUpdater getLocationUpdater()
void addExportConfigurations(List<IOConfiguration> confs)
confs
- the configurations which should be addedvoid removeExportConfigurations(List<IOConfiguration> confs)
confs
- the list of configurations which should be removedList<String> getExportConfigurationNames()
URI getLoadLocation()
null
.Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a