Changeset 4254
- Timestamp:
- 01/10/14 18:42:45 (10 years ago)
- Location:
- DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/UserResource.java
r4253 r4254 73 73 @GET 74 74 @Produces(MediaType.TEXT_XML) 75 @Path("{userid : " + BackendConstants.regExpRemoteId + "}")75 @Path("{userid}") 76 76 @Transactional(readOnly = true) 77 77 public JAXBElement<User> getUser(@PathParam("userid") String ExternalIdentifier) throws SQLException, IOException { … … 116 116 @GET 117 117 @Produces(MediaType.TEXT_XML) 118 @Path("{userid : " + BackendConstants.regExpIdentifier + "}/current")118 @Path("{userid}/current") 119 119 @Transactional(readOnly = true) 120 120 public JAXBElement<CurrentUserInfo> getCurrentUserInfo(@PathParam("userid") String ExternalIdentifier) throws IOException { … … 141 141 @Consumes(MediaType.APPLICATION_XML) 142 142 @Produces(MediaType.APPLICATION_XML) 143 @Path("{remoteId : " + BackendConstants.regExpRemoteId + "}")143 @Path("{remoteId}") 144 144 public JAXBElement<User> addUser(@PathParam("remoteId") String remoteId, User user) throws SQLException, IOException { 145 145 final Number remoteUserID = dbIntegrityService.getUserInternalIDFromRemoteID(httpServletRequest.getRemoteUser()); … … 193 193 194 194 @DELETE 195 @Path("{userId : " + BackendConstants.regExpRemoteId + "}")195 @Path("{userId}") 196 196 public String deleteUser(@PathParam("userId") String externalIdentifier) throws IOException { 197 197 final Number remoteUserID = dbIntegrityService.getUserInternalIDFromRemoteID(httpServletRequest.getRemoteUser()); -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/webapp/WEB-INF/web.xml
r4252 r4254 66 66 67 67 <!-- lux16, 17, corpus 1 (shibbolized) --> 68 <!--<filter>68 <!-- <filter> 69 69 <filter-name>AAIFilter</filter-name> 70 70 <filter-class>de.mpg.aai.shhaa.AuthFilter</filter-class> … … 76 76 77 77 78 <!-- localhost auth experiments --> 79 78 <!-- localhost auth --> 80 79 81 80 <security-constraint> … … 101 100 </description> 102 101 <role-name>tomcat</role-name> 103 </security-role> 102 </security-role> 104 103 105 104 </web-app>
Note: See TracChangeset
for help on using the changeset viewer.