mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
implement UserClientHandler and GroupClientHandler
This commit is contained in:
@@ -55,12 +55,24 @@ public class ScmUrlProvider
|
||||
public static final String URLPART_AUTHENTICATION_LOGIN =
|
||||
"authentication/login";
|
||||
|
||||
/** Field description */
|
||||
public static final String URLPART_GROUP = "groups/";
|
||||
|
||||
/** Field description */
|
||||
public static final String URLPART_GROUPS = "groups";
|
||||
|
||||
/** Field description */
|
||||
public static final String URLPART_REPOSITORIES = "repositories";
|
||||
|
||||
/** Field description */
|
||||
public static final String URLPART_REPOSITORY = "repositories/";
|
||||
|
||||
/** Field description */
|
||||
public static final String URLPART_USER = "users/";
|
||||
|
||||
/** Field description */
|
||||
public static final String URLPART_USERS = "users";
|
||||
|
||||
/** the logger for classVar */
|
||||
private static final Logger logger =
|
||||
LoggerFactory.getLogger(ScmUrlProvider.class);
|
||||
@@ -136,6 +148,30 @@ public class ScmUrlProvider
|
||||
return extension;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param name
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getGroupUrl(String name)
|
||||
{
|
||||
return getResourceUrl(URLPART_GROUP.concat(name));
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getGroupsUrl()
|
||||
{
|
||||
return getResourceUrl(URLPART_GROUPS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
@@ -180,6 +216,30 @@ public class ScmUrlProvider
|
||||
return resourceUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param name
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getUserUrl(String name)
|
||||
{
|
||||
return getResourceUrl(URLPART_USER.concat(name));
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getUsersUrl()
|
||||
{
|
||||
return getResourceUrl(URLPART_USERS);
|
||||
}
|
||||
|
||||
//~--- set methods ----------------------------------------------------------
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user