public interface IConfiguredProject
| Modifier and Type | Method and Description |
|---|---|
boolean |
commit(java.lang.String modificationComment)
Trys to perform a commit.
|
void |
deleteFromClient()
Deletes this project from client.
|
void |
discard()
Discards the local changes.
|
java.lang.String |
getProjectName()
Returns the name of the project.
|
java.util.Collection<IPermission> |
getProjectPermissions()
Returns all server permissions related to this project.
|
java.util.Map<java.lang.String,com.arcway.cockpit.docgen.provider.IProjectRelatedReportProvider> |
getProjectRelatedReportDataProviders()
Returns all data providers of this project.
|
java.util.Map<java.lang.String,com.arcway.cockpit.docgen.provider.IProjectRelatedReportProvider> |
getProjectRelatedReportDataProvidersWithoutFilter()
Returns all data providers of this project.
|
java.lang.String |
getProjectUID()
Returns the project's UID.
|
IConfiguredServerConnection |
getServerConnection()
Returns the related server connection of this project.
|
boolean |
hasChanges()
Returns true if this project currently is open and has local
modifications.
|
boolean |
isCommittable()
Returns true if the project is committable (or discardable), i.e. if the
project has changes and the edition allows to commit.
|
boolean |
isOpen()
Determines if this project is currently open.
|
boolean |
open()
Opens the project.
|
IConfiguredServerConnection getServerConnection()
java.lang.String getProjectUID()
java.lang.String getProjectName()
Note: This name is up to date only if the project is currently open.
boolean isOpen()
boolean open()
Must be called only if the project is closed.
java.util.Map<java.lang.String,com.arcway.cockpit.docgen.provider.IProjectRelatedReportProvider> getProjectRelatedReportDataProviders()
Note: The project must be open to perform this operation!
java.util.Map<java.lang.String,com.arcway.cockpit.docgen.provider.IProjectRelatedReportProvider> getProjectRelatedReportDataProvidersWithoutFilter()
Note: The project must be open to perform this operation!
boolean hasChanges()
boolean isCommittable()
boolean commit(java.lang.String modificationComment)
In case the commit fails due to some user reasons (e.g. unsaved editors), the method returns false. In case the commit fails due to some technical reasons (e.g. server timed out), the method throws an exception. In case the commit is successful, the method returns true.
modificationComment - commit comment (null to ask user)void discard()
In case the discardal fails due to some technical reasons (e.g. server timed out), the method throws an exception.
NOTE: After discarding, all report data providers of the project are
invalid and need to be refetched calling
getProjectRelatedReportDataProviders()!
void deleteFromClient()
java.util.Collection<IPermission> getProjectPermissions()