Package io.jmix.flowuidata.settings
Class UserSettingsServiceImpl
java.lang.Object
io.jmix.flowuidata.settings.UserSettingsServiceImpl
- All Implemented Interfaces:
UserSettingsService
@Component("flowui_UserSettingsServiceImpl")
public class UserSettingsServiceImpl
extends Object
implements UserSettingsService
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected CurrentAuthentication
protected EntityEventManager
protected jakarta.persistence.EntityManager
protected Metadata
protected org.springframework.transaction.support.TransactionTemplate
-
Constructor Summary
ConstructorDescriptionUserSettingsServiceImpl
(CurrentAuthentication authentication, Metadata metadata, AccessManager accessManager, EntityEventManager entityEventManager, org.springframework.transaction.PlatformTransactionManager transactionManager) -
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
-
entityEventManager
-
entityManager
protected jakarta.persistence.EntityManager entityManager -
transaction
protected org.springframework.transaction.support.TransactionTemplate transaction
-
-
Constructor Details
-
UserSettingsServiceImpl
public UserSettingsServiceImpl(CurrentAuthentication authentication, Metadata metadata, AccessManager accessManager, EntityEventManager entityEventManager, org.springframework.transaction.PlatformTransactionManager transactionManager)
-
-
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()
-