git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-publishing/gCat-Feeder-Suite@179491 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9790d6b3f8
commit
c89eb7d5bd
|
@ -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) {};
|
||||
|
|
Loading…
Reference in New Issue