Skip to content

Commit 1d9d593

Browse files
author
eugenp
committed
major cleanup
1 parent 9defcce commit 1d9d593

291 files changed

Lines changed: 5383 additions & 5518 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.project‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>rest-parent</name>
3+
<name>restwithspring</name>
44
<comment></comment>
55
<projects>
66
</projects>

‎api/.classpath‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</classpathentry>
2121
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
2222
<attributes>
23-
<attribute name="owner.project.facets" value="java"/>
23+
<attribute name="maven.pomderived" value="true"/>
2424
</attributes>
2525
</classpathentry>
2626
<classpathentry kind="output" path="target/classes"/>

‎api/.project‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>rest-api</name>
3+
<name>rest-security-client</name>
44
<comment></comment>
55
<projects>
66
</projects>
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
eclipse.preferences.version=1
22
encoding//src/main/java=UTF-8
3-
encoding//src/main/java/rebel.xml=UTF-8
43
encoding/<project>=UTF-8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
2-
<wb-module deploy-name="rest-api">
2+
<wb-module deploy-name="rest-security-client">
33
<wb-resource deploy-path="/" source-path="/src/main/java"/>
44
</wb-module>
55
</project-modules>

‎api/pom.xml‎

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22
<modelVersion>4.0.0</modelVersion>
3-
<name>rest-api</name>
4-
<artifactId>rest-api</artifactId>
3+
<name>rest-security-client</name>
4+
<artifactId>rest-security-client</artifactId>
55

66
<parent>
77
<groupId>org</groupId>
8-
<artifactId>rest-parent</artifactId>
9-
<version>0.12-SNAPSHOT</version>
8+
<artifactId>restwithspring-parent</artifactId>
9+
<version>0.0.1-SNAPSHOT</version>
1010
<relativePath>..</relativePath>
1111
</parent>
1212

@@ -16,21 +16,21 @@
1616

1717
<dependency>
1818
<groupId>org</groupId>
19-
<artifactId>rest-common</artifactId>
20-
<version>0.12-SNAPSHOT</version>
19+
<artifactId>rest-common-client</artifactId>
20+
<version>0.0.1-SNAPSHOT</version>
2121
</dependency>
2222

2323
<dependency>
2424
<groupId>org</groupId>
25-
<artifactId>rest-test</artifactId>
26-
<version>0.12-SNAPSHOT</version>
25+
<artifactId>rest-security-test</artifactId>
26+
<version>0.0.1-SNAPSHOT</version>
2727
<scope>test</scope>
2828
</dependency>
2929

3030
</dependencies>
3131

3232
<build>
33-
<finalName>rest-api</finalName>
33+
<finalName>rest-security-client</finalName>
3434
<resources>
3535
<resource>
3636
<directory>src/main/resources</directory>
@@ -39,7 +39,21 @@
3939
</resources>
4040

4141
<plugins>
42-
<!-- placeholder -->
42+
43+
<!-- this create jar file of code from src/test/java so modules with tests can share code -->
44+
<plugin>
45+
<groupId>org.apache.maven.plugins</groupId>
46+
<artifactId>maven-jar-plugin</artifactId>
47+
<version>2.6</version>
48+
<executions>
49+
<execution>
50+
<goals>
51+
<goal>test-jar</goal>
52+
</goals>
53+
</execution>
54+
</executions>
55+
</plugin>
56+
4357
</plugins>
4458

4559
</build>

api/src/main/java/org/rest/sec/client/template/PrivilegeClientRestTemplate.java renamed to api/src/main/java/org/baeldung/rest/client/PrivilegeClientRestTemplate.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package org.rest.sec.client.template;
1+
package org.baeldung.rest.client;
22

33
import org.apache.commons.lang3.tuple.ImmutablePair;
44
import org.apache.commons.lang3.tuple.Pair;
5-
import org.rest.common.client.template.AbstractNamedClientRestTemplate;
6-
import org.rest.sec.client.SecBusinessPaths;
7-
import org.rest.sec.model.Privilege;
8-
import org.rest.sec.util.SecurityConstants;
5+
import org.baeldung.rest.client.util.SecBusinessPaths;
6+
import org.baeldung.rest.common.client.template.AbstractNamedClientRestTemplate;
7+
import org.baeldung.rest.model.Privilege;
8+
import org.baeldung.rest.util.SecurityConstants;
99
import org.springframework.beans.factory.annotation.Autowired;
1010
import org.springframework.context.annotation.Profile;
1111
import org.springframework.stereotype.Component;

api/src/main/java/org/rest/sec/client/template/RoleClientRestTemplate.java renamed to api/src/main/java/org/baeldung/rest/client/RoleClientRestTemplate.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package org.rest.sec.client.template;
1+
package org.baeldung.rest.client;
22

33
import org.apache.commons.lang3.tuple.ImmutablePair;
44
import org.apache.commons.lang3.tuple.Pair;
5-
import org.rest.common.client.template.AbstractNamedClientRestTemplate;
6-
import org.rest.sec.client.SecBusinessPaths;
7-
import org.rest.sec.model.Role;
8-
import org.rest.sec.util.SecurityConstants;
5+
import org.baeldung.rest.client.util.SecBusinessPaths;
6+
import org.baeldung.rest.common.client.template.AbstractNamedClientRestTemplate;
7+
import org.baeldung.rest.model.Role;
8+
import org.baeldung.rest.util.SecurityConstants;
99
import org.springframework.beans.factory.annotation.Autowired;
1010
import org.springframework.context.annotation.Profile;
1111
import org.springframework.stereotype.Component;

api/src/main/java/org/rest/sec/client/template/UserClientRestTemplate.java renamed to api/src/main/java/org/baeldung/rest/client/UserClientRestTemplate.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package org.rest.sec.client.template;
1+
package org.baeldung.rest.client;
22

33
import org.apache.commons.lang3.tuple.ImmutablePair;
44
import org.apache.commons.lang3.tuple.Pair;
5-
import org.rest.common.client.template.AbstractNamedClientRestTemplate;
6-
import org.rest.sec.client.SecBusinessPaths;
7-
import org.rest.sec.model.dto.User;
8-
import org.rest.sec.util.SecurityConstants;
5+
import org.baeldung.rest.client.util.SecBusinessPaths;
6+
import org.baeldung.rest.common.client.template.AbstractNamedClientRestTemplate;
7+
import org.baeldung.rest.model.User;
8+
import org.baeldung.rest.util.SecurityConstants;
99
import org.springframework.beans.factory.annotation.Autowired;
1010
import org.springframework.context.annotation.Profile;
1111
import org.springframework.stereotype.Component;

api/src/main/java/org/rest/sec/client/template/auth/AuthenticationRestTemplate.java renamed to api/src/main/java/org/baeldung/rest/client/auth/AuthenticationRestTemplate.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package org.rest.sec.client.template.auth;
1+
package org.baeldung.rest.client.auth;
22

3-
import org.rest.common.client.marshall.IMarshaller;
4-
import org.rest.common.client.web.HeaderUtil;
5-
import org.rest.sec.client.SecBusinessPaths;
6-
import org.rest.sec.model.dto.User;
3+
import org.baeldung.rest.client.util.SecBusinessPaths;
4+
import org.baeldung.rest.common.client.marshall.IMarshaller;
5+
import org.baeldung.rest.common.client.web.HeaderUtil;
6+
import org.baeldung.rest.model.User;
77
import org.springframework.beans.factory.annotation.Autowired;
88
import org.springframework.context.annotation.Profile;
99
import org.springframework.http.HttpEntity;

0 commit comments

Comments
 (0)