Class GeoIPAppSetting
java.lang.Object
io.jmix.appsettings.entity.AppSettingsEntity
de.bytestore.hostinger.security.settings.GeoIPAppSetting
- All Implemented Interfaces:
io.jmix.core.Entity,io.jmix.core.entity.JmixEntityEntryEnhanced,io.jmix.core.entity.JmixSettersEnhanced,Serializable,Cloneable,org.eclipse.persistence.descriptors.changetracking.ChangeTracker,org.eclipse.persistence.internal.descriptors.PersistenceEntity,org.eclipse.persistence.internal.descriptors.PersistenceObject,org.eclipse.persistence.internal.weaving.PersistenceWeaved,org.eclipse.persistence.internal.weaving.PersistenceWeavedChangeTracking,org.eclipse.persistence.internal.weaving.PersistenceWeavedFetchGroups,org.eclipse.persistence.queries.FetchGroupTracker
@Entity(name="secure_GeoIPAppSetting")
public class GeoIPAppSetting
extends io.jmix.appsettings.entity.AppSettingsEntity
Represents the application settings related to GeoIP configuration. This entity utilizes Jmix frameworks
for persistence and is responsible for storing and managing GeoIP-related settings such as license key,
account ID, and the offline database path.
The
GeoIPAppSetting class extends from AppSettingsEntity, inheriting common functionality
for handling application settings. It includes attributes for essential GeoIP configuration details and integrates
with the SecurityService to update settings post modification.
Features:
- Stores the GeoIP license key used for authentication or other purposes.
- Contains the account ID associated with the GeoIP service.
- Maintains the file path to the offline GeoIP database, allowing operation without a live service.
- Automatically triggers updates to related security settings after any update operation through the @PostUpdate annotation.
An instance of SecurityService is utilized for the update operation, but it is not persisted as part of the entity.
Notes:
- The offline database path is initialized to a default value upon object creation.
- The securityService field is managed as a transient property and is excluded from persistence.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.appsettings.entity.AppSettingsEntity
io.jmix.appsettings.entity.AppSettingsEntity.JmixEntityEntry -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.jmix.appsettings.entity.AppSettingsEntity
__copyEntityEntry, __getEntityEntry, _persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_get, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getId, _persistence_getPropertyChangeListener, _persistence_getSession, _persistence_isAttributeFetched, _persistence_new, _persistence_post_clone, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_set, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setId, _persistence_setPropertyChangeListener, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Constructor Details
-
GeoIPAppSetting
public GeoIPAppSetting()
-
-
Method Details
-
postUpdate
public void postUpdate()
-