Class WebserviceConfig
-
- All Implemented Interfaces:
public final class WebserviceConfigSettings-group for the web-service side of ServerPackCreator: the MongoDB database-URI with legacy-value migration and scheme-normalization, plus the cron-schedules of the webservice's cleanup- and refresh-jobs. Extracted from ApiProperties (refactor Phase 1b); ApiProperties remains the facade through which consumers access these values.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringFALLBACK_DATABASE_URIpublic final static StringDATABASE_URI_KEYpublic final static StringLEGACY_DATABASE_URI_KEYpublic final static StringCLEANUP_SCHEDULE_KEYpublic final static StringVERSION_SCHEDULE_KEYpublic final static StringDATABASE_CLEANUP_SCHEDULE_KEYprivate final StringfallbackCleanupScheduleprivate final StringfallbackVersionScheduleprivate final StringfallbackDatabaseCleanupScheduleprivate StringdatabaseUriprivate final BooleanhasLegacyDatabaseUriprivate StringcleanupScheduleprivate StringversionScheduleprivate StringdatabaseCleanupSchedule
-
Constructor Summary
Constructors Constructor Description WebserviceConfig(PropertyStore store)
-
Method Summary
Modifier and Type Method Description final StringgetFallbackCleanupSchedule()Fallback cron-schedule for the webservice's cleanup-job. final StringgetFallbackVersionSchedule()Fallback cron-schedule for the webservice's version-refresh-job. final StringgetFallbackDatabaseCleanupSchedule()Fallback cron-schedule for the webservice's file-cleanup-job. final StringgetDatabaseUri()URI of the MongoDB-database used by the webservice. final UnitsetDatabaseUri(String value)URI of the MongoDB-database used by the webservice. final BooleangetHasLegacyDatabaseUri()Whether a database-URI is still stored under the retired LEGACY_DATABASE_URI_KEY. final StringgetCleanupSchedule()Cron-schedule of the webservice's cleanup-job, stored under CLEANUP_SCHEDULE_KEY. final UnitsetCleanupSchedule(String value)Cron-schedule of the webservice's cleanup-job, stored under CLEANUP_SCHEDULE_KEY. final StringgetVersionSchedule()Cron-schedule of the webservice's version-refresh-job, stored under VERSION_SCHEDULE_KEY. final UnitsetVersionSchedule(String value)Cron-schedule of the webservice's version-refresh-job, stored under VERSION_SCHEDULE_KEY. final StringgetDatabaseCleanupSchedule()Cron-schedule of the webservice's file-cleanup-job, stored under DATABASE_CLEANUP_SCHEDULE_KEY. final UnitsetDatabaseCleanupSchedule(String value)Cron-schedule of the webservice's file-cleanup-job, stored under DATABASE_CLEANUP_SCHEDULE_KEY. final StringdefaultDatabase()The default database-URI, for resetting the configuration to factory-state. -
-
Constructor Detail
-
WebserviceConfig
WebserviceConfig(PropertyStore store)
-
-
Method Detail
-
getFallbackCleanupSchedule
final String getFallbackCleanupSchedule()
Fallback cron-schedule for the webservice's cleanup-job.
-
getFallbackVersionSchedule
final String getFallbackVersionSchedule()
Fallback cron-schedule for the webservice's version-refresh-job.
-
getFallbackDatabaseCleanupSchedule
final String getFallbackDatabaseCleanupSchedule()
Fallback cron-schedule for the webservice's file-cleanup-job.
-
getDatabaseUri
final String getDatabaseUri()
URI of the MongoDB-database used by the webservice. Reading migrates legacy SQLite- or PostgreSQL-URIs to FALLBACK_DATABASE_URI; writing prefixes the mongodb://-scheme when missing.
-
setDatabaseUri
final Unit setDatabaseUri(String value)
URI of the MongoDB-database used by the webservice. Reading migrates legacy SQLite- or PostgreSQL-URIs to FALLBACK_DATABASE_URI; writing prefixes the mongodb://-scheme when missing.
-
getHasLegacyDatabaseUri
final Boolean getHasLegacyDatabaseUri()
Whether a database-URI is still stored under the retired LEGACY_DATABASE_URI_KEY.
True only for an installation configured before the Spring Boot 4 rename — a fresh one writes DATABASE_URI_KEY. Exists so the 9.0.0 migration can report the rename to exactly the operators it affects instead of to everyone. Read-only: unlike databaseUri this touches nothing.
-
getCleanupSchedule
final String getCleanupSchedule()
Cron-schedule of the webservice's cleanup-job, stored under CLEANUP_SCHEDULE_KEY.
-
setCleanupSchedule
final Unit setCleanupSchedule(String value)
Cron-schedule of the webservice's cleanup-job, stored under CLEANUP_SCHEDULE_KEY.
-
getVersionSchedule
final String getVersionSchedule()
Cron-schedule of the webservice's version-refresh-job, stored under VERSION_SCHEDULE_KEY.
-
setVersionSchedule
final Unit setVersionSchedule(String value)
Cron-schedule of the webservice's version-refresh-job, stored under VERSION_SCHEDULE_KEY.
-
getDatabaseCleanupSchedule
final String getDatabaseCleanupSchedule()
Cron-schedule of the webservice's file-cleanup-job, stored under DATABASE_CLEANUP_SCHEDULE_KEY.
-
setDatabaseCleanupSchedule
final Unit setDatabaseCleanupSchedule(String value)
Cron-schedule of the webservice's file-cleanup-job, stored under DATABASE_CLEANUP_SCHEDULE_KEY.
-
defaultDatabase
final String defaultDatabase()
The default database-URI, for resetting the configuration to factory-state.
-
-
-
-