|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertyManager
| Method Summary | |
|---|---|
void |
generateDesEncryptionKey()
|
java.lang.Integer |
getBuildNumber()
This method returns the current build number for Crowd from the datastore. |
long |
getCacheTime()
Deprecated. since 1.0.2 All caching configuration has moved to the crowd-ehcache.xml |
int |
getCurrentLicenseResourceTotal()
|
java.lang.String |
getDeploymentTitle()
|
java.security.Key |
getDesEncryptionKey()
|
java.lang.String |
getDomain()
Will return the Domain property from the datastore or null if the domain has not been set. |
java.lang.String |
getNotificationEmail()
|
java.lang.String |
getProperty(java.lang.String name)
|
long |
getSessionTime()
|
SMTPServer |
getSMTPServer()
|
java.lang.String |
getSMTPTemplate()
|
java.lang.String |
getTokenSeed()
|
java.lang.String |
getTrustedProxyServers()
Retrieves a String that contains a list of proxy servers we trust to correctly set the X-Forwarded-For flag. |
boolean |
isCacheEnabled()
|
boolean |
isGzipEnabled()
|
boolean |
isSecureCookie()
If true, the "Secure" flag is set on the SSO cookie |
boolean |
isUsingDatabaseTokenStorage()
Will return true if the Crowd instance is using database token storage for authentication Token's
otherwise assume we are using in-memory |
void |
removeProperty(java.lang.String name)
Will attempt to remove a property from the datastore |
void |
setBuildNumber(java.lang.Integer buildNumber)
Will set the buildNumber for the current release of Crowd. |
void |
setCacheEnabled(boolean enabled)
|
void |
setCacheTime(long cacheTime)
Deprecated. since 1.0.2 All caching configuration has moved to the crowd-ehcache.xml |
void |
setCurrentLicenseResourceTotal(int total)
|
void |
setDeploymentTitle(java.lang.String title)
|
void |
setDomain(java.lang.String domain)
|
void |
setGzipEnabled(boolean gzip)
|
void |
setNotificationEmail(java.lang.String notificationEmail)
|
void |
setProperty(java.lang.String name,
java.lang.String value)
|
void |
setSecureCookie(boolean secure)
|
void |
setSessionTime(long time)
|
void |
setSMTPServer(SMTPServer server)
|
void |
setSMTPTemplate(java.lang.String template)
|
void |
setTokenSeed(java.lang.String seed)
|
void |
setTrustedProxyServers(java.lang.String proxyServers)
Persists a String containing a list of proxy servers we trust to correctly set the X-Forwarded-For flag. |
void |
setUsingDatabaseTokenStorage(boolean usingDatabaseTokenStorage)
Will set a property to state that this crowd instance is using database token storage, otherwise assume we are using in-memory |
| Method Detail |
|---|
long getCacheTime()
throws PropertyManagerException
PropertyManagerException - if the property cannot be foundvoid setCacheTime(long cacheTime)
cacheTime - the caching time in minutes
PropertyManagerException - if the property cannot be set
java.lang.String getTokenSeed()
throws PropertyManagerException
PropertyManagerExceptionvoid setTokenSeed(java.lang.String seed)
java.lang.String getDeploymentTitle()
throws PropertyManagerException
PropertyManagerExceptionvoid setDeploymentTitle(java.lang.String title)
java.lang.String getDomain()
throws PropertyManagerException
PropertyManagerExceptionvoid setDomain(java.lang.String domain)
boolean isSecureCookie()
throws PropertyManagerException
PropertyManagerExceptionvoid setSecureCookie(boolean secure)
void setCacheEnabled(boolean enabled)
boolean isCacheEnabled()
long getSessionTime()
void setSessionTime(long time)
SMTPServer getSMTPServer()
throws PropertyManagerException
PropertyManagerExceptionvoid setSMTPServer(SMTPServer server)
java.security.Key getDesEncryptionKey()
throws PropertyManagerException
PropertyManagerException
void generateDesEncryptionKey()
throws PropertyManagerException
PropertyManagerExceptionvoid setSMTPTemplate(java.lang.String template)
java.lang.String getSMTPTemplate()
throws PropertyManagerException
PropertyManagerExceptionvoid setCurrentLicenseResourceTotal(int total)
int getCurrentLicenseResourceTotal()
void setNotificationEmail(java.lang.String notificationEmail)
java.lang.String getNotificationEmail()
throws PropertyManagerException
PropertyManagerException
boolean isGzipEnabled()
throws PropertyManagerException
PropertyManagerExceptionvoid setGzipEnabled(boolean gzip)
java.lang.Integer getBuildNumber()
throws PropertyManagerException
BuildUtils.BUILD_NUMBER since this number is for the
current release of Crowd, while the number in the database may still be set to a previous version if the UpgradeManager
has not been run.
PropertyManagerException - if we fail to find the buildNumbervoid setBuildNumber(java.lang.Integer buildNumber)
buildNumber - the buildNumber to set in the database
PropertyManagerException - if we fail to set the build number in the database.
java.lang.String getTrustedProxyServers()
throws PropertyManagerException
TrustedProxyManagerImpl.
PropertyManagerException - If the list of proxy servers could not be found.void setTrustedProxyServers(java.lang.String proxyServers)
TrustedProxyManagerImpl.
PropertyManagerException - If the list of proxy servers could not be saved.
boolean isUsingDatabaseTokenStorage()
throws PropertyManagerException
Token's
otherwise assume we are using in-memory
PropertyManagerExceptionvoid setUsingDatabaseTokenStorage(boolean usingDatabaseTokenStorage)
usingDatabaseTokenStorage - true if you are switching to in-memory token storagevoid removeProperty(java.lang.String name)
name - the name of the Property, ie Property.DOMAIN
java.lang.String getProperty(java.lang.String name)
throws ObjectNotFoundException
ObjectNotFoundException
void setProperty(java.lang.String name,
java.lang.String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||