Class BmModelManager
java.lang.Object
com._1c.g5.v8.dt.internal.core.platform.bm.BmModelManager
- All Implemented Interfaces:
IResourcePlan
,IBmModelManager
,IManagedService
@LifecycleService(name="BM_MODEL_MANAGER")
public class BmModelManager
extends Object
implements IBmModelManager, IResourcePlan
IBmModelManager
implementation.-
Nested Class Summary
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.core.platform.IBmModelManager
IBmModelManager.BmModelManagerLifecycleParticipant
-
Field Summary
Fields inherited from interface com._1c.g5.v8.dt.core.platform.IBmModelManager
SAVE_JOB_FAMILY, SERVICE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Start up BM manager work.void
addAsyncEventListener
(IBmNamespace namespace, IBmAsyncEventListener listener, BmEventFilter... filters) Adds the specified asynchronous event listener.void
addLifecycleListener
(IBmModel model, IBmLifecycleListener listener) Registers the given lifecycle listener.void
addSyncEventListener
(IBmNamespace namespace, IBmSyncEventListener listener) Adds the specified synchronous event listener.void
applyProjectStoreSnapshot
(org.eclipse.core.resources.IProject project, InputStream in) Applies project store snapshot.beginBatchSession
(Object handle) Begins batch mode.Creates a local platform context.void
Shut down BM manager work.void
Disposes all the editing contexts affecting objects belonging to the specified project.void
endBatchSession
(Object handle) Ends the batch session associated with the specified handle.<T> Future<T>
executeAsynchronously
(IDtProject dtProject, IBmSingleNamespaceTask<T> task) Executes the given task in a separate thread (comparing to the calling thread).<T> Future<T>
executeAsynchronously
(org.eclipse.core.resources.IProject project, IBmSingleNamespaceTask<T> task) Executes the given task in a separate thread (comparing to the calling thread).<T> T
executeInBatchSession
(Object handle, IBmPlatformTask<T> task) Executes task in a batch session.<T> T
executeReadOnlyTask
(IBmNamespace namespace, IBmSingleNamespaceTask<T> task) Executes aIBmSingleNamespaceTask
which is bound to a single namespace in a read-only mode<T> T
executeReadOnlyTask
(IBmPlatformTask<T> task) Executes aIBmPlatformTask
in a read-only mode<T> T
executeReadOnlyTask
(IDtProject dtProject, IBmSingleNamespaceTask<T> task) Executes aIBmSingleNamespaceTask
which is bound to a single namespace in a read-only mode<T> T
executeReadOnlyTask
(org.eclipse.core.resources.IProject project, IBmSingleNamespaceTask<T> task) Executes aIBmSingleNamespaceTask
which is bound to a single namespace in a read-only mode<T> T
executeReadWriteTask
(IBmNamespace namespace, IBmSingleNamespaceTask<T> task) Executes aIBmSingleNamespaceTask
which is bound to a single namespace<T> T
executeReadWriteTask
(IBmNamespace namespace, IBmSingleNamespaceTask<T> task, boolean disableEvents) Executes aIBmSingleNamespaceTask
which is bound to a single namespace<T> T
executeReadWriteTask
(IDtProject dtProject, IBmSingleNamespaceTask<T> task) Executes aIBmSingleNamespaceTask
which is bound to a single namespace<T> T
executeReadWriteTask
(Object taskId, Object serviceId, boolean disableEvents, IBmPlatformTask<T> task) Executes a read-write task.<T> T
executeReadWriteTask
(Object taskId, Object serviceId, IBmPlatformTask<T> task) Executes a read-write task.<T> T
executeReadWriteTask
(org.eclipse.core.resources.IProject project, IBmSingleNamespaceTask<T> task) Executes aIBmSingleNamespaceTask
which is bound to a single namespaceboolean
forceExport
(IDtProject project, String fqn) Forces export of the object with the specified FQN.boolean
forceExport
(IDtProject project, List<String> fqns) Forces export of the objects with the specified FQNs.Proclaim demands of resources for a given set of activities.getBmNamespace
(IDtProject project) Gets the namespace storing the data of the specified project.getBmNamespace
(org.eclipse.core.resources.IProject project) Gets the namespace storing the data of the specified project.Gets the underlying BM platform.getDtProject
(IBmModel bmModel) ReturnsIDtProject
project associated with given BM instance.getDtProject
(String engineId) Returnsproject
associated with given BM engine.Gets platform global editing context instancegetModel
(IDtProject dtProject) ReturnsIBmModel
instance by given project.getModel
(org.eclipse.core.resources.IProject project) ReturnsIBmModel
instance by given project.getModel
(org.eclipse.emf.common.util.URI uri) ReturnsIBmModel
which contains object with givenURI
.getModel
(org.eclipse.emf.ecore.EObject object) ReturnsIBmModel
which contains the given model object.Collection<org.eclipse.emf.ecore.EPackage>
Gets the collection of EMF packages supported by the model.org.eclipse.core.resources.IProject
getProject
(IBmModel bmModel) Returnsproject
associated with given BM instance.void
initStorage
(ILifecycleContext lifecycleContext) Participates thestorage initialization
phase.
Initiates the BmModel instance for the project of the specifiedprojectContext
.boolean
isLocked
(org.eclipse.core.resources.IProject project) Checks if the given project's BM model is locked at the moment.void
link()
Participates thelinking
phase.void
lockModel
(org.eclipse.core.resources.IProject project) Raises the lock on the given model.void
postResourceLoading
(ProjectContext projectContext) Participates thepost resource loading
phase.
Waits for derived data computations of 'MD_PRE' and 'FORM_PRE' segments.void
Registers lifecycle participant.void
removeAsyncEventListener
(IBmNamespace namespace, IBmAsyncEventListener listener) Removes the specified asynchronous event listener.void
removeLifecycleListener
(IBmModel model, IBmLifecycleListener listener) Unregisters the given lifecycle listener.void
removeSyncEventListener
(IBmNamespace namespace, IBmSyncEventListener listener) Removes the specified synchronous event listener.<T extends org.eclipse.emf.ecore.EObject>
Tresolve
(T proxyOrObject, org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EObject objContext) Resolves given proxy using the provide resource context for the resolving/starting point.void
resourceLoading
(ProjectContext projectContext) Participates theresource loading
phase.
Starts the synchronization.void
saveProjectStoreSnapshot
(org.eclipse.core.resources.IProject project, OutputStream out) Saves project store snapshot.void
shutdown()
Performs the shutdown.void
storageClosing
(ProjectContext projectContext) Participates thestorage closing
phase.
Performs closing steps for BM Model associated with the project of the specifiedprojectContext
.void
unlockModel
(org.eclipse.core.resources.IProject project) Releases previously defined lock for the given project's modelvoid
Waits till all the events enqueued prior to calling this method are sent.void
waitModelSynchronization
(org.eclipse.core.resources.IProject project) Waits for project BM synchronization jobs.
-
Constructor Details
-
BmModelManager
public BmModelManager()Constructs an instance
-
-
Method Details
-
activate
public void activate()Description copied from interface:IBmModelManager
Start up BM manager work. The manager configures itself and all associated infrastructure.Clients are intended to invoke
#shutdown()
when manager work is no longer needed.- Specified by:
activate
in interfaceIBmModelManager
- Specified by:
activate
in interfaceIManagedService
-
deactivate
public void deactivate()Description copied from interface:IBmModelManager
Shut down BM manager work. The manager shutdowns itself and all associated infrastructure.- Specified by:
deactivate
in interfaceIBmModelManager
- Specified by:
deactivate
in interfaceIManagedService
-
registerLifecycleParticipant
public void registerLifecycleParticipant(IBmModelManager.BmModelManagerLifecycleParticipant participant) Description copied from interface:IBmModelManager
Registers lifecycle participant. To be sure that registered participant will participate during each supported lifecycle phase ofIBmModelManager
the participant should be registered during theLifecyclePhase.LINKING
phase of service lifecycle- Specified by:
registerLifecycleParticipant
in interfaceIBmModelManager
- Parameters:
participant
- The participant to register. Cannot benull
-
getBmPlatform
Description copied from interface:IBmModelManager
Gets the underlying BM platform.- Specified by:
getBmPlatform
in interfaceIBmModelManager
- Returns:
- the underlying BM platform or
null
in case the model manager is not initialized yet.
-
getBmNamespace
Description copied from interface:IBmModelManager
Gets the namespace storing the data of the specified project.- Specified by:
getBmNamespace
in interfaceIBmModelManager
- Parameters:
project
- The project. May not benull
.- Returns:
- the namespace or
null
if the project context is not started yet.
-
getBmNamespace
Description copied from interface:IBmModelManager
Gets the namespace storing the data of the specified project.- Specified by:
getBmNamespace
in interfaceIBmModelManager
- Parameters:
project
- The project. May not benull
.- Returns:
- the namespace or
null
if the project context is not started yet.
-
getModel
Description copied from interface:IBmModelManager
ReturnsIBmModel
which contains the given model object.
Can returnnull
if there is no BM instances, that handles the given model object.- Specified by:
getModel
in interfaceIBmModelManager
- Returns:
IBmModel
which contains the given model object ornull
if object is not handled by anyIBmModel
-
getModel
Description copied from interface:IBmModelManager
ReturnsIBmModel
instance by given project.
Can returnnull
if there is no BM instance, associated with the given project.- Specified by:
getModel
in interfaceIBmModelManager
- Parameters:
project
- the project (notnull
)- Returns:
IBmModel
instance ornull
if given project doesn't associated with any BM model and cannot create one
-
getModel
Description copied from interface:IBmModelManager
ReturnsIBmModel
which contains object with givenURI
.
Can returnnull
if there is no BM instances, that handles the object with the givenURI
.- Specified by:
getModel
in interfaceIBmModelManager
- Parameters:
uri
- the objectURI
(notnull
)- Returns:
IBmModel
which contains object with givenURI
ornull
if object is not handled by anyIBmModel
-
getProject
Description copied from interface:IBmModelManager
Returnsproject
associated with given BM instance.
Can returnnull
if there is no projects, associated with the given BM instance.- Specified by:
getProject
in interfaceIBmModelManager
- Parameters:
bmModel
- theIBmModel
instance (notnull
)- Returns:
project
associated with given big model instance
-
getDtProject
Description copied from interface:IBmModelManager
Returnsproject
associated with given BM engine.
Can returnnull
if there is no projects, associated with the given BM engine.- Specified by:
getDtProject
in interfaceIBmModelManager
- Parameters:
engineId
- the identifier of the BM engine, (notnull
)- Returns:
project
associated with given engine
-
getDtProject
Description copied from interface:IBmModelManager
ReturnsIDtProject
project associated with given BM instance.
Can returnnull
if there is no projects, associated with the given BM instance.- Specified by:
getDtProject
in interfaceIBmModelManager
- Parameters:
bmModel
- theIBmModel
instance (notnull
)- Returns:
IDtProject
project associated with given big model instance
-
resolve
public <T extends org.eclipse.emf.ecore.EObject> T resolve(T proxyOrObject, org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EObject objContext) Description copied from interface:IBmModelManager
Resolves given proxy using the provide resource context for the resolving/starting point.
Aware of BM infrastructure and standalone resources.- Specified by:
resolve
in interfaceIBmModelManager
- Parameters:
proxyOrObject
- proxy to resolve.context
- the context resource.objContext
- the object context.- Returns:
- The resolved object (if referenced object already exists and reachable) or proxy of the source type.
-
waitModelSynchronization
public void waitModelSynchronization(org.eclipse.core.resources.IProject project) Description copied from interface:IBmModelManager
Waits for project BM synchronization jobs.- Specified by:
waitModelSynchronization
in interfaceIBmModelManager
-
lockModel
public void lockModel(org.eclipse.core.resources.IProject project) Description copied from interface:IBmModelManager
Raises the lock on the given model. The lock indicates that all data critical clients should cease their requests and wait until the lock is released.- Specified by:
lockModel
in interfaceIBmModelManager
- Parameters:
project
- The target project which BM should be locked. Cannot benull
-
unlockModel
public void unlockModel(org.eclipse.core.resources.IProject project) Description copied from interface:IBmModelManager
Releases previously defined lock for the given project's model- Specified by:
unlockModel
in interfaceIBmModelManager
- Parameters:
project
- The project to unlock the BM model for. Cannot benull
-
isLocked
public boolean isLocked(org.eclipse.core.resources.IProject project) Description copied from interface:IBmModelManager
Checks if the given project's BM model is locked at the moment.- Specified by:
isLocked
in interfaceIBmModelManager
- Parameters:
project
- The project to check the locked state for. Cannot benull
- Returns:
- True if the corresponding BM is locked at the moment; false otherwise
-
gatherActivities
Description copied from interface:IResourcePlan
Proclaim demands of resources for a given set of activities.- Specified by:
gatherActivities
in interfaceIResourcePlan
- Returns:
- Returns
IActivityDemandsDefinition
mapped to respective name of the activity.
-
addLifecycleListener
Description copied from interface:IBmModelManager
Registers the given lifecycle listener.- Specified by:
addLifecycleListener
in interfaceIBmModelManager
listener
- The lifecycle listener. May not benull
.
-
removeLifecycleListener
Description copied from interface:IBmModelManager
Unregisters the given lifecycle listener.- Specified by:
removeLifecycleListener
in interfaceIBmModelManager
listener
- The lifecycle listener. May not benull
.
-
getModelPackages
Description copied from interface:IBmModelManager
Gets the collection of EMF packages supported by the model.- Specified by:
getModelPackages
in interfaceIBmModelManager
- Returns:
- the collection of EMF packages supported by the model, never
null
.
-
executeReadOnlyTask
Description copied from interface:IBmModelManager
Executes aIBmPlatformTask
in a read-only mode- Specified by:
executeReadOnlyTask
in interfaceIBmModelManager
- Type Parameters:
T
- The type of the task's return valu- Parameters:
task
- The task to run. May not benull
- Returns:
- The result of the task execution. May not be
null
-
executeReadOnlyTask
Description copied from interface:IBmModelManager
Executes aIBmSingleNamespaceTask
which is bound to a single namespace in a read-only mode- Specified by:
executeReadOnlyTask
in interfaceIBmModelManager
- Type Parameters:
T
- The type of the task's return value- Parameters:
dtProject
- The targetIDtProject
. May not benull
task
- The task to run. May not benull
- Returns:
- The result of the task execution. May not be
null
-
executeReadOnlyTask
public <T> T executeReadOnlyTask(org.eclipse.core.resources.IProject project, IBmSingleNamespaceTask<T> task) Description copied from interface:IBmModelManager
Executes aIBmSingleNamespaceTask
which is bound to a single namespace in a read-only mode- Specified by:
executeReadOnlyTask
in interfaceIBmModelManager
- Type Parameters:
T
- The type of the task's return value- Parameters:
project
- The targetIProject
. May not benull
task
- The task to run. May not benull
- Returns:
- The result of the task execution. May not be
null
-
executeReadOnlyTask
Description copied from interface:IBmModelManager
Executes aIBmSingleNamespaceTask
which is bound to a single namespace in a read-only mode- Specified by:
executeReadOnlyTask
in interfaceIBmModelManager
- Type Parameters:
T
- The type of the task's return value- Parameters:
namespace
- The targetIBmNamespace
. May not benull
task
- The task to run. May not benull
- Returns:
- The result of the task execution. May not be
null
-
executeReadWriteTask
Description copied from interface:IBmModelManager
Executes a read-write task.- Specified by:
executeReadWriteTask
in interfaceIBmModelManager
- Type Parameters:
T
- The type of the task's return value.- Parameters:
taskId
- The ID of the task. May benull
.serviceId
- The ID of the service that requested the task execution. May benull
.task
- The task to execute. May not benull
.- Returns:
- the result returned by
IBmPlatformTask.execute(IBmPlatformTransaction)
method.
-
executeReadWriteTask
public <T> T executeReadWriteTask(Object taskId, Object serviceId, boolean disableEvents, IBmPlatformTask<T> task) Description copied from interface:IBmModelManager
Executes a read-write task.- Specified by:
executeReadWriteTask
in interfaceIBmModelManager
- Type Parameters:
T
- The type of the task's return value.- Parameters:
taskId
- The ID of the task. May benull
.serviceId
- The ID of the service that requested the task execution. May benull
.disableEvents
- The flag that disables sending of BM data change eventstask
- The task to execute. May not benull
.- Returns:
- the result returned by
IBmPlatformTask.execute(IBmPlatformTransaction)
method.
-
executeReadWriteTask
Description copied from interface:IBmModelManager
Executes aIBmSingleNamespaceTask
which is bound to a single namespace- Specified by:
executeReadWriteTask
in interfaceIBmModelManager
- Type Parameters:
T
- The type of the task's return value- Parameters:
dtProject
- The targetIDtProject
. May not benull
task
- The task to run. May not benull
- Returns:
- The result of the task execution. May not be
null
-
executeReadWriteTask
public <T> T executeReadWriteTask(org.eclipse.core.resources.IProject project, IBmSingleNamespaceTask<T> task) Description copied from interface:IBmModelManager
Executes aIBmSingleNamespaceTask
which is bound to a single namespace- Specified by:
executeReadWriteTask
in interfaceIBmModelManager
- Type Parameters:
T
- The type of the task's return valuetask
- The task to run. May not benull
- Returns:
- The result of the task execution. May not be
null
-
executeReadWriteTask
Description copied from interface:IBmModelManager
Executes aIBmSingleNamespaceTask
which is bound to a single namespace- Specified by:
executeReadWriteTask
in interfaceIBmModelManager
- Type Parameters:
T
- The type of the task's return value- Parameters:
namespace
- The targetIBmNamespace
. May not benull
task
- The task to run. May not benull
- Returns:
- The result of the task execution. May not be
null
-
executeReadWriteTask
public <T> T executeReadWriteTask(IBmNamespace namespace, IBmSingleNamespaceTask<T> task, boolean disableEvents) Description copied from interface:IBmModelManager
Executes aIBmSingleNamespaceTask
which is bound to a single namespace- Specified by:
executeReadWriteTask
in interfaceIBmModelManager
- Type Parameters:
T
- The type of the task's return value- Parameters:
namespace
- The targetIBmNamespace
. May not benull
task
- The task to run. May not benull
- Returns:
- The result of the task execution. May not be
null
-
createLocalEditingContext
Description copied from interface:IBmModelManager
Creates a local platform context.- Specified by:
createLocalEditingContext
in interfaceIBmModelManager
- Parameters:
name
- The name of the context. May not benull
.- Returns:
- a newly created local context instance, never
null
.
-
getGlobalEditingContext
Description copied from interface:IBmModelManager
Gets platform global editing context instance- Specified by:
getGlobalEditingContext
in interfaceIBmModelManager
- Returns:
- The global editing context of the platform. May not be
null
-
beginBatchSession
Description copied from interface:IBmModelManager
Begins batch mode.- Specified by:
beginBatchSession
in interfaceIBmModelManager
- Returns:
- the batch mode handle object, never
null
.
-
endBatchSession
Description copied from interface:IBmModelManager
Ends the batch session associated with the specified handle.- Specified by:
endBatchSession
in interfaceIBmModelManager
- Parameters:
handle
- The batch session handle. May not benull
.- See Also:
-
#beginBatchMode()
-
executeInBatchSession
Description copied from interface:IBmModelManager
Executes task in a batch session.- Specified by:
executeInBatchSession
in interfaceIBmModelManager
- Type Parameters:
T
- The type of the task's return value.- Parameters:
handle
- The batch session handle. May not benull
.task
- The task to execute. May not benull
.- Returns:
- the result returned by
IBmPlatformTask.execute(IBmPlatformTransaction)
method.
-
executeAsynchronously
public <T> Future<T> executeAsynchronously(org.eclipse.core.resources.IProject project, IBmSingleNamespaceTask<T> task) Description copied from interface:IBmModelManager
Executes the given task in a separate thread (comparing to the calling thread). This method could be used to ensure the data modification will be performed independently of a BM transaction that may be started in the calling thread already. Please note that this operation is not a performance-effective one, so it should be used only in case if some process flow conflicts with other threadsIBmTransaction
locks and cannot be redesigned at the moment to a normal orchestrated form- Specified by:
executeAsynchronously
in interfaceIBmModelManager
- Parameters:
project
- A target project. May not benull
task
- A task to run. May not benull
- Returns:
- A future that provides access to a result of an operation. Never
null
-
executeAsynchronously
Description copied from interface:IBmModelManager
Executes the given task in a separate thread (comparing to the calling thread). This method could be used to ensure the data modification will be performed independently of a BM transaction that may be started in the calling thread already. Please note that this operation is not a performance-effective one, so it should be used only in case if some process flow conflicts with other threadsIBmTransaction
locks and cannot be redesigned at the moment to a normal orchestrated form- Specified by:
executeAsynchronously
in interfaceIBmModelManager
- Parameters:
dtProject
- A target DT project. May not benull
task
- A task to run. May not benull
- Returns:
- A future that provides access to a result of an operation. Never
null
-
waitAllEnqueuedEventsSent
public void waitAllEnqueuedEventsSent()Description copied from interface:IBmModelManager
Waits till all the events enqueued prior to calling this method are sent.- Specified by:
waitAllEnqueuedEventsSent
in interfaceIBmModelManager
-
addSyncEventListener
Description copied from interface:IBmModelManager
Adds the specified synchronous event listener.- Specified by:
addSyncEventListener
in interfaceIBmModelManager
- Parameters:
namespace
- The namespace to add the listener to. May not benull
.listener
- The listener to add. May not benull
.
-
removeSyncEventListener
Description copied from interface:IBmModelManager
Removes the specified synchronous event listener.- Specified by:
removeSyncEventListener
in interfaceIBmModelManager
- Parameters:
namespace
- The namespace to remove the listener from. May not benull
.listener
- The listener to remove. May not benull
.
-
addAsyncEventListener
public void addAsyncEventListener(IBmNamespace namespace, IBmAsyncEventListener listener, BmEventFilter... filters) Description copied from interface:IBmModelManager
Adds the specified asynchronous event listener. The listener is notified in case the event matches at least one of the specified filters or no filter is specified.- Specified by:
addAsyncEventListener
in interfaceIBmModelManager
- Parameters:
namespace
- The namespace to add the listener to. May not benull
.listener
- The listener to add. May not benull
.filters
- The filters. May benull
.
-
removeAsyncEventListener
Description copied from interface:IBmModelManager
Removes the specified asynchronous event listener.- Specified by:
removeAsyncEventListener
in interfaceIBmModelManager
- Parameters:
namespace
- The namespace to remove the listener from. May not benull
.listener
- The listener to remove. May not benull
.
-
link
Participates thelinking
phase.For more information see
LifecyclePhase.LINKING
- See Also:
-
shutdown
public void shutdown()Performs the shutdown.We do not call this method on unlinking phase as unlinking can be executed a few times per EDT session whereas this method must be executed exactly once.
-
initStorage
@LifecycleParticipant(phase=STORAGE_INITIALIZATION) public void initStorage(ILifecycleContext lifecycleContext) Participates thestorage initialization
phase.
Initiates the BmModel instance for the project of the specifiedprojectContext
.For more information see
LifecyclePhase.STORAGE_INITIALIZATION
- Parameters:
projectContext
- the project context, cannot benull
.- See Also:
-
resourceLoading
@LifecycleParticipant(phase=RESOURCE_LOADING, dependsOn="LIBRARY_PROJECT_RESOURCE_MANAGER") public void resourceLoading(ProjectContext projectContext) Participates theresource loading
phase.
Starts the synchronization.For more information see
LifecyclePhase.RESOURCE_LOADING
- Parameters:
projectContext
- the project context, cannot benull
.- See Also:
-
postResourceLoading
@LifecycleParticipant(phase=POST_RESOURCE_LOADING) public void postResourceLoading(ProjectContext projectContext) Participates thepost resource loading
phase.
Waits for derived data computations of 'MD_PRE' and 'FORM_PRE' segments.For more information see
LifecyclePhase.POST_RESOURCE_LOADING
- Parameters:
projectContext
- the project context, cannot benull
.- See Also:
-
storageClosing
@LifecycleParticipant(phase=STORAGE_CLOSING) public void storageClosing(ProjectContext projectContext) Participates thestorage closing
phase.
Performs closing steps for BM Model associated with the project of the specifiedprojectContext
.For more information see
LifecyclePhase.STORAGE_CLOSING
- Parameters:
projectContext
- the project context, cannot benull
.- See Also:
-
getModel
Description copied from interface:IBmModelManager
ReturnsIBmModel
instance by given project.
Can returnnull
if there is no BM instance, associated with the given project.- Specified by:
getModel
in interfaceIBmModelManager
- Returns:
IBmModel
instance ornull
if given project doesn't associated with any BM model and cannot create one
-
disposeEditingContextsAffectingProject
Disposes all the editing contexts affecting objects belonging to the specified project.- Parameters:
project
- The project. May not benull
.
-
saveProjectStoreSnapshot
Saves project store snapshot. The method has been introduced to migrate BmSnapshotParticipant only.- Parameters:
project
- The project. May not benull
.out
- The output stream to write snapshot to. May not benull
.
-
applyProjectStoreSnapshot
Applies project store snapshot. The method has been introduced to migrate BmSnapshotParticipant only.- Parameters:
project
- The project. May not benull
.in
- The input stream to read snapshot from. May not benull
.
-
forceExport
Description copied from interface:IBmModelManager
Forces export of the object with the specified FQN. This method is supposed to be called within an exclusive workspace operation.- Specified by:
forceExport
in interfaceIBmModelManager
- Parameters:
project
- The project the object belongs to. May not benull
.fqn
- The FQN of the object. May not benull
.- Returns:
true
in case export was performed,false
if there was nothing to export, i.e. there was nothing to export.
-
forceExport
Description copied from interface:IBmModelManager
Forces export of the objects with the specified FQNs. The save process is parallelized.- Specified by:
forceExport
in interfaceIBmModelManager
- Parameters:
project
- The project the object belongs to. May not benull
.fqns
- The FQN of the objects. May not benull
.- Returns:
true
in case export was performed,false
if there was nothing to export, i.e. there was nothing to export.
-