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 givenCheckUidin 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 UIDvoidinit(Collection<ICheckProvider.CheckInfo> registeredChecks, IDtProject dtProject, boolean cleanStart) Initializes the manager with the state.voidPersists current check metadata to the persistent storevoidPerforms 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 benullbmModelManager- TheIBmModelManagerservice reference. May not benullcheckScheduler- TheICheckSchedulerservice reference. May not benull
-
-
Method Details
-
getCheck
Description copied from interface:IProjectCheckMetadataManagerGet the check using its unique identifier- Specified by:
getCheckin interfaceIProjectCheckMetadataManager- Parameters:
checkId- The identifier of the check. May not benull- Returns:
- The check, if present. May be
null
-
getChecksForCheckId
Description copied from interface:IProjectCheckMetadataManagerGets 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:
getChecksForCheckIdin 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:IProjectCheckMetadataManagerGets the short UID for the givenCheckUidin the context of the corresponding project- Specified by:
getShortUidin interfaceIProjectCheckMetadataManager- Parameters:
checkUid- The target check UID. May not benull- Returns:
- The short UID of the check. May be
nullif the given CheckUID isn't registered
-
getUidForCheckId
Description copied from interface:IProjectCheckMetadataManagerGets 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:
getUidForCheckIdin 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:IProjectCheckMetadataManagerGets the check unique identifier for the given short UID- Specified by:
getUidForShortUidin interfaceIProjectCheckMetadataManager- Parameters:
shortUid- The short UID of the check, project-specific- Returns:
- The unique identifier of the check. May be
nullif 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 benulldtProject- The corresponding project. May not benullcleanStart- 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:IProjectCheckMetadataManagerPersists current check metadata to the persistent store- Specified by:
persistDatain interfaceIProjectCheckMetadataManager
-
scheduleChangedCheckRecomputationIfNecessary
public void scheduleChangedCheckRecomputationIfNecessary()Performs the scheduling of checking.re-checking for all changed/new checks
-