Ignore:
Timestamp:
09/26/14 14:04:57 (10 years ago)
Author:
olhsha@mpi.nl
Message:

Refixing the previous bug, because update public access mode id not work properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/RequestWrappers.java

    r5679 r5684  
    5353    }
    5454
    55     public T wrapRequestResource(Map params, ILambda<Map, T> dbRequestor) throws IOException {
     55    public T wrapRequestResource(Map params, ILambda<Map, T> dbRequestor) throws IOException, NotInDataBaseException {
    5656        Number remotePrincipalID = resourceResource.getPrincipalID();
    5757        if (remotePrincipalID == null) {
     
    5959        }
    6060        params.put(_principalID, remotePrincipalID);
    61         try {
    62             return dbRequestor.apply(params);
    63         } catch (NotInDataBaseException e1) {
    64             resourceResource.loggerServer.debug(e1.toString());
    65             resourceResource.httpServletResponse.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e1.toString());
    66             return null;
    67         }
     61        return dbRequestor.apply(params);
    6862    }
    6963
     
    8579
    8680    }
     81   
     82   
    8783
    8884    public JAXBElement<Principal> wrapAddPrincipalRequest(Map params, ILambdaPrincipal<Map, Principal> dbRequestor) throws IOException, NotInDataBaseException, PrincipalExists {
Note: See TracChangeset for help on using the changeset viewer.