Changeset 4245 for DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/TargetResource.java
- Timestamp:
- 01/09/14 17:02:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/TargetResource.java
r4217 r4245 45 45 import javax.xml.parsers.ParserConfigurationException; 46 46 import org.springframework.beans.factory.annotation.Autowired; 47 import org.springframework.security.access.annotation.Secured;48 47 import org.springframework.stereotype.Component; 49 48 import org.springframework.transaction.annotation.Transactional; … … 82 81 @Produces(MediaType.TEXT_XML) 83 82 @Path("{targetid: " + BackendConstants.regExpIdentifier + "}") 84 @Secured("ROLE_USER")85 83 @Transactional(readOnly = true) 86 84 public JAXBElement<Target> getTarget(@PathParam("targetid") String ExternalIdentifier) throws SQLException, IOException { … … 100 98 @Produces(MediaType.TEXT_XML) 101 99 @Path("{targetid: " + BackendConstants.regExpIdentifier + "}/versions") 102 @Secured("ROLE_USER")103 100 @Transactional(readOnly = true) 104 101 public JAXBElement<ReferenceList> getSiblingTargets(@PathParam("targetid") String ExternalIdentifier) throws SQLException, IOException { … … 133 130 @Produces(MediaType.APPLICATION_XML) 134 131 @Path("{targetid: " + BackendConstants.regExpIdentifier + "}/fragment/{fragmentDescriptor}/cached") 135 @Secured("ROLE_USER")136 132 public JAXBElement<CachedRepresentationInfo> postCached(@PathParam("targetid") String targetIdentifier, 137 133 @PathParam("fragmentDescriptor") String fragmentDescriptor, … … 151 147 @DELETE 152 148 @Path("{targetid: " + BackendConstants.regExpIdentifier + "}/cached/{cachedid: " + BackendConstants.regExpIdentifier + "}") 153 @Secured("ROLE_ADMIN")154 149 public String deleteCachedForTarget(@PathParam("targetid") String targetExternalIdentifier, 155 150 @PathParam("cachedid") String cachedExternalIdentifier) throws SQLException, IOException {
Note: See TracChangeset
for help on using the changeset viewer.