Interface IProjectCheckSettingsProfileStore
- All Known Implementing Classes:
JSONCheckSettingsProfileStore
public interface IProjectCheckSettingsProfileStore
The store that stores project's check settinfs profiles as well as corresponding project settings
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteProfile
(String profileName) Deletes the given profile from the store.void
duplicateProfile
(String sourceProfileName, String destinationProfileName) Duplicates given profile and names it accordinglyvoid
exportSettingsProfile
(String profileName, Path destinationPath) Exports an existing settings profile into the selected destination file The operation quietly replaces the existing file in the destination folder if any.Gets the name of the active profile.Gets the names of existing profilesvoid
importSettingsProfile
(Path sourcePath) Imports an external settings profile into the project's set of profiles.boolean
Checks if the massive automatic check pre-computation process is disabledLoads the data from the store (if exists)void
renameProfile
(String currentProfileName, String newProfileName) Renames the settings profile using the provided name.void
save
(Map<CheckUid, ProfileCheckSettingsData> settingsData, String profileName) Saves the given data to the given profilevoid
setActiveProfile
(String profileName, boolean isDefaultProfile) Sets active profile and stores in the corresponding preferencesvoid
setMassiveCheckProcessDisabled
(boolean massiveCheckProcessDisabled) Sets/resets massive check mode
-
Method Details
-
deleteProfile
Deletes the given profile from the store. Ignores non-existing profile names quietly- Parameters:
profileName
- The name of the profile to delete. May not benull
-
duplicateProfile
Duplicates given profile and names it accordingly- Parameters:
sourceProfileName
- The source profile name. May not benull
destinationProfileName
- The destination profile name. May not benull
. Must be unqique among currently registered profiles
-
exportSettingsProfile
Exports an existing settings profile into the selected destination file The operation quietly replaces the existing file in the destination folder if any.- Parameters:
profileName
- The name of the profile. May not benull
destinationPath
- The destination path to write the profile into. It'a full file path, not a folder. May not benull
-
getActiveProfileName
String getActiveProfileName()Gets the name of the active profile.- Returns:
- The name of the active profile. May be
null
in case if the active profile still not set/data is cleared
-
getExistingProfileNames
Gets the names of existing profiles- Returns:
- The list of existing profile names. Never
null
-
importSettingsProfile
Imports an external settings profile into the project's set of profiles. The operation quietly replaces the existing file if any.- Parameters:
sourcePath
- The path to the profile. May not benull
-
load
Loads the data from the store (if exists)- Parameters:
profileName
- The name of the profile. May not benull
- Returns:
- The profile's data. Never
null
-
renameProfile
Renames the settings profile using the provided name.- Parameters:
currentProfileName
- Current name of the profile. May not benull
newName
- The new name of the profile. May not benull
-
save
Saves the given data to the given profile- Parameters:
settingsData
- The data to save. May not benull
profileName
- The name of the profile. May not benull
-
setActiveProfile
Sets active profile and stores in the corresponding preferences- Parameters:
profileName
- The name of the profile. May not benull
isDefaultProfile
- The default profile set, with preferences clearance
-
isMassiveCheckProcessDisabled
boolean isMassiveCheckProcessDisabled()Checks if the massive automatic check pre-computation process is disabled- Returns:
- True if the process is disabled
-
setMassiveCheckProcessDisabled
void setMassiveCheckProcessDisabled(boolean massiveCheckProcessDisabled) Sets/resets massive check mode- Parameters:
massiveCheckProcessDisabled
- The mode to set
-