mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
added javadoc
This commit is contained in:
@@ -67,6 +67,7 @@ import sonia.scm.repository.RepositoryNotFoundException;
|
|||||||
import sonia.scm.util.AssertUtil;
|
import sonia.scm.util.AssertUtil;
|
||||||
import sonia.scm.util.HttpUtil;
|
import sonia.scm.util.HttpUtil;
|
||||||
import sonia.scm.util.SecurityUtil;
|
import sonia.scm.util.SecurityUtil;
|
||||||
|
import sonia.scm.util.Util;
|
||||||
import sonia.scm.web.security.WebSecurityContext;
|
import sonia.scm.web.security.WebSecurityContext;
|
||||||
|
|
||||||
//~--- JDK imports ------------------------------------------------------------
|
//~--- JDK imports ------------------------------------------------------------
|
||||||
@@ -422,7 +423,7 @@ public class RepositoryResource
|
|||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* @param id the id of the repository
|
* @param id the id of the repository
|
||||||
* @param path
|
* @param path path of a file
|
||||||
* @param start the start value for paging
|
* @param start the start value for paging
|
||||||
* @param limit the limit value for paging
|
* @param limit the limit value for paging
|
||||||
*
|
*
|
||||||
@@ -435,8 +436,9 @@ public class RepositoryResource
|
|||||||
@Path("{id}/changesets")
|
@Path("{id}/changesets")
|
||||||
@TypeHint(ChangesetPagingResult.class)
|
@TypeHint(ChangesetPagingResult.class)
|
||||||
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
|
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
|
||||||
public Response getChangesets(@PathParam("id") String id, @DefaultValue("")
|
public Response getChangesets(@PathParam("id") String id,
|
||||||
@QueryParam("path") String path, @DefaultValue("0")
|
@QueryParam("path") String path,
|
||||||
|
@DefaultValue("0")
|
||||||
@QueryParam("start") int start, @DefaultValue("20")
|
@QueryParam("start") int start, @DefaultValue("20")
|
||||||
@QueryParam("limit") int limit) throws RepositoryException, IOException
|
@QueryParam("limit") int limit) throws RepositoryException, IOException
|
||||||
{
|
{
|
||||||
@@ -444,9 +446,9 @@ public class RepositoryResource
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ChangesetPagingResult changesets;
|
ChangesetPagingResult changesets = null;
|
||||||
|
|
||||||
if ("".equals(path))
|
if (Util.isNotEmpty(path))
|
||||||
{
|
{
|
||||||
changesets = changesetViewerUtil.getChangesets(id, start, limit);
|
changesets = changesetViewerUtil.getChangesets(id, start, limit);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user