org.eurekaclinical.standardapis.props.CasJerseyEurekaClinicalProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eurekaclinical-standard-apis Show documentation
Show all versions of eurekaclinical-standard-apis Show documentation
A library of classes shared across the Eureka! Clinical platform.
package org.eurekaclinical.standardapis.props;
/*-
* #%L
* Eureka! Clinical Standard APIs
* %%
* Copyright (C) 2016 Emory University
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Base class for implementing properties for a Eureka! Clinical service.
*
* @author hrathod
*/
public abstract class CasJerseyEurekaClinicalProperties extends CasEurekaClinicalProperties {
/**
* The class level logger.
*/
private static final Logger LOGGER = LoggerFactory.getLogger(CasJerseyEurekaClinicalProperties.class);
/**
* Loads the application configuration.
*
* There are two potential sources of application configuration. The
* fallback configuration should always be there. The default configuration
* directory, provided as an argument to this constructor, may optionally
* have an application.properties file within it that overrides the fallback
* configuration for each configuration property that is specified. The
* eureka.config.dir
system property allows specifying an
* alternative configuration directory.
*
* @param defaultConfigDir the default location of configuration file, based
* on the operating system. Cannot be null
.
*/
protected CasJerseyEurekaClinicalProperties(String defaultConfigDir) {
super(defaultConfigDir);
}
/**
* Whether or not to use CAS gateway mode for authentication. Set to
* true
for Eureka! Clinical services because we never want
* the login screen.
*
* @return true
always.
*/
@Override
public boolean getCasLoginGateway() {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy