Package io.jmix.uidata
Class UserSettingServiceImpl
java.lang.Object
io.jmix.uidata.UserSettingServiceImpl
- All Implemented Interfaces:
UserSettingService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessManagerprotected CurrentAuthenticationprotected Dom4jToolsprotected EntityEventManagerprotected javax.persistence.EntityManagerprotected Metadataprotected org.springframework.transaction.support.TransactionTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<UUID,UiTablePresentation> copyPresentations(org.springframework.security.core.userdetails.UserDetails fromUser, org.springframework.security.core.userdetails.UserDetails toUser) voidcopySettings(org.springframework.security.core.userdetails.UserDetails fromUser, org.springframework.security.core.userdetails.UserDetails toUser) Copy user settings to another uservoiddeleteScreenSettings(Set<String> screens) Delete settings of screens (settings of tables, filters etc) for the current user.voiddeleteSettings(String name) Delete settings for the current userprotected UiSettingfindUserSettings(String name) loadSetting(String name) Load settings for the current user and null client type.voidsaveSetting(String name, String value) Save settings for the current user and null client typeprotected voidsetTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
-
Field Details
-
authentication
-
metadata
-
dom4JTools
-
accessManager
-
entityEventManager
-
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:UserSettingServiceLoad settings for the current user and null client type. Returns null if no such setting found.- Specified by:
loadSettingin interfaceUserSettingService
-
saveSetting
Description copied from interface:UserSettingServiceSave settings for the current user and null client type- Specified by:
saveSettingin interfaceUserSettingService
-
deleteSettings
Description copied from interface:UserSettingServiceDelete settings for the current user- Specified by:
deleteSettingsin interfaceUserSettingService
-
copySettings
public void copySettings(org.springframework.security.core.userdetails.UserDetails fromUser, org.springframework.security.core.userdetails.UserDetails toUser) Description copied from interface:UserSettingServiceCopy user settings to another user- Specified by:
copySettingsin interfaceUserSettingService
-
deleteScreenSettings
Description copied from interface:UserSettingServiceDelete settings of screens (settings of tables, filters etc) for the current user.- Specified by:
deleteScreenSettingsin 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)
-