Class UserSettingServiceImpl

java.lang.Object
io.jmix.uidata.UserSettingServiceImpl
All Implemented Interfaces:
UserSettingService

public class UserSettingServiceImpl extends Object implements UserSettingService
  • Field Details

    • authentication

      @Autowired protected CurrentAuthentication authentication
    • metadata

      @Autowired protected Metadata metadata
    • dom4JTools

      @Autowired protected Dom4jTools dom4JTools
    • accessManager

      @Autowired protected AccessManager 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

      public String loadSetting(String name)
      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 interface UserSettingService
    • saveSetting

      public void saveSetting(String name, @Nullable String value)
      Description copied from interface: UserSettingService
      Save settings for the current user and null client type
      Specified by:
      saveSetting in interface UserSettingService
    • deleteSettings

      public void deleteSettings(String name)
      Description copied from interface: UserSettingService
      Delete settings for the current user
      Specified by:
      deleteSettings in interface UserSettingService
    • 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 interface UserSettingService
    • deleteScreenSettings

      public void deleteScreenSettings(Set<String> screens)
      Description copied from interface: UserSettingService
      Delete settings of screens (settings of tables, filters etc) for the current user.
      Specified by:
      deleteScreenSettings in interface UserSettingService
      Parameters:
      screens - set of window ids, whose settings must be deleted
    • findUserSettings

      @Nullable protected UiSetting findUserSettings(String name)
    • copyPresentations

      protected Map<UUID,UiTablePresentation> copyPresentations(org.springframework.security.core.userdetails.UserDetails fromUser, org.springframework.security.core.userdetails.UserDetails toUser)