mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
implement client repository methods
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user