mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
added missing config resource to UrlProvider
This commit is contained in:
@@ -50,6 +50,9 @@ public class RestUrlProvider implements UrlProvider
|
||||
/** Field description */
|
||||
public static final String PART_AUTHENTICATION = "authentication/login";
|
||||
|
||||
/** Field description */
|
||||
public static final String PART_CONFIG = "config";
|
||||
|
||||
/** Field description */
|
||||
public static final String PART_GROUP = "groups";
|
||||
|
||||
@@ -88,7 +91,19 @@ public class RestUrlProvider implements UrlProvider
|
||||
@Override
|
||||
public String getAuthenticationUrl()
|
||||
{
|
||||
return HttpUtil.append(baseUrl, PART_AUTHENTICATION);
|
||||
return HttpUtil.append(baseUrl, PART_AUTHENTICATION).concat(extension);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public String getConfigUrl()
|
||||
{
|
||||
return HttpUtil.append(baseUrl, PART_CONFIG).concat(extension);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -124,7 +139,7 @@ public class RestUrlProvider implements UrlProvider
|
||||
@Override
|
||||
public String getStateUrl()
|
||||
{
|
||||
return HttpUtil.append(baseUrl, PART_STATE);
|
||||
return HttpUtil.append(baseUrl, PART_STATE).concat(extension);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -48,6 +48,14 @@ public interface UrlProvider
|
||||
*/
|
||||
public String getAuthenticationUrl();
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getConfigUrl();
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
|
||||
@@ -44,6 +44,9 @@ import sonia.scm.util.HttpUtil;
|
||||
public class WUIUrlProvider implements UrlProvider
|
||||
{
|
||||
|
||||
/** Field description */
|
||||
public static final String COMPONENT_CONFIG = "scmConfig";
|
||||
|
||||
/** Field description */
|
||||
public static final String COMPONENT_GROUP = "groupPanel";
|
||||
|
||||
@@ -85,6 +88,18 @@ public class WUIUrlProvider implements UrlProvider
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public String getConfigUrl()
|
||||
{
|
||||
return HttpUtil.appendHash(baseUrl, COMPONENT_CONFIG);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user