Package org.openmetadata.service.jdbi3
Class SystemRepository
- java.lang.Object
-
- org.openmetadata.service.jdbi3.SystemRepository
-
public class SystemRepository extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringINTERNAL_SERVER_ERROR_WITH_REASON
-
Constructor Summary
Constructors Constructor Description SystemRepository(CollectionDAO.SystemDAO dao)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateNewSetting(Settings setting)javax.ws.rs.core.ResponsecreateOrUpdate(Settings setting)static SmtpSettingsdecryptEmailSetting(SmtpSettings encryptedSetting)static SlackAppConfigurationdecryptSlackAppSetting(String encryptedSetting)javax.ws.rs.core.ResponsedeleteSettings(SettingsType type)static SmtpSettingsencryptEmailSetting(SmtpSettings decryptedSetting)static StringencryptSlackAppSetting(SlackAppConfiguration decryptedSetting)EntitiesCountgetAllEntitiesCount(ListFilter filter)ServicesCountgetAllServicesCount(ListFilter filter)SettingsgetConfigWithKey(String key)SettingsgetEmailConfigInternal()SettingsgetSlackApplicationConfigInternal()ResultList<Settings>listAllConfigs()javax.ws.rs.core.ResponsepatchSetting(String settingName, javax.json.JsonPatch patch)voidupdateSetting(Settings setting)
-
-
-
Field Detail
-
INTERNAL_SERVER_ERROR_WITH_REASON
public static final String INTERNAL_SERVER_ERROR_WITH_REASON
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SystemRepository
public SystemRepository(CollectionDAO.SystemDAO dao)
-
-
Method Detail
-
getAllEntitiesCount
public EntitiesCount getAllEntitiesCount(ListFilter filter)
-
getAllServicesCount
public ServicesCount getAllServicesCount(ListFilter filter)
-
listAllConfigs
public ResultList<Settings> listAllConfigs()
-
getEmailConfigInternal
public Settings getEmailConfigInternal()
-
getSlackApplicationConfigInternal
public Settings getSlackApplicationConfigInternal()
-
createOrUpdate
public javax.ws.rs.core.Response createOrUpdate(Settings setting)
-
createNewSetting
public javax.ws.rs.core.Response createNewSetting(Settings setting)
-
deleteSettings
public javax.ws.rs.core.Response deleteSettings(SettingsType type)
-
patchSetting
public javax.ws.rs.core.Response patchSetting(String settingName, javax.json.JsonPatch patch)
-
updateSetting
public void updateSetting(Settings setting)
-
encryptEmailSetting
public static SmtpSettings encryptEmailSetting(SmtpSettings decryptedSetting)
-
decryptEmailSetting
public static SmtpSettings decryptEmailSetting(SmtpSettings encryptedSetting)
-
encryptSlackAppSetting
public static String encryptSlackAppSetting(SlackAppConfiguration decryptedSetting)
-
decryptSlackAppSetting
public static SlackAppConfiguration decryptSlackAppSetting(String encryptedSetting)
-
-