-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed the 'oraface-api' to 'oracle-data-api' throughout the project…
… to keep the same naming convention as a standard
- Loading branch information
Showing
36 changed files
with
3,642 additions
and
3,616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>jag-traffic-courts-online</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.wst.validation.validationbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/> | ||
<classpathentry kind="src" path=""/> | ||
<classpathentry kind="output" path=""/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.wst.jsdt.launching.JRE_CONTAINER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Global |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ration/OracleInterfaceApiConfiguration.cs → ...nfiguration/OracleDataApiConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 18 additions & 18 deletions
36
...tainterface/config/ApplicationConfig.java → ...acledataapi/config/ApplicationConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
package ca.bc.gov.open.jag.tco.oracledatainterface.config; | ||
|
||
import org.springdoc.core.GroupedOpenApi; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class ApplicationConfig { | ||
|
||
/** | ||
* Group all APIs with `v1.0` in the path | ||
*/ | ||
@Bean | ||
GroupedOpenApi v1_0Apis() { | ||
return GroupedOpenApi.builder().group("v1.0").pathsToMatch("/**/api/v1.0/**").build(); | ||
} | ||
|
||
} | ||
package ca.bc.gov.open.jag.tco.oracledataapi.config; | ||
|
||
import org.springdoc.core.GroupedOpenApi; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class ApplicationConfig { | ||
|
||
/** | ||
* Group all APIs with `v1.0` in the path | ||
*/ | ||
@Bean | ||
GroupedOpenApi v1_0Apis() { | ||
return GroupedOpenApi.builder().group("v1.0").pathsToMatch("/**/api/v1.0/**").build(); | ||
} | ||
|
||
} |
94 changes: 47 additions & 47 deletions
94
...acledatainterface/config/RedisConfig.java → ...tco/oracledataapi/config/RedisConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
package ca.bc.gov.open.jag.tco.oracledatainterface.config; | ||
|
||
import org.apache.commons.lang3.StringUtils; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.boot.autoconfigure.data.redis.RedisProperties; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.data.redis.connection.RedisSentinelConfiguration; | ||
import org.springframework.data.redis.connection.RedisStandaloneConfiguration; | ||
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; | ||
|
||
@Configuration | ||
public class RedisConfig { | ||
|
||
private Logger logger = LoggerFactory.getLogger(RedisConfig.class); | ||
|
||
@Bean | ||
public LettuceConnectionFactory redisConnectionFactory(RedisProperties redisProperties) { | ||
// Normally Spring automatically handles and builds a RedisConnectionFactory, but in seems Sentinel and Standalone | ||
// modes are mutually exclusive. If spring.redis.sentinel.master configuration is set (or blank) then Spring auto-configures | ||
// redis to be in Sentinel mode. But Sentinel mode does not work for local development. For development, redis must be | ||
// in Standalone mode. Here we are manually creating one or the other based on if master is set or not. | ||
|
||
// Sentinel mode (for deployments) | ||
if (redisProperties.getSentinel() != null && !StringUtils.isBlank(redisProperties.getSentinel().getMaster())) { | ||
logger.debug("Configuring Redis to run in sentinal mode."); | ||
RedisSentinelConfiguration config = new RedisSentinelConfiguration(); | ||
config.master(redisProperties.getSentinel().getMaster()); | ||
for(String node : redisProperties.getSentinel().getNodes()) { | ||
String[] props = node.split(":"); | ||
config.sentinel(props[0], Integer.parseInt(props[1])); | ||
} | ||
config.setPassword(redisProperties.getPassword()); | ||
return new LettuceConnectionFactory(config); | ||
} | ||
|
||
// Standalone mode (for local development) | ||
else { | ||
logger.debug("Configuring Redis to run in standalone mode."); | ||
RedisStandaloneConfiguration config = new RedisStandaloneConfiguration(redisProperties.getHost(), redisProperties.getPort()); | ||
config.setPassword(redisProperties.getPassword()); | ||
return new LettuceConnectionFactory(config); | ||
} | ||
} | ||
|
||
} | ||
package ca.bc.gov.open.jag.tco.oracledataapi.config; | ||
|
||
import org.apache.commons.lang3.StringUtils; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.boot.autoconfigure.data.redis.RedisProperties; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.data.redis.connection.RedisSentinelConfiguration; | ||
import org.springframework.data.redis.connection.RedisStandaloneConfiguration; | ||
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; | ||
|
||
@Configuration | ||
public class RedisConfig { | ||
|
||
private Logger logger = LoggerFactory.getLogger(RedisConfig.class); | ||
|
||
@Bean | ||
public LettuceConnectionFactory redisConnectionFactory(RedisProperties redisProperties) { | ||
// Normally Spring automatically handles and builds a RedisConnectionFactory, but in seems Sentinel and Standalone | ||
// modes are mutually exclusive. If spring.redis.sentinel.master configuration is set (or blank) then Spring auto-configures | ||
// redis to be in Sentinel mode. But Sentinel mode does not work for local development. For development, redis must be | ||
// in Standalone mode. Here we are manually creating one or the other based on if master is set or not. | ||
|
||
// Sentinel mode (for deployments) | ||
if (redisProperties.getSentinel() != null && !StringUtils.isBlank(redisProperties.getSentinel().getMaster())) { | ||
logger.debug("Configuring Redis to run in sentinal mode."); | ||
RedisSentinelConfiguration config = new RedisSentinelConfiguration(); | ||
config.master(redisProperties.getSentinel().getMaster()); | ||
for(String node : redisProperties.getSentinel().getNodes()) { | ||
String[] props = node.split(":"); | ||
config.sentinel(props[0], Integer.parseInt(props[1])); | ||
} | ||
config.setPassword(redisProperties.getPassword()); | ||
return new LettuceConnectionFactory(config); | ||
} | ||
|
||
// Standalone mode (for local development) | ||
else { | ||
logger.debug("Configuring Redis to run in standalone mode."); | ||
RedisStandaloneConfiguration config = new RedisStandaloneConfiguration(redisProperties.getHost(), redisProperties.getPort()); | ||
config.setPassword(redisProperties.getPassword()); | ||
return new LettuceConnectionFactory(config); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...co/oracledatainterface/model/Dispute.java → .../jag/tco/oracledataapi/model/Dispute.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.