Changeset 4245 for DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/CachedRepresentationResource.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/CachedRepresentationResource.java
r4217 r4245 40 40 import javax.xml.parsers.ParserConfigurationException; 41 41 import org.springframework.beans.factory.annotation.Autowired; 42 import org.springframework.security.access.annotation.Secured;43 42 import org.springframework.stereotype.Component; 44 43 import org.springframework.transaction.annotation.Transactional; … … 71 70 @Produces(MediaType.TEXT_XML) 72 71 @Path("{cachedid: " + BackendConstants.regExpIdentifier + "}/metadata") 73 @Secured("ROLE_USER")74 72 @Transactional(readOnly = true) 75 73 public JAXBElement<CachedRepresentationInfo> getCachedRepresentationInfo(@PathParam("cachedid") String externalId) throws SQLException, IOException { … … 88 86 @Produces({"image/jpeg", "image/png"}) 89 87 @Path("{cachedid: " + BackendConstants.regExpIdentifier + "}/content") 90 @Secured("ROLE_USER")91 88 @Transactional(readOnly = true) 92 89 public BufferedImage getCachedRepresentationContent(@PathParam("cachedid") String externalId) throws SQLException, IOException {
Note: See TracChangeset
for help on using the changeset viewer.