package org.apereo.cas.configuration.model.core.events; import org.apereo.cas.configuration.model.support.jpa.AbstractJpaProperties; import org.apereo.cas.configuration.model.support.mongo.AbstractMongoClientProperties; /** * Configuration properties class for events. * * @author Dmitriy Kopylenko * @since 5.0.0 */ public class EventsProperties { private boolean trackGeolocation; private boolean trackConfigurationModifications = true; private Jpa jpa = new Jpa(); private Mongodb mongodb = new Mongodb(); public Mongodb getMongodb() { return mongodb; } public void setMongodb(final Mongodb mongodb) { this.mongodb = mongodb; } public boolean isTrackGeolocation() { return trackGeolocation; } public void setTrackGeolocation(final boolean trackGeolocation) { this.trackGeolocation = trackGeolocation; } public boolean isTrackConfigurationModifications() { return trackConfigurationModifications; } public void setTrackConfigurationModifications(final boolean trackConfigurationModifications) { this.trackConfigurationModifications = trackConfigurationModifications; } public Jpa getJpa() { return jpa; } public void setJpa(final Jpa jpa) { this.jpa = jpa; } public static class Jpa extends AbstractJpaProperties { } public static class Mongodb extends AbstractMongoClientProperties { public Mongodb() { setCollection("MongoDbCasEventRepository"); } } }