|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.manager.property.PropertyManagerGeneric
public class PropertyManagerGeneric
| Constructor Summary | |
|---|---|
PropertyManagerGeneric(PropertyDAO propertyDAO)
|
|
| Method Summary | |
|---|---|
void |
generateDesEncryptionKey()
Generates and stores a DES key for DES encoded passwords. |
java.lang.Integer |
getBuildNumber()
This method returns the current build number for Crowd from the datastore. |
long |
getCacheTime()
Returns the cache time in minutes |
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)
Retrieves an arbitrary property by name. |
protected Property |
getPropertyObject(java.lang.String name)
|
long |
getSessionTime()
|
SMTPServer |
getSMTPServer()
|
java.lang.String |
getSMTPTemplate()
Deprecated. |
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()
|
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)
Sets the cache time in minutes |
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)
Sets an arbitrary property. |
void |
setSecureCookie(boolean secure)
|
void |
setSessionTime(long time)
|
void |
setSMTPServer(SMTPServer server)
|
void |
setSMTPTemplate(java.lang.String template)
Deprecated. |
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 usingMemoryTokenStorage)
Will set a property to state that this crowd instance is using database token storage, otherwise assume we are using in-memory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyManagerGeneric(PropertyDAO propertyDAO)
| Method Detail |
|---|
public long getCacheTime()
throws PropertyManagerException
PropertyManager
getCacheTime in interface PropertyManagerPropertyManagerException - if the property cannot be foundpublic void setCacheTime(long cacheTime)
PropertyManager
setCacheTime in interface PropertyManagercacheTime - the caching time in minutes
public java.lang.String getTokenSeed()
throws PropertyManagerException
getTokenSeed in interface PropertyManagerPropertyManagerException - property does not exist.public void setTokenSeed(java.lang.String seed)
setTokenSeed in interface PropertyManagerseed - token seed.
public java.lang.String getDeploymentTitle()
throws PropertyManagerException
getDeploymentTitle in interface PropertyManagerPropertyManagerException - property does not exist.public void setDeploymentTitle(java.lang.String title)
setDeploymentTitle in interface PropertyManagertitle - deployment title.
public java.lang.String getDomain()
throws PropertyManagerException
PropertyManager
getDomain in interface PropertyManagerPropertyManagerException - property does not exist.public void setDomain(java.lang.String domain)
setDomain in interface PropertyManagerdomain - SSO cookie domain.public boolean isSecureCookie()
isSecureCookie in interface PropertyManagertrue if the "secure" flag should be set on the SSO cookie.public void setSecureCookie(boolean secure)
setSecureCookie in interface PropertyManagersecure - true if the "secure" flag should be set on the SSO cookie.public void setCacheEnabled(boolean enabled)
setCacheEnabled in interface PropertyManagerenabled - true if application authorisation caching should be used on the server-side.public boolean isCacheEnabled()
isCacheEnabled in interface PropertyManagertrue if application authorisation caching is used on the server-side.public long getSessionTime()
getSessionTime in interface PropertyManagerpublic void setSessionTime(long time)
setSessionTime in interface PropertyManagertime - number of minutes the session is valid.
public SMTPServer getSMTPServer()
throws PropertyManagerException
getSMTPServer in interface PropertyManagerPropertyManagerException - property does not exist.public void setSMTPServer(SMTPServer server)
setSMTPServer in interface PropertyManagerserver - SMTP server config.
public java.security.Key getDesEncryptionKey()
throws PropertyManagerException
getDesEncryptionKey in interface PropertyManagerPropertyManagerException - property does not exist.
public void generateDesEncryptionKey()
throws PropertyManagerException
PropertyManager
generateDesEncryptionKey in interface PropertyManagerPropertyManagerException - DES algorithm does not exist.@Deprecated public void setSMTPTemplate(java.lang.String template)
setSMTPTemplate in interface PropertyManagertemplate - mail template.
@Deprecated
public java.lang.String getSMTPTemplate()
throws PropertyManagerException
getSMTPTemplate in interface PropertyManagerPropertyManagerException - property does not exist.public void setCurrentLicenseResourceTotal(int total)
setCurrentLicenseResourceTotal in interface PropertyManagertotal - license resource total.public int getCurrentLicenseResourceTotal()
getCurrentLicenseResourceTotal in interface PropertyManagerpublic void setNotificationEmail(java.lang.String notificationEmail)
setNotificationEmail in interface PropertyManagernotificationEmail - notification email.
public java.lang.String getNotificationEmail()
throws PropertyManagerException
getNotificationEmail in interface PropertyManagerPropertyManagerException - property does not exist.
public boolean isGzipEnabled()
throws PropertyManagerException
isGzipEnabled in interface PropertyManagertrue if GZip compression should be used.
PropertyManagerException - property does not exist.public void setGzipEnabled(boolean gzip)
setGzipEnabled in interface PropertyManagergzip - true if GZip compression should be used.
public java.lang.Integer getBuildNumber()
throws PropertyManagerException
PropertyManagerBuildUtils.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.
getBuildNumber in interface PropertyManagerPropertyManagerException - if we fail to find the buildNumberpublic void setBuildNumber(java.lang.Integer buildNumber)
PropertyManager
setBuildNumber in interface PropertyManagerbuildNumber - the buildNumber to set in the database
public java.lang.String getTrustedProxyServers()
throws PropertyManagerException
TrustedProxyManagerImpl.
getTrustedProxyServers in interface PropertyManagerPropertyManagerException - If the list of proxy servers could not be found.public void setTrustedProxyServers(java.lang.String proxyServers)
TrustedProxyManagerImpl.
setTrustedProxyServers in interface PropertyManagerproxyServers - proxy servers.
org.springframework.dao.DataAccessException - If the list of proxy servers could not be saved.
public boolean isUsingDatabaseTokenStorage()
throws PropertyManagerException
PropertyManagerToken's
otherwise assume we are using in-memory
isUsingDatabaseTokenStorage in interface PropertyManagerPropertyManagerException - property does not exist.public void setUsingDatabaseTokenStorage(boolean usingMemoryTokenStorage)
PropertyManager
setUsingDatabaseTokenStorage in interface PropertyManagerusingMemoryTokenStorage - true if you are switching to in-memory token storagepublic void removeProperty(java.lang.String name)
PropertyManager
removeProperty in interface PropertyManagername - the name of the property.
protected Property getPropertyObject(java.lang.String name)
throws ObjectNotFoundException
ObjectNotFoundException
public java.lang.String getProperty(java.lang.String name)
throws ObjectNotFoundException
PropertyManager
getProperty in interface PropertyManagername - name of property.
ObjectNotFoundException - property does not exist.
public void setProperty(java.lang.String name,
java.lang.String value)
PropertyManager
setProperty in interface PropertyManagername - name of property.value - value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||