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 TypeMethodDescriptionvoiddeleteProfile(String profileName) Deletes the given profile from the store.voidduplicateProfile(String sourceProfileName, String destinationProfileName) Duplicates given profile and names it accordinglyvoidexportSettingsProfile(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 profilesvoidimportSettingsProfile(Path sourcePath) Imports an external settings profile into the project's set of profiles.booleanChecks if the massive automatic check pre-computation process is disabledLoads the data from the store (if exists)voidrenameProfile(String currentProfileName, String newProfileName) Renames the settings profile using the provided name.voidsave(Map<CheckUid, ProfileCheckSettingsData> settingsData, String profileName) Saves the given data to the given profilevoidsetActiveProfile(String profileName, boolean isDefaultProfile) Sets active profile and stores in the corresponding preferencesvoidsetMassiveCheckProcessDisabled(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 benulldestinationProfileName- 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 benulldestinationPath- 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
nullin 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 benullnewName- 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 benullprofileName- 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 benullisDefaultProfile- 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
-