Class AppSettingsService

java.lang.Object
systems.dennis.shared.utils.ApplicationContext
systems.dennis.shared.service.AbstractPaginationService<DB_TYPE,Long>
systems.dennis.shared.postgres.service.PaginationService<AppSettingsModel>
systems.dennis.shared.scopes.service.AppSettingsService
All Implemented Interfaces:
systems.dennis.shared.beans.AppSettingsResolver, systems.dennis.shared.service.AbstractService<AppSettingsModel,Long>, systems.dennis.shared.service.DeleteObject<AppSettingsModel,Long>

@Service @Primary public class AppSettingsService extends systems.dennis.shared.postgres.service.PaginationService<AppSettingsModel> implements systems.dennis.shared.beans.AppSettingsResolver
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Map<String,String>
     
    static final String
     

    Fields inherited from class systems.dennis.shared.utils.ApplicationContext

    CREATED_FIELDS_MAP
  • Constructor Summary

    Constructors
    Constructor
    Description
    AppSettingsService(systems.dennis.shared.config.WebContext holder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
     
    <T> T
     
    <T> T
    getEnv(String key, Object def)
     
     
    <T> T
    getSetting(String settingKey)
     
    boolean
    hasSetting(String setting)
     
    void
     

    Methods inherited from class systems.dennis.shared.postgres.service.PaginationService

    updateId, updateIds

    Methods inherited from class systems.dennis.shared.service.AbstractPaginationService

    deleteItems, edit, editField, exists, find, find, getAdditionalCases, getLogger, getRepository, getUtils, isIdSet, preFetchOriginal, save

    Methods inherited from class systems.dennis.shared.utils.ApplicationContext

    canEqual, equals, getBean, getContext, getCurrentUser, getDefaultLogger, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface systems.dennis.shared.service.AbstractService

    checkMy, count, count, createFromRequest, delete, download, exists, find, find, findById, findById, findById, findByIdClone, findByIdOrThrow, getAdditionalSpecification, getByIdAndUserDataId, getContext, getFieldOrder, getFilterImpl, getForm, getInterNalResource, getItemFavoriteType, getModel, getSearchRequestAbstractDataFilter, getSelfCreatedItems, getSelfCreatedItems, getSelfCreatedItemsQuery, getSelfCreatedItemsQuery, isEmpty, isEmpty, isIdSet, isObjectDeleted, isPublicSearchEnabled, modifyQuery, preAdd, preDelete, preEdit, prepareAbstractDataFilter, preSearch, saveVersionIfRequired, search, search

    Methods inherited from interface systems.dennis.shared.service.DeleteObject

    delete, getDeleteField, getDeleteStrategy, getNotDeletedQuery, getSelfOnly, getStoreHistoryRequired, saveDeleteHistoryIfRequired
  • Field Details

  • Constructor Details

    • AppSettingsService

      public AppSettingsService(systems.dennis.shared.config.WebContext holder)
  • Method Details

    • getSetting

      public <T> T getSetting(String settingKey) throws systems.dennis.shared.exceptions.SettingKeyNotFoundException, systems.dennis.shared.exceptions.SettingValueTypeNotFoundException
      Throws:
      systems.dennis.shared.exceptions.SettingKeyNotFoundException
      systems.dennis.shared.exceptions.SettingValueTypeNotFoundException
    • saveApplicationSettingsIntoDB

      public void saveApplicationSettingsIntoDB()
    • getEnvProperties

      public List<String> getEnvProperties()
    • afterEdit

      public void afterEdit(AppSettingsModel object, AppSettingsModel original)
      Overrides:
      afterEdit in class systems.dennis.shared.service.AbstractPaginationService<AppSettingsModel,Long>
    • afterAdd

      public AppSettingsModel afterAdd(AppSettingsModel object)
      Specified by:
      afterAdd in interface systems.dennis.shared.service.AbstractService<AppSettingsModel,Long>
    • afterDelete

      public AppSettingsModel afterDelete(AppSettingsModel object)
      Specified by:
      afterDelete in interface systems.dennis.shared.service.AbstractService<AppSettingsModel,Long>
    • hasSetting

      public boolean hasSetting(String setting)
      Specified by:
      hasSetting in interface systems.dennis.shared.beans.AppSettingsResolver
    • getEnv

      public <T> T getEnv(String key)
      Specified by:
      getEnv in interface systems.dennis.shared.beans.AppSettingsResolver
    • getEnv

      public <T> T getEnv(String key, Object def)
      Specified by:
      getEnv in interface systems.dennis.shared.beans.AppSettingsResolver