Ignore:
Timestamp:
01/09/14 17:02:09 (10 years ago)
Author:
olhsha
Message:

shibbolized

File:
1 edited

Legend:

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

    r4217 r4245  
    5555import javax.xml.bind.JAXBElement;
    5656import org.springframework.beans.factory.annotation.Autowired;
    57 import org.springframework.security.access.annotation.Secured;
    5857import org.springframework.stereotype.Component;
    5958import org.slf4j.Logger;
     
    105104    @Produces(MediaType.TEXT_XML)
    106105    @Path("{annotationid: " + BackendConstants.regExpIdentifier + "}")
    107     @Secured("ROLE_USER")
    108106    @Transactional(readOnly = true)
    109107    public JAXBElement<Annotation> getAnnotation(@PathParam("annotationid") String ExternalIdentifier) throws IOException {
     
    135133    @Produces(MediaType.TEXT_XML)
    136134    @Path("{annotationid: " + BackendConstants.regExpIdentifier + "}/targets")
    137     @Secured("ROLE_USER")
    138135    @Transactional(readOnly = true)
    139136    public JAXBElement<ReferenceList> getAnnotationTargets(@PathParam("annotationid") String ExternalIdentifier) throws IOException {
     
    160157    @Produces(MediaType.TEXT_XML)
    161158    @Path("")
    162     @Secured("ROLE_USER")
    163159    @Transactional(readOnly = true)
    164160    public JAXBElement<AnnotationInfoList> getFilteredAnnotations(@QueryParam("link") String link,
     
    183179    @Produces(MediaType.TEXT_XML)
    184180    @Path("{annotationid: " + BackendConstants.regExpIdentifier + "}/permissions")
    185     @Secured("ROLE_USER")
    186181    @Transactional(readOnly = true)
    187182    public JAXBElement<UserWithPermissionList> getAnnotationPermissions(@PathParam("annotationid") String ExternalIdentifier) throws IOException {
     
    208203    @DELETE
    209204    @Path("{annotationid: " + BackendConstants.regExpIdentifier + "}")
    210     @Secured("ROLE_USER")
    211205    public String deleteAnnotation(@PathParam("annotationid") String externalIdentifier) throws IOException {
    212206        dbIntegrityService.setServiceURI(uriInfo.getBaseUri().toString());
     
    234228    @Produces(MediaType.APPLICATION_XML)
    235229    @Path("")
    236     @Secured("ROLE_USER")
    237230    public JAXBElement<ResponseBody> createAnnotation(Annotation annotation) throws IOException {
    238231        dbIntegrityService.setServiceURI(uriInfo.getBaseUri().toString());
     
    249242    @Produces(MediaType.APPLICATION_XML)
    250243    @Path("{annotationid: " + BackendConstants.regExpIdentifier + "}")
    251     @Secured("ROLE_USER")
    252244    public JAXBElement<ResponseBody> updateAnnotation(@PathParam("annotationid") String externalIdentifier, Annotation annotation) throws IOException {
    253245        String path = uriInfo.getBaseUri().toString();
     
    281273    @Produces(MediaType.APPLICATION_XML)
    282274    @Path("{annotationid: " + BackendConstants.regExpIdentifier + "}/body")
    283     @Secured("ROLE_USER")
    284275    public JAXBElement<ResponseBody> updateAnnotationBody(@PathParam("annotationid") String externalIdentifier, AnnotationBody annotationBody) throws IOException {
    285276        String path = uriInfo.getBaseUri().toString();
     
    307298    @Produces(MediaType.APPLICATION_XML)
    308299    @Path("{annotationid: " + BackendConstants.regExpIdentifier + "}/permissions/{userid: " + BackendConstants.regExpIdentifier + "}")
    309     @Secured("ROLE_USER")
    310300    public String updatePermission(@PathParam("annotationid") String annotationExternalId, @PathParam("userid") String userExternalId, Permission permission) throws IOException {
    311301        dbIntegrityService.setServiceURI(uriInfo.getBaseUri().toString());
     
    335325    @Produces(MediaType.APPLICATION_XML)
    336326    @Path("{annotationid: " + BackendConstants.regExpIdentifier + "}/permissions/")
    337     @Secured("ROLE_USER")
    338327    public JAXBElement<ResponseBody> updatePermissions(@PathParam("annotationid") String annotationExternalId, UserWithPermissionList permissions) throws IOException {
    339328        dbIntegrityService.setServiceURI(uriInfo.getBaseUri().toString());
Note: See TracChangeset for help on using the changeset viewer.