@OpenApiAll
public interface ProjectPersistenceManager
Modifier and Type | Method and Description |
---|---|
void |
exportModule(Project prj,
java.util.Collection packages,
java.lang.String description,
ProjectDescriptor module)
Exports given packages from project into given module.
|
void |
importModule(Project prj,
ProjectDescriptor prjDescriptor)
Loads module by value into given project.
|
boolean |
importProject(ProjectDescriptor pd)
Imports given project into the current project by value.
|
void |
loadProject(ProjectDescriptor descriptor,
boolean silent)
Deprecated.
|
void |
loadProject(ProjectDescriptor descriptor,
ProgressStatus status)
Loads given project
|
void |
reloadModule(Project project,
ProjectDescriptor projectDescriptor)
Reloads module.
|
boolean |
saveModule(Project project,
IAttachedProject module,
boolean silent,
boolean temporal)
|
boolean |
saveModule(Project project,
IAttachedProject module,
boolean displayDependenciesDialog,
ProgressStatus status)
Saves module.
|
boolean |
saveModule(Project project,
IAttachedProject module,
boolean displayDependenciesDialog,
ProgressStatus status,
boolean temporalSave)
Saves module.
|
boolean |
saveProject(ProjectDescriptor descriptor,
boolean silent)
Deprecated.
|
boolean |
saveProject(ProjectDescriptor descriptor,
ProgressStatus status,
boolean silent)
Saves or commits project.
|
void |
unloadModule(Project project,
ProjectDescriptor descriptor)
Removes unreferenced elements from this module, and makes module not loaded.
|
boolean |
useModule(Project prj,
ProjectDescriptor module)
Loads module by reference into given project.
|
@Deprecated void loadProject(ProjectDescriptor descriptor, boolean silent)
loadProject(ProjectDescriptor, ProgressStatus)
void loadProject(ProjectDescriptor descriptor, ProgressStatus status)
descriptor
- project to load.status
- status to display progress@Deprecated boolean saveProject(ProjectDescriptor descriptor, boolean silent)
saveProject(ProjectDescriptor, ProgressStatus, boolean)
boolean saveProject(ProjectDescriptor descriptor, ProgressStatus status, boolean silent)
descriptor
- descriptor of project to save.status
- status to display operation status.silent
- true if no gui should be shown durring save/commmit@Deprecated boolean saveModule(Project project, IAttachedProject module, boolean silent, boolean temporal)
boolean saveModule(Project project, IAttachedProject module, boolean displayDependenciesDialog, ProgressStatus status)
project
- projectmodule
- module to save/commit.displayDependenciesDialog
- displays dependencies dialog if there are bad dependencies. To turn off dependency checkingstatus
- progress status which display status of current operation. @return false if operation fails.boolean saveModule(Project project, IAttachedProject module, boolean displayDependenciesDialog, ProgressStatus status, boolean temporalSave)
project
- projectmodule
- module to save/commit.displayDependenciesDialog
- displays dependencies dialog if there are bad dependencies. To turn off dependency checkingstatus
- progress status which display status of current operation. @return false if operation fails.void reloadModule(Project project, ProjectDescriptor projectDescriptor)
project
- the project.projectDescriptor
- the ProjectDescriptor of the module.boolean useModule(Project prj, ProjectDescriptor module)
prj
- the project.module
- the ProjectDescriptor of the module.void unloadModule(Project project, ProjectDescriptor descriptor)
project
- projectdescriptor
- module descriptorvoid importModule(Project prj, ProjectDescriptor prjDescriptor) throws ReadOnlyElementException
prj
- the project.prjDescriptor
- the ProjectDescriptor of the module.ReadOnlyElementException
- if user has no rights to perform this action.void exportModule(Project prj, java.util.Collection packages, java.lang.String description, ProjectDescriptor module) throws java.io.IOException, ReadOnlyModuleException
prj
- the project.packages
- the packages from given project. These packages will become roots of the given module.description
- the description of module(if null or zero length, description will not be generated).module
- the ProjectDescriptor of the module. Current implementation supports only LocalProjectDescriptor.ReadOnlyModuleException
- if trying export package which is already in module and this module is read onlyjava.io.IOException
java.lang.IllegalStateException
- if given packages have dependencies.boolean importProject(ProjectDescriptor pd)
pd
- Project descriptor to import.