Added missing @Consumes annotations.

Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/45892eaa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/45892eaa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/45892eaa

Branch: refs/heads/master
Commit: 45892eaa3a39acaeb619a179aeb169fa3a4ceee7
Parents: efb63e4
Author: Chris Laprun <[email protected]>
Authored: Fri Nov 20 14:51:54 2015 +0100
Committer: Chris Laprun <[email protected]>
Committed: Fri Nov 20 14:51:54 2015 +0100

----------------------------------------------------------------------
 .../org/apache/unomi/rest/CampaignsServiceEndPoint.java     | 1 +
 .../java/org/apache/unomi/rest/GoalsServiceEndPoint.java    | 1 +
 .../java/org/apache/unomi/rest/ProfileServiceEndPoint.java  | 9 ++++++---
 .../java/org/apache/unomi/rest/QueryServiceEndPoint.java    | 1 +
 .../java/org/apache/unomi/rest/RulesServiceEndPoint.java    | 1 +
 .../java/org/apache/unomi/rest/ScoringServiceEndPoint.java  | 1 +
 .../java/org/apache/unomi/rest/SegmentServiceEndPoint.java  | 1 +
 7 files changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/45892eaa/rest/src/main/java/org/apache/unomi/rest/CampaignsServiceEndPoint.java
