rsanchez
2014-09-29 8bba2a631975d2967b07bbbdbdcad2d86d0ccc4b
#2021 fix - Changed dependency name to commons-curis
2 files modified
changed files
securis/pom.xml patch | view | blame | history
securis/src/main/java/net/curisit/securis/services/LicenseServices.java patch | view | blame | history
securis/pom.xml
....@@ -47,15 +47,20 @@
4747 <version>0.9.5-SNAPSHOT</version>
4848 </dependency>
4949 <dependency>
50
- <groupId>net.curisit.integrity</groupId>
51
- <artifactId>commons</artifactId>
52
- <version>0.0.1-SNAPSHOT</version>
53
- </dependency>
54
- <dependency>
5550 <groupId>org.slf4j</groupId>
5651 <artifactId>slf4j-log4j12</artifactId>
5752 <version>1.7.7</version>
5853 </dependency>
54
+ <dependency>
55
+ <groupId>net.curisit</groupId>
56
+ <artifactId>commons-curis</artifactId>
57
+ <version>0.0.1-SNAPSHOT</version>
58
+ </dependency>
59
+ <dependency>
60
+ <groupId>org.hibernate</groupId>
61
+ <artifactId>hibernate-entitymanager</artifactId>
62
+ <version>4.3.6.Final</version>
63
+ </dependency>
5964 </dependencies>
6065 <build>
6166 <plugins>
securis/src/main/java/net/curisit/securis/services/LicenseServices.java
....@@ -7,20 +7,14 @@
77 import javax.inject.Named;
88 import javax.servlet.http.HttpServletRequest;
99 import javax.ws.rs.Consumes;
10
-import javax.ws.rs.DefaultValue;
1110 import javax.ws.rs.FormParam;
1211 import javax.ws.rs.GET;
1312 import javax.ws.rs.POST;
1413 import javax.ws.rs.Path;
15
-import javax.ws.rs.PathParam;
1614 import javax.ws.rs.Produces;
17
-import javax.ws.rs.QueryParam;
1815 import javax.ws.rs.core.Context;
1916 import javax.ws.rs.core.MediaType;
2017 import javax.ws.rs.core.Response;
21
-
22
-import net.curisit.integrity.beans.ServerConfigVersions;
23
-import net.curisit.integrity.beans.ServiceResponse;
2418
2519 import org.apache.commons.io.IOUtils;
2620 import org.apache.logging.log4j.LogManager;
....@@ -88,19 +82,19 @@
8882 return Response.ok("OK").build();
8983 }
9084
91
- @GET
92
- @Path("/current/{license}")
93
- @Produces({
94
- MediaType.APPLICATION_JSON
95
- })
96
- public ServiceResponse<ServerConfigVersions> testFile(@PathParam("license") String license,
97
- @DefaultValue("-1") @QueryParam("minorVersion") int minorVersion, @DefaultValue("-1") @QueryParam("majorVersion") int majorVersion) {
98
-
99
- LOG.info("Called 'current' service with license: {}", license);
100
- ServiceResponse<ServerConfigVersions> response = new ServiceResponse<ServerConfigVersions>();
101
-
102
- return response;
103
- }
85
+// @GET
86
+// @Path("/current/{license}")
87
+// @Produces({
88
+// MediaType.APPLICATION_JSON
89
+// })
90
+// public ServiceResponse<ServerConfigVersions> testFile(@PathParam("license") String license,
91
+// @DefaultValue("-1") @QueryParam("minorVersion") int minorVersion, @DefaultValue("-1") @QueryParam("majorVersion") int majorVersion) {
92
+//
93
+// LOG.info("Called 'current' service with license: {}", license);
94
+// ServiceResponse<ServerConfigVersions> response = new ServiceResponse<ServerConfigVersions>();
95
+//
96
+// return response;
97
+// }
10498
10599 public static class FileUploadForm {
106100