Package com._1c.g5.v8.derived.context
Interface IContextCollector
-
public interface IContextCollector
A scope collector's purpose is to provide scope of derived data computations in case of one or another BM event.
Note that clients should not implement this interface themselves, but rather useScopeCollectorBuilder
to build an instance of scope collector.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
collectContextOnFeatureChange(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature, BmSubEvent bmEvent, IContextCollectingSession contextSession)
Provides the scope of computations in case of the BM object change.
Note that, if the type of the BM object is not supported, an exception will be thrown.default void
collectContextOnFullRebuild(IBmObject bmObject, IContextCollectingSession contextSession)
Gathers full rebuild scope.default void
collectContextOnFullRebuild(Object objectId, IContextCollectingSession contextSession)
default void
collectContextOnObjectAssociation(IBmObject bmObject, BmSubEvent bmEvent, IContextCollectingSession contextSession)
Provides the scope of computations in case of the BM object change.
Note that, if the type of the BM object is not supported, an exception will be thrown.default String[]
fullRebuildScope()
Gets the full rebuild scope provided by this collector.org.eclipse.emf.ecore.EClass
getSupportedType()
Gets the type of the BM object this collector supports.default boolean
isModelContextCollector()
Returnstrue
if this is a model context collector.default boolean
isResourceContextCollector()
Returnstrue
if this is a resource context collector.
-
-
-
Method Detail
-
collectContextOnFeatureChange
default void collectContextOnFeatureChange(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature, BmSubEvent bmEvent, IContextCollectingSession contextSession)
Provides the scope of computations in case of the BM object change.
Note that, if the type of the BM object is not supported, an exception will be thrown.- Parameters:
bmObject
- the BM object that has been changedfeature
- the feature of the BM object that has been changed. Can benull
in case of binary attachment changesbmEvent
- the event that has been fired by BM in response to the changecontextSession
- Session of the context collection being used to access object contexts.
-
collectContextOnFullRebuild
default void collectContextOnFullRebuild(IBmObject bmObject, IContextCollectingSession contextSession)
Gathers full rebuild scope. Usually it's the object itself, but in some cases it's necessary to affect other DDs of other objects.- Parameters:
bmObject
- The object to collect full rebuild context for.contextSession
- Session of the context collection being used to access object contexts.
-
collectContextOnFullRebuild
default void collectContextOnFullRebuild(Object objectId, IContextCollectingSession contextSession)
-
collectContextOnObjectAssociation
default void collectContextOnObjectAssociation(IBmObject bmObject, BmSubEvent bmEvent, IContextCollectingSession contextSession)
Provides the scope of computations in case of the BM object change.
Note that, if the type of the BM object is not supported, an exception will be thrown.- Parameters:
bmObject
- the BM object that has been associatedbmEvent
- the event that has been fired by BM in response to the associationcontextSession
- Session of the context collection being used to access object contexts.
-
fullRebuildScope
default String[] fullRebuildScope()
Gets the full rebuild scope provided by this collector.- Returns:
- Array of DD segments that participate in the full rebuild procedure using this collector. Can be empty or null in case if this collector isn't participating in the rebuild.
-
isResourceContextCollector
default boolean isResourceContextCollector()
Returnstrue
if this is a resource context collector.- Returns:
true
if this is a resource context collector.
-
isModelContextCollector
default boolean isModelContextCollector()
Returnstrue
if this is a model context collector.- Returns:
true
if this is a model context collector.
-
getSupportedType
org.eclipse.emf.ecore.EClass getSupportedType()
Gets the type of the BM object this collector supports.- Returns:
- The type of supported BM object.
-
-