Package com.e1c.g5.v8.dt.check.context
Class CheckContextCollectingSession
- java.lang.Object
-
- com.e1c.g5.v8.dt.check.context.CheckContextCollectingSession
-
public final class CheckContextCollectingSession extends Object
The session which must be used byICheck
developers to react on data changes and schedule the check to run, as the part of com.e1c.g5.v8.dt.check.context.*ContextCollector call lifecycle. To schedule the check the developer should call one of add*Check methods of this class. This class is instantiated by the check engine and must not be instantiated by check developers. Technically is aIContextCollectingSession
wrapper that limits the ability of users to operate with DD contexts with only necessary operations/scopes. It helps to prevent check developers from overloading the system with cross- activated checks, etc
-
-
Constructor Summary
Constructors Constructor Description CheckContextCollectingSession(String checkId, CheckComplexity complexity, boolean criticalDataIntegrityCheck, IContextCollectingSession session)
Constructs an instance of the session
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFullCheck(IBmObject modelObject)
Schedule a full model check for a given object (starting from the corresponding top object)void
addLanguageCheck(String moduleUri)
Schedules a language check for the given language modulevoid
addModelCheck(IBmObject modelObject)
Schedule a model check for the given model object.
-
-
-
Constructor Detail
-
CheckContextCollectingSession
public CheckContextCollectingSession(String checkId, CheckComplexity complexity, boolean criticalDataIntegrityCheck, IContextCollectingSession session)
Constructs an instance of the session- Parameters:
checkId
- The identifier of the check the session is being constructed. May not benull
complexity
- The complexity of the check. May not benull
criticalDataIntegrityCheck
- The critical data integrity check flagsession
- The DD context collecting session. May not benull
-
-
Method Detail
-
addLanguageCheck
public void addLanguageCheck(String moduleUri)
Schedules a language check for the given language module- Parameters:
moduleUri
- The module to schedule the check for. May not benull
-
addModelCheck
public void addModelCheck(IBmObject modelObject)
Schedule a model check for the given model object.- Parameters:
modelObject
- The model object to add the check for. May not benull
. The object should be received from the context object being provided by ACC via theOnModelObjectAssociationContextCollector.collectContextOnObjectAssociation(IBmObject, com._1c.g5.v8.bm.core.event.BmSubEvent, CheckContextCollectingSession)
oror be attached to the transaction being collected from the context object
-
addFullCheck
public void addFullCheck(IBmObject modelObject)
Schedule a full model check for a given object (starting from the corresponding top object)- Parameters:
modelObject
- The model object to add the check for. May not benull
. The object should be received from the context object being provided by ACC via theOnModelObjectAssociationContextCollector.collectContextOnObjectAssociation(IBmObject, com._1c.g5.v8.bm.core.event.BmSubEvent, CheckContextCollectingSession)
oror be attached to the transaction being collected from the context object
-
-