Class ProjectCheckMetadataManager
java.lang.Object
com.e1c.g5.v8.dt.internal.check.repository.ProjectCheckMetadataManager
- All Implemented Interfaces:
IProjectCheckMetadataManager
public final class ProjectCheckMetadataManager
extends Object
implements IProjectCheckMetadataManager
IProjectCheckMetadataManager
implementation.-
Constructor Summary
ConstructorsConstructorDescriptionProjectCheckMetadataManager
(IDtProject dtProject, IBmModelManager bmModelManager, ICheckScheduler checkScheduler) Constructs an instance of the manager -
Method Summary
Modifier and TypeMethodDescriptionGet the check using its unique identifiergetChecksForCheckId
(String checkId) Gets the check using its natural identifier.getShortUid
(CheckUid checkUid) Gets the short UID for the givenCheckUid
in the context of the corresponding projectgetUidForCheckId
(String checkId) Gets the set of check unique identifiers for the given natural check identifier.getUidForShortUid
(String shortUid) Gets the check unique identifier for the given short UIDvoid
init
(Collection<ICheckProvider.CheckInfo> registeredChecks, IDtProject dtProject, boolean cleanStart) Initializes the manager with the state.void
Persists current check metadata to the persistent storevoid
Performs the scheduling of checking.re-checking for all changed/new checks
-
Constructor Details
-
ProjectCheckMetadataManager
public ProjectCheckMetadataManager(IDtProject dtProject, IBmModelManager bmModelManager, ICheckScheduler checkScheduler) Constructs an instance of the manager- Parameters:
dtProject
- The corresponding project. May not benull
bmModelManager
- TheIBmModelManager
service reference. May not benull
checkScheduler
- TheICheckScheduler
service reference. May not benull
-
-
Method Details
-
getCheck
Description copied from interface:IProjectCheckMetadataManager
Get the check using its unique identifier- Specified by:
getCheck
in interfaceIProjectCheckMetadataManager
- Parameters:
checkId
- The identifier of the check. May not benull
- Returns:
- The check, if present. May be
null
-
getChecksForCheckId
Description copied from interface:IProjectCheckMetadataManager
Gets the check using its natural identifier. In case if several bundles supply checks with the same identifier, this method could return more than one check- Specified by:
getChecksForCheckId
in interfaceIProjectCheckMetadataManager
- Parameters:
checkId
- The identifier of the check. May benull
, in which case checks for all registered check IDs are returned.- Returns:
- Checks mapped to their unique identifiers. May not be
null
-
getShortUid
Description copied from interface:IProjectCheckMetadataManager
Gets the short UID for the givenCheckUid
in the context of the corresponding project- Specified by:
getShortUid
in interfaceIProjectCheckMetadataManager
- Parameters:
checkUid
- The target check UID. May not benull
- Returns:
- The short UID of the check. May be
null
if the given CheckUID isn't registered
-
getUidForCheckId
Description copied from interface:IProjectCheckMetadataManager
Gets the set of check unique identifiers for the given natural check identifier. In case if several bundles supply checks with the same identifier, this method could return more than one check unique identifier- Specified by:
getUidForCheckId
in interfaceIProjectCheckMetadataManager
- Parameters:
checkId
- The identifier of the check. May benull
, in which case all registered check IDs are returned.- Returns:
- The set of unique idenfiers matching the given check identifier. May not be
null
-
getUidForShortUid
Description copied from interface:IProjectCheckMetadataManager
Gets the check unique identifier for the given short UID- Specified by:
getUidForShortUid
in interfaceIProjectCheckMetadataManager
- Parameters:
shortUid
- The short UID of the check, project-specific- Returns:
- The unique identifier of the check. May be
null
if the given string isn' a short UID or non-supported marker is found
-
init
public void init(Collection<ICheckProvider.CheckInfo> registeredChecks, IDtProject dtProject, boolean cleanStart) Initializes the manager with the state. Schedules changed checks for the revalidation- Parameters:
registeredChecks
- The actual set of the checks being registered in the system at the moment. May not benull
dtProject
- The corresponding project. May not benull
cleanStart
- The flag that states that we need to re-set all previously stored check info and do the revalidation task schedules
-
persistData
public void persistData()Description copied from interface:IProjectCheckMetadataManager
Persists current check metadata to the persistent store- Specified by:
persistData
in interfaceIProjectCheckMetadataManager
-
scheduleChangedCheckRecomputationIfNecessary
public void scheduleChangedCheckRecomputationIfNecessary()Performs the scheduling of checking.re-checking for all changed/new checks
-