Package io.jmix.uidata
Class UserSettingServiceImpl
java.lang.Object
io.jmix.uidata.UserSettingServiceImpl
- All Implemented Interfaces:
UserSettingService
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessManager
protected CurrentAuthentication
protected Dom4jTools
protected javax.persistence.EntityManager
protected Metadata
protected org.springframework.transaction.support.TransactionTemplate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Map<UUID,
UiTablePresentation> copyPresentations
(org.springframework.security.core.userdetails.UserDetails fromUser, org.springframework.security.core.userdetails.UserDetails toUser) void
copySettings
(org.springframework.security.core.userdetails.UserDetails fromUser, org.springframework.security.core.userdetails.UserDetails toUser) Copy user settings to another uservoid
deleteScreenSettings
(Set<String> screens) Delete settings of screens (settings of tables, filters etc) for the current user.void
deleteSettings
(String name) Delete settings for the current userprotected UiSetting
findUserSettings
(String name) loadSetting
(String name) Load settings for the current user and null client type.void
saveSetting
(String name, String value) Save settings for the current user and null client typeprotected void
setTransactionManager
(org.springframework.transaction.PlatformTransactionManager transactionManager)
-
Field Details
-
authentication
-
metadata
-
dom4JTools
-
accessManager
-
entityManager
protected javax.persistence.EntityManager entityManager -
transaction
protected org.springframework.transaction.support.TransactionTemplate transaction
-
-
Constructor Details
-
UserSettingServiceImpl
public UserSettingServiceImpl()
-
-
Method Details
-
setTransactionManager
@Autowired protected void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) -
loadSetting
Description copied from interface:UserSettingService
Load settings for the current user and null client type. Returns null if no such setting found.- Specified by:
loadSetting
in interfaceUserSettingService
-
saveSetting
Description copied from interface:UserSettingService
Save settings for the current user and null client type- Specified by:
saveSetting
in interfaceUserSettingService
-
deleteSettings
Description copied from interface:UserSettingService
Delete settings for the current user- Specified by:
deleteSettings
in interfaceUserSettingService
-
copySettings
public void copySettings(org.springframework.security.core.userdetails.UserDetails fromUser, org.springframework.security.core.userdetails.UserDetails toUser) Description copied from interface:UserSettingService
Copy user settings to another user- Specified by:
copySettings
in interfaceUserSettingService
-
deleteScreenSettings
Description copied from interface:UserSettingService
Delete settings of screens (settings of tables, filters etc) for the current user.- Specified by:
deleteScreenSettings
in interfaceUserSettingService
- Parameters:
screens
- set of window ids, whose settings must be deleted
-
findUserSettings
-
copyPresentations
protected Map<UUID,UiTablePresentation> copyPresentations(org.springframework.security.core.userdetails.UserDetails fromUser, org.springframework.security.core.userdetails.UserDetails toUser)
-