/** * Copyright (c) 2014 by the original author or authors. * * This code is free software; you can redistribute it and/or modify it under the terms of the * GNU Lesser General Public License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * The above copyright notice and this permission notice shall be included in all copies or * substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package ch.sdi.plugins.oxwall; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.PropertySource; import ch.sdi.core.annotations.SdiProps; /** * Configuration interface for the target.properties. * <p> * The property file target.properties (on the classpath) is automatically loaded into the environment. * <p> * The expected property names are defined her. * <p> * Because this interface is annotated with @SdiProps it is subject to the automatic mechanisme for * overloading default properties with user defined properties (see {@link ch.sdi.core.annotations.SdiProps}). * <p> * * @version 1.0 (24.11.2014) * @author Heri */ @Configuration @PropertySource("classpath:/" + "target.properties" ) @SdiProps( "target" ) public class OxTargetConfiguration { public static final String KEY_PW_SALT = "ox.passwordsalt"; public static final String KEY_USER_ACCOUNT_TYPE = "ox.ow_base_user.accounttype"; public static final String KEY_USER_EMAIL_VERIFY = "ox.ow_base_user.emailVerify"; public static final String KEY_USER_JOINIP = "ox.ow_base_user.joinIp"; public static final String KEY_HAS_AVATAR = "ox.target.hasAvatar"; }