Package io.jmix.flowuirestds.settings
Class UserSettingsServiceImpl
java.lang.Object
io.jmix.flowuirestds.settings.UserSettingsServiceImpl
- All Implemented Interfaces:
UserSettingsService
@Component("flowui_UserSettingsServiceImpl")
public class UserSettingsServiceImpl
extends Object
implements UserSettingsService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessManager
protected CurrentAuthentication
protected DataManager
protected Metadata
-
Constructor Summary
ConstructorsConstructorDescriptionUserSettingsServiceImpl
(CurrentAuthentication authentication, Metadata metadata, AccessManager accessManager, DataManager dataManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Copies all settings to another user.void
Deletes setting by key for the current user.protected UserSettingsItem
findUserSettings
(String key) Loads setting for the current user.protected boolean
void
Saves value for the current user.
-
Field Details
-
authentication
-
metadata
-
accessManager
-
dataManager
-
-
Constructor Details
-
UserSettingsServiceImpl
public UserSettingsServiceImpl(CurrentAuthentication authentication, Metadata metadata, AccessManager accessManager, DataManager dataManager)
-
-
Method Details
-
load
Description copied from interface:UserSettingsService
Loads setting for the current user.- Specified by:
load
in interfaceUserSettingsService
- Parameters:
key
- the setting identifier- Returns:
- loaded setting value
-
save
Description copied from interface:UserSettingsService
Saves value for the current user.- Specified by:
save
in interfaceUserSettingsService
- Parameters:
key
- setting identifiervalue
- setting value
-
delete
Description copied from interface:UserSettingsService
Deletes setting by key for the current user.- Specified by:
delete
in interfaceUserSettingsService
-
copy
Description copied from interface:UserSettingsService
Copies all settings to another user.- Specified by:
copy
in interfaceUserSettingsService
-
findUserSettings
-
notAuthenticated
protected boolean notAuthenticated()
-