Changeset 5739 for DASISH/t5.6/backend/annotator-backend/branches/Jersey-2.12-adaptation/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/TargetResource.java
- Timestamp:
- 10/21/14 19:01:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/branches/Jersey-2.12-adaptation/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/TargetResource.java
r5693 r5739 18 18 package eu.dasish.annotation.backend.rest; 19 19 20 import com.sun.jersey.multipart.BodyPartEntity;21 import com.sun.jersey.multipart.MultiPart;20 import org.glassfish.jersey.media.multipart.MultiPart; 21 import org.glassfish.jersey.media.multipart.BodyPartEntity; 22 22 import eu.dasish.annotation.backend.BackendConstants; 23 23 import eu.dasish.annotation.backend.ForbiddenException; … … 82 82 Map params = new HashMap(); 83 83 try { 84 Target result = (Target) (new RequestWrappers(this)).wrapRequestResource(params, new GetTarget(), Resource.TARGET, ResourceAction.READ, externalIdentifier);84 Target result = (Target) (new RequestWrappers(this)).wrapRequestResource(params, new TargetResource.GetTarget(), Resource.TARGET, ResourceAction.READ, externalIdentifier); 85 85 if (result != null) { 86 86 return new ObjectFactory().createTarget(result); … … 114 114 Map params = new HashMap(); 115 115 try { 116 ReferenceList result = (ReferenceList) (new RequestWrappers(this)).wrapRequestResource(params, new GetSiblingTargets(), Resource.TARGET, ResourceAction.READ, externalIdentifier);116 ReferenceList result = (ReferenceList) (new RequestWrappers(this)).wrapRequestResource(params, new TargetResource.GetSiblingTargets(), Resource.TARGET, ResourceAction.READ, externalIdentifier); 117 117 if (result != null) { 118 118 return new ObjectFactory().createReferenceList(result); … … 153 153 params.put("fragmentDescriptor", fragmentDescriptor); 154 154 try { 155 CachedRepresentationInfo result = (CachedRepresentationInfo) (new RequestWrappers(this)).wrapRequestResource(params, new PostCached(), Resource.TARGET, ResourceAction.WRITE_W_METAINFO, targetIdentifier);155 CachedRepresentationInfo result = (CachedRepresentationInfo) (new RequestWrappers(this)).wrapRequestResource(params, new TargetResource.PostCached(), Resource.TARGET, ResourceAction.WRITE_W_METAINFO, targetIdentifier); 156 156 if (result != null) { 157 157 return new ObjectFactory().createCachedRepresentationInfo(result);
Note: See TracChangeset
for help on using the changeset viewer.