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() |
int |
getLoginAttemptLimit()
Returns maximum allowed login attempts.
|
long |
getLoginAttemptLimitTimeout()
Returns the timeout in seconds for users which are temporary disabled,
because of too many failed login attempts.
|
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 |
getRealmDescription()
Returns the realm 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 |
isEnabledXsrfProtection()
Returns
true if the cookie xsrf protection is enabled. |
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.
|
boolean |
isLoginAttemptLimitEnabled()
Returns true if the login attempt limit is enabled.
|
boolean |
isSkipFailedAuthenticators()
Returns true if failed authenticators are skipped.
|
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)
Sets the date format for the ui.
|
void |
setDisableGroupingGrid(boolean disableGroupingGrid)
Method description
|
void |
setEnabledXsrfProtection(boolean enabledXsrfProtection)
Set
true to enable xsrf cookie protection. |
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 |
setLoginAttemptLimit(int loginAttemptLimit)
Set maximum allowed login attempts.
|
void |
setLoginAttemptLimitTimeout(long loginAttemptLimitTimeout)
Sets the timeout in seconds for users which are temporary disabled,
because of too many failed login attempts.
|
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 |
setRealmDescription(String realmDescription)
Sets the realm description.
|
void |
setServername(String servername)
Deprecated.
|
void |
setSkipFailedAuthenticators(boolean skipFailedAuthenticators)
If set to true the authentication chain is not stopped, if an
authenticator finds the user but fails to authenticate the user.
|
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)
ConfigChangedListener
addListener
in interface ListenerSupport<ConfigChangedListener<ScmConfiguration>>
listener
- public void addListeners(Collection<ConfigChangedListener<ScmConfiguration>> listeners)
Collection
of ConfigChangedListener
addListeners
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()
@Deprecated public int getForwardPort()
getBaseUrl()
public int getLoginAttemptLimit()
public long getLoginAttemptLimitTimeout()
public String getPluginUrl()
public Set<String> getProxyExcludes()
public String getProxyPassword()
public int getProxyPort()
public String getProxyServer()
public String getProxyUser()
public String getRealmDescription()
public String getServername()
getBaseUrl()
@Deprecated public int getSslPort()
getBaseUrl()
and isForceBaseUrl()
public boolean isAnonymousAccessEnabled()
public boolean isDisableGroupingGrid()
public boolean isEnabledXsrfProtection()
true
if the cookie xsrf protection is enabled.true
if the cookie xsrf protection is enabled@Deprecated public boolean isEnablePortForward()
getBaseUrl()
public boolean isEnableProxy()
public boolean isEnableRepositoryArchive()
@Deprecated public boolean isEnableSSL()
getBaseUrl()
and isForceBaseUrl()
public boolean isForceBaseUrl()
public boolean isLoginAttemptLimitEnabled()
public boolean isSkipFailedAuthenticators()
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
- date format for uipublic 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 setLoginAttemptLimit(int loginAttemptLimit)
loginAttemptLimit
- login attempt limitpublic void setLoginAttemptLimitTimeout(long loginAttemptLimitTimeout)
loginAttemptLimitTimeout
- login attempt timeout in secondspublic 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 setRealmDescription(String realmDescription)
realmDescription
- public void setServername(String servername)
setBaseUrl(String)
servername
- public void setSkipFailedAuthenticators(boolean skipFailedAuthenticators)
skipFailedAuthenticators
- true to skip failed authenticators@Deprecated public void setSslPort(int sslPort)
setBaseUrl(String)
and setForceBaseUrl(boolean)
sslPort
- public void setEnabledXsrfProtection(boolean enabledXsrfProtection)
true
to enable xsrf cookie protection.enabledXsrfProtection
- true
to enable xsrf protectionCopyright © 2018. All Rights Reserved.