Package step.plugins.datatable
Class TableService
- java.lang.Object
-
- step.core.deployment.AbstractServices
-
- step.core.deployment.ApplicationServices
-
- step.plugins.datatable.TableService
-
@Singleton @Path("table") public class TableService extends ApplicationServices
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TableService.ExportTask
-
Field Summary
Fields Modifier and Type Field Description protected ExportTaskManager
exportTaskManager
protected int
maxTime
protected TableRegistry
tableRegistry
-
Fields inherited from class step.core.deployment.AbstractServices
configuration, controller, SESSION
-
-
Constructor Summary
Constructors Constructor Description TableService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
createExport(java.lang.String tableID, javax.ws.rs.core.UriInfo uriInfo)
void
destroy()
ExportTaskManager.ExportStatus
getExport(java.lang.String reportID)
java.util.List<java.lang.String>
getTableColumnDistinct(java.lang.String tableID, java.lang.String column, javax.ws.rs.core.UriInfo uriInfo)
DataTableResponse
getTableData_Get(java.lang.String tableID, javax.ws.rs.core.UriInfo uriInfo)
DataTableResponse
getTableData_Post(java.lang.String tableID, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> form, javax.ws.rs.core.UriInfo uriInfo)
void
init()
java.util.List<java.lang.String>
searchIdsBy(java.lang.String tableID, java.lang.String columnName, java.lang.String searchValue)
-
Methods inherited from class step.core.deployment.ApplicationServices
getWebPlugins
-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getObjectEnricher, getScheduler, getSession, invalidateSession, setSession
-
-
-
-
Field Detail
-
tableRegistry
protected TableRegistry tableRegistry
-
maxTime
protected int maxTime
-
exportTaskManager
protected ExportTaskManager exportTaskManager
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classAbstractServices
- Throws:
java.lang.Exception
-
destroy
@PreDestroy public void destroy()
-
getTableData_Post
@POST @Path("/{id}/data") @Consumes("application/x-www-form-urlencoded") @Produces("application/json") public DataTableResponse getTableData_Post(@PathParam("id") java.lang.String tableID, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> form, @Context javax.ws.rs.core.UriInfo uriInfo) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getTableData_Get
@GET @Path("/{id}/data") @Produces("application/json") public DataTableResponse getTableData_Get(@PathParam("id") java.lang.String tableID, @Context javax.ws.rs.core.UriInfo uriInfo) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getTableColumnDistinct
@GET @Path("/{id}/column/{column}/distinct") @Produces("application/json") public java.util.List<java.lang.String> getTableColumnDistinct(@PathParam("id") java.lang.String tableID, @PathParam("column") java.lang.String column, @Context javax.ws.rs.core.UriInfo uriInfo) throws java.lang.Exception
- Throws:
java.lang.Exception
-
searchIdsBy
@POST @Path("/{id}/searchIdsBy/{column}") @Produces("application/json") @Consumes("application/json") public java.util.List<java.lang.String> searchIdsBy(@PathParam("id") java.lang.String tableID, @PathParam("column") java.lang.String columnName, java.lang.String searchValue) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createExport
@GET @Path("/{id}/export") @Produces("application/json") public java.lang.String createExport(@PathParam("id") java.lang.String tableID, @Context javax.ws.rs.core.UriInfo uriInfo) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getExport
@GET @Path("/exports/{id}") @Produces("application/json") public ExportTaskManager.ExportStatus getExport(@PathParam("id") java.lang.String reportID) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-