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
FieldsModifier and TypeFieldDescriptionprotected AccessManagerprotected CurrentAuthenticationprotected EntityEventManagerprotected jakarta.persistence.EntityManagerprotected Metadataprotected org.springframework.transaction.support.TransactionTemplate -
Constructor Summary
ConstructorsConstructorDescriptionUserSettingsServiceImpl(CurrentAuthentication authentication, Metadata metadata, AccessManager accessManager, EntityEventManager entityEventManager, org.springframework.transaction.PlatformTransactionManager transactionManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidCopies all settings to another user.voidDeletes setting by key for the current user.protected UserSettingsItemfindUserSettings(String key) Loads setting for the current user.voidSaves 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:UserSettingsServiceLoads setting for the current user.- Specified by:
loadin interfaceUserSettingsService- Parameters:
key- the setting identifier- Returns:
- loaded setting value
-
save
Description copied from interface:UserSettingsServiceSaves value for the current user.- Specified by:
savein interfaceUserSettingsService- Parameters:
key- setting identifiervalue- setting value
-
delete
Description copied from interface:UserSettingsServiceDeletes setting by key for the current user.- Specified by:
deletein interfaceUserSettingsService
-
copy
Description copied from interface:UserSettingsServiceCopies all settings to another user.- Specified by:
copyin interfaceUserSettingsService
-
findUserSettings
-