Class StreamResource
java.lang.Object
com.atlassian.confluence.plugins.edgeindex.rest.StreamResource
-
Constructor Summary
ConstructorsConstructorDescriptionStreamResource
(com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, EdgeQueries edgeQueries, EdgeTypeRepository edgeTypeRepository, StreamItemFactory streamItemFactory) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
getMostPopular
(Long days, Integer pageSizeQueryParam, boolean excerpt, boolean thumbnails, String nextPageOffset, boolean debug, Float followeeEdge, Float commentCreateEdge, Float likeCreateEdge, Float timeDecayBase, String urlStrategy, String edgeTypes)
-
Constructor Details
-
StreamResource
@Inject public StreamResource(com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, EdgeQueries edgeQueries, EdgeTypeRepository edgeTypeRepository, StreamItemFactory streamItemFactory)
-
-
Method Details
-
getMostPopular
@GET @Path("/content") @Consumes({"application/json","application/x-www-form-urlencoded"}) @Produces("application/json") public javax.ws.rs.core.Response getMostPopular(@QueryParam("days") Long days, @QueryParam("pageSize") Integer pageSizeQueryParam, @QueryParam("excerpt") @DefaultValue("false") boolean excerpt, @QueryParam("thumbnails") @DefaultValue("false") boolean thumbnails, @QueryParam("nextPageOffset") String nextPageOffset, @QueryParam("debug") @DefaultValue("false") boolean debug, @QueryParam("followeeEdge") Float followeeEdge, @QueryParam("commentCreateEdge") Float commentCreateEdge, @QueryParam("likeCreateEdge") Float likeCreateEdge, @QueryParam("timeDecayBase") Float timeDecayBase, @QueryParam("urlStrategy") @DefaultValue("desktop") String urlStrategy, @QueryParam("edgeTypes") String edgeTypes)
-