Package com.e1c.g5.v8.dt.check
Interface ICheckScheduler
- All Superinterfaces:
IManagedService
- All Known Implementing Classes:
CheckScheduler
This service allows to schedule checks for the provided set of features and target objects
Checks are being executed by ACC subsystem in asynchronous manner, with results immediatelly available on finihish
of the schedule check
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
isDeactivatedCheckPermitted
(Object objectId, org.eclipse.core.resources.IProject project) States if there is an explicit permission was given earlier to perform checks for a provided object.void
permitDeactivatedCheckRequest
(Object objectId, org.eclipse.core.resources.IProject project) Permits next request to check for a specific object even if massive checks are deactivated for a specified project.void
scheduleClearance
(org.eclipse.core.resources.IProject project, Set<String> checkIds, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Schedules the clearance of the check results for the given set of checksvoid
scheduleValidation
(org.eclipse.core.resources.IProject project, Set<String> checkIds, Collection<Object> topObjectIds, boolean isRecursive, IBmTransaction transaction, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Schedules the model object validation for objects with given object ids by suitable checks with the given check ids.default void
scheduleValidation
(org.eclipse.core.resources.IProject project, Set<String> checkIds, Collection<Object> topObjectIds, IBmTransaction transaction, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Schedules the model object validation for objects with given object ids by suitable checks with the given check ids.void
scheduleValidation
(org.eclipse.core.resources.IProject project, Set<String> checkIds, Collection<Object> topObjectIds, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Schedules the model object validation for objects with given object ids by suitable checks with the given check ids.Methods inherited from interface com._1c.g5.wiring.IManagedService
activate, deactivate
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
scheduleClearance
void scheduleClearance(org.eclipse.core.resources.IProject project, Set<String> checkIds, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Schedules the clearance of the check results for the given set of checks- Parameters:
project
- Target project, notnull
checkIds
- The set of target check identifeirs. If empty set is applied - all applicable checks will be cleared, notnull
progressMonitor
- progress monitor, notnull
-
scheduleValidation
default void scheduleValidation(org.eclipse.core.resources.IProject project, Set<String> checkIds, Collection<Object> topObjectIds, IBmTransaction transaction, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Schedules the model object validation for objects with given object ids by suitable checks with the given check ids. It will probably be executed asynchronously. It can be canceled using the progress monitor.- Parameters:
project
- Target project, notnull
checkIds
- The set of target check identifeirs. If empty set is applied - all applicable checks will be scheduled, notnull
topObjectIds
- Identifiers of checked objects, all available objects if left empty, notnull
transaction
- The active read-only transaction to perform the scheduling of checks (e.g. context collection)progressMonitor
- progress monitor, notnull
-
scheduleValidation
void scheduleValidation(org.eclipse.core.resources.IProject project, Set<String> checkIds, Collection<Object> topObjectIds, boolean isRecursive, IBmTransaction transaction, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Schedules the model object validation for objects with given object ids by suitable checks with the given check ids. It will probably be executed asynchronously. It can be canceled using the progress monitor.- Parameters:
project
- Target project, notnull
checkIds
- The set of target check identifeirs. If empty set is applied - all applicable checks will be scheduled, notnull
topObjectIds
- Identifiers of checked objects, all available objects if left empty, notnull
isRecursive
- iftrue
all the dependencies (including modules) of objects provided by topObjectIds are processed. Iffalse
then it's supposed that all required objects are passed via topObjectIdstransaction
- The active read-only transaction to perform the scheduling of checks (e.g. context collection)progressMonitor
- progress monitor, notnull
-
scheduleValidation
void scheduleValidation(org.eclipse.core.resources.IProject project, Set<String> checkIds, Collection<Object> topObjectIds, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Schedules the model object validation for objects with given object ids by suitable checks with the given check ids. It will probably be executed asynchronously. It can be canceled using the progress monitor.- Parameters:
project
- Target project, notnull
checkIds
- The set of target check identifeirs. If empty set is applied - all applicable checks will be scheduled, notnull
topObjectIds
- Identifiers of checked objects, all available objects if left empty, notnull
progressMonitor
- progress monitor, notnull
-
permitDeactivatedCheckRequest
Permits next request to check for a specific object even if massive checks are deactivated for a specified project. This method allows active editors to perform limited number of checks independenly of the mode- Parameters:
objectId
- Target object identifier. Accepts both resource URI's and BM object idsproject
- Target project, notnull
-
isDeactivatedCheckPermitted
States if there is an explicit permission was given earlier to perform checks for a provided object. The permission is retracted after a check so it is a single-time permission effectively- Parameters:
objectId
- The object to check permission for. Cannot benull
. Must be compliant withICheckScheduler#permitDeactivatedCheckRequest(IProject, Object)
requirementsproject
- Target project, notnull
- Returns:
- True if a permission was given earlier
-