
public class ScmConfiguration extends Object implements ListenerSupport<ConfigChangedListener<ScmConfiguration>>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DATEFORMAT
Default JavaScript date format
|
static String |
DEFAULT_PLUGINURL
Default plugin url
|
static String |
OLD_PLUGINURL
Default plugin url from version 1.0
|
static String |
PATH
Path to the configuration file
|
| Constructor and Description |
|---|
ScmConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ConfigChangedListener<ScmConfiguration> listener)
Register a
ConfigChangedListener |
void |
addListeners(Collection<ConfigChangedListener<ScmConfiguration>> listeners)
Register a
Collection of ConfigChangedListener |
void |
fireChangeEvent()
Calls the
ConfigChangedListener.configChanged(Object)
method of all registered listeners. |
Set<String> |
getAdminGroups()
Returns a set of admin group names.
|
Set<String> |
getAdminUsers()
Returns a set of admin user names.
|
String |
getBaseUrl()
Returns the complete base url of the scm-manager including the context path.
|
String |
getDateFormat()
Returns the date format for the user interface.
|
int |
getForwardPort()
Deprecated.
use
getBaseUrl() |
String |
getPluginUrl()
Returns the url of the plugin repository.
|
Set<String> |
getProxyExcludes()
Returns a set of glob patterns for urls which should excluded from
proxy settings.
|
String |
getProxyPassword()
Method description
|
int |
getProxyPort()
Returns the proxy port.
|
String |
getProxyServer()
Returns the servername or ip of the proxyserver.
|
String |
getProxyUser()
Method description
|
String |
getServername()
Deprecated.
use
getBaseUrl() |
int |
getSslPort()
Deprecated.
use
getBaseUrl() and isForceBaseUrl() |
boolean |
isAnonymousAccessEnabled()
Returns true if the anonymous access to the SCM-Manager is enabled.
|
boolean |
isDisableGroupingGrid()
Method description
|
boolean |
isEnablePortForward()
Deprecated.
use
getBaseUrl() |
boolean |
isEnableProxy()
Returns true if proxy is enabled.
|
boolean |
isEnableRepositoryArchive()
Returns true if the repository archive is enabled.
|
boolean |
isEnableSSL()
Deprecated.
use
getBaseUrl() and isForceBaseUrl() |
boolean |
isForceBaseUrl()
Returns true if force base url is enabled.
|
void |
load(ScmConfiguration other)
Load all properties from another
ScmConfiguration object. |
void |
removeListener(ConfigChangedListener listener)
Unregister a listener object.
|
void |
setAdminGroups(Set<String> adminGroups)
Method description
|
void |
setAdminUsers(Set<String> adminUsers)
Method description
|
void |
setAnonymousAccessEnabled(boolean anonymousAccessEnabled)
Method description
|
void |
setBaseUrl(String baseUrl)
Method description
|
void |
setDateFormat(String dateFormat)
Method description
|
void |
setDisableGroupingGrid(boolean disableGroupingGrid)
Method description
|
void |
setEnablePortForward(boolean enablePortForward)
Deprecated.
|
void |
setEnableProxy(boolean enableProxy)
Method description
|
void |
setEnableRepositoryArchive(boolean enableRepositoryArchive)
Enable or disable the repository archive.
|
void |
setEnableSSL(boolean enableSSL)
Deprecated.
use
setBaseUrl(String) and {$link #setForceBaseUrl(boolean)} |
void |
setForceBaseUrl(boolean forceBaseUrl)
Method description
|
void |
setForwardPort(int forwardPort)
Deprecated.
|
void |
setPluginUrl(String pluginUrl)
Method description
|
void |
setProxyExcludes(Set<String> proxyExcludes)
Set glob patterns for urls which are should be excluded from proxy
settings.
|
void |
setProxyPassword(String proxyPassword)
Method description
|
void |
setProxyPort(int proxyPort)
Method description
|
void |
setProxyServer(String proxyServer)
Method description
|
void |
setProxyUser(String proxyUser)
Method description
|
void |
setServername(String servername)
Deprecated.
|
void |
setSslPort(int sslPort)
Deprecated.
|
public static final String DEFAULT_DATEFORMAT
public static final String DEFAULT_PLUGINURL
public static final String OLD_PLUGINURL
public static final String PATH
public void addListener(ConfigChangedListener<ScmConfiguration> listener)
ConfigChangedListeneraddListener in interface ListenerSupport<ConfigChangedListener<ScmConfiguration>>listener - public void addListeners(Collection<ConfigChangedListener<ScmConfiguration>> listeners)
Collection of ConfigChangedListeneraddListeners in interface ListenerSupport<ConfigChangedListener<ScmConfiguration>>listeners - public void fireChangeEvent()
ConfigChangedListener.configChanged(Object)
method of all registered listeners.public void load(ScmConfiguration other)
ScmConfiguration object.other - public void removeListener(ConfigChangedListener listener)
removeListener in interface ListenerSupport<ConfigChangedListener<ScmConfiguration>>listener - public Set<String> getAdminGroups()
public Set<String> getAdminUsers()
public String getBaseUrl()
public String getDateFormat()
http://jacwright.com/projects/javascript/date_format.@Deprecated public int getForwardPort()
getBaseUrl()public String getPluginUrl()
public Set<String> getProxyExcludes()
public String getProxyPassword()
public int getProxyPort()
public String getProxyServer()
public String getProxyUser()
public String getServername()
getBaseUrl()@Deprecated public int getSslPort()
public boolean isAnonymousAccessEnabled()
public boolean isDisableGroupingGrid()
@Deprecated public boolean isEnablePortForward()
getBaseUrl()public boolean isEnableProxy()
public boolean isEnableRepositoryArchive()
@Deprecated public boolean isEnableSSL()
public boolean isForceBaseUrl()
public void setAdminGroups(Set<String> adminGroups)
adminGroups - public void setAdminUsers(Set<String> adminUsers)
adminUsers - public void setAnonymousAccessEnabled(boolean anonymousAccessEnabled)
anonymousAccessEnabled - public void setBaseUrl(String baseUrl)
baseUrl - public void setDateFormat(String dateFormat)
dateFormat - public void setDisableGroupingGrid(boolean disableGroupingGrid)
disableGroupingGrid - @Deprecated public void setEnablePortForward(boolean enablePortForward)
setBaseUrl(String)enablePortForward - public void setEnableProxy(boolean enableProxy)
enableProxy - public void setEnableRepositoryArchive(boolean enableRepositoryArchive)
enableRepositoryArchive - true to disable the repository archive@Deprecated public void setEnableSSL(boolean enableSSL)
setBaseUrl(String) and {$link #setForceBaseUrl(boolean)}enableSSL - public void setForceBaseUrl(boolean forceBaseUrl)
forceBaseUrl - @Deprecated public void setForwardPort(int forwardPort)
setBaseUrl(String)forwardPort - public void setPluginUrl(String pluginUrl)
pluginUrl - public void setProxyExcludes(Set<String> proxyExcludes)
proxyExcludes - glob patternspublic void setProxyPassword(String proxyPassword)
proxyPassword - public void setProxyPort(int proxyPort)
proxyPort - public void setProxyServer(String proxyServer)
proxyServer - public void setProxyUser(String proxyUser)
proxyUser - public void setServername(String servername)
setBaseUrl(String)servername - @Deprecated public void setSslPort(int sslPort)
sslPort - Copyright © 2013. All Rights Reserved.