Class PreferencesServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.PreferencesService
    Direct Known Subclasses:
    PreferencesServiceImpl

    public abstract class PreferencesServiceBase
    extends Object
    implements com.soffid.iam.service.PreferencesService

    Spring Service base class for com.soffid.iam.service.PreferencesService, provides access to all services and entities referenced by this service.

    see com.soffid.iam.service.PreferencesService
    • Constructor Detail

      • PreferencesServiceBase

        public PreferencesServiceBase()
    • Method Detail

      • setUserPreferenceEntityDao

        public void setUserPreferenceEntityDao​(UserPreferenceEntityDao userPreferenceEntityDao)
        Sets reference to userPreferenceEntityDao.
      • getUserPreferenceEntityDao

        public UserPreferenceEntityDao getUserPreferenceEntityDao()
        Gets reference to userPreferenceEntityDao.
      • setUserEntityDao

        public void setUserEntityDao​(UserEntityDao usuariEntityDao)
        Sets reference to usuariEntityDao.
      • getUserEntityDao

        public UserEntityDao getUserEntityDao()
        Gets reference to usuariEntityDao.
      • setUserService

        public void setUserService​(com.soffid.iam.service.UserService usuariService)
        Sets reference to usuariService.
      • getUserService

        public com.soffid.iam.service.UserService getUserService()
        Gets reference to usuariService.
      • findMyPreference

        @Transactional(rollbackFor=java.lang.Exception.class)
        public String findMyPreference​(String name)
                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findMyPreference in interface com.soffid.iam.service.PreferencesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserPreferences

        @Transactional(rollbackFor=java.lang.Exception.class)
        public Map<String,​String> findUserPreferences​(String user)
                                                     throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserPreferences in interface com.soffid.iam.service.PreferencesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • setUserPreferences

        @Transactional(rollbackFor=java.lang.Exception.class)
        public Map<String,​String> setUserPreferences​(String user,
                                                           Map<String,​String> preferences)
                                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        setUserPreferences in interface com.soffid.iam.service.PreferencesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • setUserPreference

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void setUserPreference​(String user,
                                      String preference,
                                      String value)
                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        setUserPreference in interface com.soffid.iam.service.PreferencesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updateMyPreference

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void updateMyPreference​(String name,
                                       String value)
                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateMyPreference in interface com.soffid.iam.service.PreferencesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPrincipal

        protected Principal getPrincipal()
        Gets the current principal if one has been set, otherwise returns null.
        Returns:
        the current principal