Change-Id: Ibe92169b6819f032f5609849f785c22d76ffc237
Issue-ID: AAI-1239
Signed-off-by: Wiktor Garbarek <wiktor.garbarek@nokia.com>
private static LogHelper applicationLogger = LogHelper.INSTANCE;
private static LogHelper applicationLogger = LogHelper.INSTANCE;
+ public static final String CONFIG_HOME = "CONFIG_HOME";
public static final String FILESEP =
(System.getProperty("file.separator") == null) ? "/" : System.getProperty("file.separator");
public static final String FILESEP =
(System.getProperty("file.separator") == null) ? "/" : System.getProperty("file.separator");
- public static final String APPCONFIG_DIR = (System.getProperty("CONFIG_HOME") == null)
- ? System.getProperty("APP_HOME") + FILESEP + "appconfig" : System.getProperty("CONFIG_HOME");
+ public static final String APPCONFIG_DIR = (System.getProperty(CONFIG_HOME) == null)
+ ? System.getProperty("APP_HOME") + FILESEP + "appconfig" : System.getProperty(CONFIG_HOME);
private static String appConfigAuthDir = APPCONFIG_DIR + FILESEP + "auth";
private static String defaultAuthFileName = appConfigAuthDir + FILESEP + "auth_policy.json";
private static String appConfigAuthDir = APPCONFIG_DIR + FILESEP + "auth";
private static String defaultAuthFileName = appConfigAuthDir + FILESEP + "auth_policy.json";
throw new AAIAuthException(e.getMessage());
}
if (policyAuthFileName == null) {
throw new AAIAuthException(e.getMessage());
}
if (policyAuthFileName == null) {
- throw new AAIAuthException("Auth policy file could not be found" + System.getProperty("CONFIG_HOME") + APPCONFIG_DIR);
+ throw new AAIAuthException("Auth policy file could not be found" + System.getProperty(CONFIG_HOME) + APPCONFIG_DIR);
}
AAIMicroServiceAuthCore.reloadUsers();
}
AAIMicroServiceAuthCore.reloadUsers();
@Path("/app")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("/app")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public interface GenerateArtifactsService {
@POST
public interface GenerateArtifactsService {
@POST
import org.onap.aai.babel.service.data.BabelArtifact;
import org.onap.aai.babel.xml.generator.data.Artifact;
import org.onap.aai.babel.service.data.BabelArtifact;
import org.onap.aai.babel.xml.generator.data.Artifact;
public interface ArtifactGenerator {
/**
public interface ArtifactGenerator {
/**