This commit is contained in:
Fabio Sinibaldi 2019-05-20 16:58:17 +00:00
parent 9790d6b3f8
commit c89eb7d5bd
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriInfo;
import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
import org.gcube.data.publishing.gCatFeeder.service.GCatFeederManager;
import org.gcube.data.publishing.gCatFeeder.service.ServiceConstants;
import org.gcube.data.publishing.gCatFeeder.service.engine.FeederEngine;
@ -88,6 +89,9 @@ public class Executions {
@Produces(MediaType.APPLICATION_JSON)
public Response getAll() {
try {
String token=SecurityTokenProvider.instance.get();
log.debug("Requested getALL with token {} ",token);
DBQueryDescriptor filter=new DBQueryDescriptor();
Collection<ExecutionDescriptor> toReturn=engine.get(filter);
GenericEntity<Collection<ExecutionDescriptor>> entity=new GenericEntity<Collection<ExecutionDescriptor>>(toReturn) {};