----------------------------------------------------------------------
diff --git 
a/rest/src/main/java/org/apache/unomi/rest/CampaignsServiceEndPoint.java 
b/rest/src/main/java/org/apache/unomi/rest/CampaignsServiceEndPoint.java
index 3383b76..2cca082 100644
--- a/rest/src/main/java/org/apache/unomi/rest/CampaignsServiceEndPoint.java
+++ b/rest/src/main/java/org/apache/unomi/rest/CampaignsServiceEndPoint.java
@@ -38,6 +38,7 @@ import java.util.Set;
  */
 @WebService
 @Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
 @CrossOriginResourceSharing(
         allowAllOrigins = true,
         allowCredentials = true

http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/45892eaa/rest/src/main/java/org/apache/unomi/rest/GoalsServiceEndPoint.java
----------------------------------------------------------------------
diff --git a/rest/src/main/java/org/apache/unomi/rest/GoalsServiceEndPoint.java 
b/rest/src/main/java/org/apache/unomi/rest/GoalsServiceEndPoint.java
index 0583067..120507d 100644
--- a/rest/src/main/java/org/apache/unomi/rest/GoalsServiceEndPoint.java
+++ b/rest/src/main/java/org/apache/unomi/rest/GoalsServiceEndPoint.java
@@ -37,6 +37,7 @@ import java.util.Set;
  */
 @WebService
 @Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
 @CrossOriginResourceSharing(
         allowAllOrigins = true,
         allowCredentials = true

http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/45892eaa/rest/src/main/java/org/apache/unomi/rest/ProfileServiceEndPoint.java
----------------------------------------------------------------------
diff --git 
a/rest/src/main/java/org/apache/unomi/rest/ProfileServiceEndPoint.java 
b/rest/src/main/java/org/apache/unomi/rest/ProfileServiceEndPoint.java
index 8238139..9557595 100644
--- a/rest/src/main/java/org/apache/unomi/rest/ProfileServiceEndPoint.java
+++ b/rest/src/main/java/org/apache/unomi/rest/ProfileServiceEndPoint.java
@@ -43,6 +43,7 @@ import java.util.*;
  */
 @WebService
 @Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
 @CrossOriginResourceSharing(
         allowAllOrigins = true,
         allowCredentials = true
@@ -101,7 +102,6 @@ public class ProfileServiceEndPoint {
      * @return a {@link PartialList} of profiles instances matching the 
specified query
      */
     @POST
-    @Consumes(MediaType.APPLICATION_JSON)
     @Path("/search")
     public PartialList<Profile> getProfiles(Query query) {
         return profileService.search(query, Profile.class);
@@ -354,6 +354,7 @@ public class ProfileServiceEndPoint {
      * @param sessionId the identifier of the session to be retrieved
      * @param dateHint  a Date helping in identifying where the item is located
      * @return the session identified by the specified identifier
+     * @throws ParseException if the date hint cannot be parsed as a proper 
{@link Date} object
      */
     @GET
     @Path("/sessions/{sessionId}")
@@ -417,6 +418,7 @@ public class ProfileServiceEndPoint {
      *
      * @param tagId    the tag we're interested in
      * @param itemType the String representation of the item type we want to 
retrieve the count of, as defined by its class' {@code ITEM_TYPE} field
+     * @param language the value of the {@code Accept-Language} header to 
specify in which locale the properties description should be returned TODO 
unused
      * @return all property types defined for the specified item type and with 
the specified tag
      */
     @GET
@@ -431,7 +433,7 @@ public class ProfileServiceEndPoint {
      *
      * TODO: move to a different class
      *
-     * @param language TODO unused
+     * @param language the value of the {@code Accept-Language} header to 
specify in which locale the properties description should be returned TODO 
unused
      * @return a Map associating targets as keys to related {@link 
PropertyType}s
      */
     @GET
@@ -446,7 +448,7 @@ public class ProfileServiceEndPoint {
      * TODO: move to a different class
      *
      * @param target   the target for which we want to retrieve the associated 
property types
-     * @param language TODO unused
+     * @param language the value of the {@code Accept-Language} header to 
specify in which locale the properties description should be returned TODO 
unused
      * @return a collection of all the property types associated with the 
specified target
      */
     @GET
@@ -463,6 +465,7 @@ public class ProfileServiceEndPoint {
      *
      * @param tags      a comma-separated list of tag identifiers
      * @param recursive {@code true} if sub-tags of the specified tag should 
also be considered, {@code false} otherwise
+     * @param language  the value of the {@code Accept-Language} header to 
specify in which locale the properties description should be returned TODO 
unused
      * @return a Set of the property types with the specified tag
      */
     @GET

http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/45892eaa/rest/src/main/java/org/apache/unomi/rest/QueryServiceEndPoint.java
----------------------------------------------------------------------
diff --git a/rest/src/main/java/org/apache/unomi/rest/QueryServiceEndPoint.java 
b/rest/src/main/java/org/apache/unomi/rest/QueryServiceEndPoint.java
index c578de5..33c6bdb 100644
--- a/rest/src/main/java/org/apache/unomi/rest/QueryServiceEndPoint.java
+++ b/rest/src/main/java/org/apache/unomi/rest/QueryServiceEndPoint.java
@@ -39,6 +39,7 @@ import java.util.Map;
  */
 @WebService
 @Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
 @CrossOriginResourceSharing(
         allowAllOrigins = true,
         allowCredentials = true

http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/45892eaa/rest/src/main/java/org/apache/unomi/rest/RulesServiceEndPoint.java
----------------------------------------------------------------------
diff --git a/rest/src/main/java/org/apache/unomi/rest/RulesServiceEndPoint.java 
b/rest/src/main/java/org/apache/unomi/rest/RulesServiceEndPoint.java
index c26b209..a51b0e8 100644
--- a/rest/src/main/java/org/apache/unomi/rest/RulesServiceEndPoint.java
+++ b/rest/src/main/java/org/apache/unomi/rest/RulesServiceEndPoint.java
@@ -35,6 +35,7 @@ import java.util.Set;
  */
 @WebService
 @Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
 @CrossOriginResourceSharing(
         allowAllOrigins = true,
         allowCredentials = true

http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/45892eaa/rest/src/main/java/org/apache/unomi/rest/ScoringServiceEndPoint.java
----------------------------------------------------------------------
diff --git 
a/rest/src/main/java/org/apache/unomi/rest/ScoringServiceEndPoint.java 
b/rest/src/main/java/org/apache/unomi/rest/ScoringServiceEndPoint.java
index f585323..0865b8d 100644
--- a/rest/src/main/java/org/apache/unomi/rest/ScoringServiceEndPoint.java
+++ b/rest/src/main/java/org/apache/unomi/rest/ScoringServiceEndPoint.java
@@ -36,6 +36,7 @@ import java.util.List;
  */
 @WebService
 @Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
 @CrossOriginResourceSharing(
         allowAllOrigins = true,
         allowCredentials = true

http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/45892eaa/rest/src/main/java/org/apache/unomi/rest/SegmentServiceEndPoint.java
----------------------------------------------------------------------
diff --git 
a/rest/src/main/java/org/apache/unomi/rest/SegmentServiceEndPoint.java 
b/rest/src/main/java/org/apache/unomi/rest/SegmentServiceEndPoint.java
index 39081c6..c74c370 100644
--- a/rest/src/main/java/org/apache/unomi/rest/SegmentServiceEndPoint.java
+++ b/rest/src/main/java/org/apache/unomi/rest/SegmentServiceEndPoint.java
@@ -36,6 +36,7 @@ import java.util.List;
  */
 @WebService
 @Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
 @CrossOriginResourceSharing(
         allowAllOrigins = true,
         allowCredentials = true

Reply via email to