implement client repository methods

This commit is contained in:
Sebastian Sdorra
2011-05-10 17:00:05 +02:00
parent 2b31cf9309
commit 01ba5983f1
5 changed files with 403 additions and 3 deletions

View File

@@ -46,6 +46,12 @@ public class ScmUrlProvider
/** Field description */
public static final String URLPART_AUTHENTICATION = "authentication/login";
/** Field description */
public static final String URLPART_REPOSITORIES = "repositories";
/** Field description */
public static final String URLPART_REPOSITORY = "repositories/";
//~--- constructors ---------------------------------------------------------
/**
@@ -101,6 +107,30 @@ public class ScmUrlProvider
return extension;
}
/**
* Method description
*
*
* @return
*/
public String getRepositoriesUrl()
{
return getResourceUrl(URLPART_REPOSITORIES);
}
/**
* Method description
*
*
* @param id
*
* @return
*/
public String getRepositoryUrl(String id)
{
return getResourceUrl(URLPART_REPOSITORY.concat(id));
}
/**
* Method description
*