- Timestamp:
- 10/06/14 14:45:21 (10 years ago)
- Location:
- DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/pom.xml
r5690 r5693 5 5 <groupId>eu.dasish.annotation</groupId> 6 6 <artifactId>annotator-backend</artifactId> 7 <version> ${project.version}</version>7 <version>1.5.3</version> 8 8 <packaging>war</packaging> 9 9 <name>annotator-backend Jersey Webapp</name> … … 400 400 <netbeans.hint.license>gpl20</netbeans.hint.license> 401 401 <plugin.license.copyrightYear>2013</plugin.license.copyrightYear> 402 <project.version>1.5.2</project.version>403 402 <shibboleth.version>1.0.4</shibboleth.version> 404 <surefire.version>2.9</surefire.version>405 403 </properties> 406 404 -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/CachedRepresentationResource.java
r5679 r5693 73 73 CachedRepresentationInfo result = (CachedRepresentationInfo) (new RequestWrappers(this)).wrapRequestResource(params, new GetCachedRepresentationInfo(), Resource.CACHED_REPRESENTATION, ResourceAction.READ, externalId); 74 74 if (result != null) { 75 return (new ObjectFactory()).createCa shedRepresentationInfo(result);76 } else { 77 return (new ObjectFactory()).createCa shedRepresentationInfo(new CachedRepresentationInfo());78 } 79 } catch (NotInDataBaseException e1) { 80 httpServletResponse.sendError(HttpServletResponse.SC_NOT_FOUND, e1.getMessage()); 81 return new ObjectFactory().createCa shedRepresentationInfo(new CachedRepresentationInfo());82 } catch (ForbiddenException e2) { 83 httpServletResponse.sendError(HttpServletResponse.SC_FORBIDDEN, e2.getMessage()); 84 return new ObjectFactory().createCa shedRepresentationInfo(new CachedRepresentationInfo());75 return (new ObjectFactory()).createCachedRepresentationInfo(result); 76 } else { 77 return (new ObjectFactory()).createCachedRepresentationInfo(new CachedRepresentationInfo()); 78 } 79 } catch (NotInDataBaseException e1) { 80 httpServletResponse.sendError(HttpServletResponse.SC_NOT_FOUND, e1.getMessage()); 81 return new ObjectFactory().createCachedRepresentationInfo(new CachedRepresentationInfo()); 82 } catch (ForbiddenException e2) { 83 httpServletResponse.sendError(HttpServletResponse.SC_FORBIDDEN, e2.getMessage()); 84 return new ObjectFactory().createCachedRepresentationInfo(new CachedRepresentationInfo()); 85 85 } 86 86 } -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/TargetResource.java
r5679 r5693 155 155 CachedRepresentationInfo result = (CachedRepresentationInfo) (new RequestWrappers(this)).wrapRequestResource(params, new PostCached(), Resource.TARGET, ResourceAction.WRITE_W_METAINFO, targetIdentifier); 156 156 if (result != null) { 157 return new ObjectFactory().createCa shedRepresentationInfo(result);157 return new ObjectFactory().createCachedRepresentationInfo(result); 158 158 } else { 159 return new ObjectFactory().createCa shedRepresentationInfo(new CachedRepresentationInfo());159 return new ObjectFactory().createCachedRepresentationInfo(new CachedRepresentationInfo()); 160 160 } 161 161 } catch (NotInDataBaseException e1) { 162 162 httpServletResponse.sendError(HttpServletResponse.SC_NOT_FOUND, e1.getMessage()); 163 return new ObjectFactory().createCa shedRepresentationInfo(new CachedRepresentationInfo());163 return new ObjectFactory().createCachedRepresentationInfo(new CachedRepresentationInfo()); 164 164 } catch (ForbiddenException e2) { 165 165 httpServletResponse.sendError(HttpServletResponse.SC_FORBIDDEN, e2.getMessage()); 166 return new ObjectFactory().createCa shedRepresentationInfo(new CachedRepresentationInfo());166 return new ObjectFactory().createCachedRepresentationInfo(new CachedRepresentationInfo()); 167 167 } 168 168 } -
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/webapp/SCHEMA/DASISH-schema.xsd
r5674 r5693 323 323 <xs:element name="annotationList" type="dasish:ReferenceList"/> 324 324 325 <xs:element name="ca shedRepresentationInfo" type="dasish:CachedRepresentationInfo"/>326 327 <xs:element name="ca shedRepresentationList" type="dasish:ReferenceList"/>325 <xs:element name="cachedRepresentationInfo" type="dasish:CachedRepresentationInfo"/> 326 327 <xs:element name="cachedRepresentationList" type="dasish:ReferenceList"/> 328 328 329 329 <xs:element name="cachedRepresentationFragment" type="dasish:CachedRepresentationFragment"/>
Note: See TracChangeset
for help on using the changeset viewer.