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
  • Constructor Details

    • ProjectCheckMetadataManager

      public ProjectCheckMetadataManager(IDtProject dtProject, IBmModelManager bmModelManager, ICheckScheduler checkScheduler)
      Constructs an instance of the manager
      Parameters:
      dtProject - The corresponding project. May not be null
      bmModelManager - The IBmModelManager service reference. May not be null
      checkScheduler - The ICheckScheduler service reference. May not be null
  • Method Details

    • getCheck

      public ICheck getCheck(CheckUid checkId)
      Description copied from interface: IProjectCheckMetadataManager
      Get the check using its unique identifier
      Specified by:
      getCheck in interface IProjectCheckMetadataManager
      Parameters:
      checkId - The identifier of the check. May not be null
      Returns:
      The check, if present. May be null
    • getChecksForCheckId

      public Map<CheckUid,ICheck> getChecksForCheckId(String checkId)
      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 interface IProjectCheckMetadataManager
      Parameters:
      checkId - The identifier of the check. May be null, in which case checks for all registered check IDs are returned.
      Returns:
      Checks mapped to their unique identifiers. May not be null
    • getShortUid

      public String getShortUid(CheckUid checkUid)
      Description copied from interface: IProjectCheckMetadataManager
      Gets the short UID for the given CheckUid in the context of the corresponding project
      Specified by:
      getShortUid in interface IProjectCheckMetadataManager
      Parameters:
      checkUid - The target check UID. May not be null
      Returns:
      The short UID of the check. May be null if the given CheckUID isn't registered
    • getUidForCheckId

      public Set<CheckUid> getUidForCheckId(String checkId)
      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 interface IProjectCheckMetadataManager
      Parameters:
      checkId - The identifier of the check. May be null, 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

      public CheckUid getUidForShortUid(String shortUid)
      Description copied from interface: IProjectCheckMetadataManager
      Gets the check unique identifier for the given short UID
      Specified by:
      getUidForShortUid in interface IProjectCheckMetadataManager
      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 be null
      dtProject - The corresponding project. May not be null
      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 interface IProjectCheckMetadataManager
    • scheduleChangedCheckRecomputationIfNecessary

      public void scheduleChangedCheckRecomputationIfNecessary()
      Performs the scheduling of checking.re-checking for all changed/new checks