implement UserClientHandler and GroupClientHandler

This commit is contained in:
Sebastian Sdorra
2011-05-13 17:57:30 +02:00
parent 2bd3929110
commit 95c3f0c4eb
3 changed files with 88 additions and 102 deletions

View File

@@ -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 ----------------------------------------------------------
/**