|
||||||||||
| 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
| Field Summary | |
|---|---|
static java.lang.String |
CROWD_PROPERTY_KEY
|
| Constructor Summary | |
|---|---|
PropertyManagerGeneric(PropertyDAO propertyDAO)
|
|
| Method Summary | |
|---|---|
void |
generateDesEncryptionKey()
|
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)
|
protected Property |
getPropertyObject(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)
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)
|
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 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 |
| Field Detail |
|---|
public static final java.lang.String CROWD_PROPERTY_KEY
| 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 PropertyManagerPropertyManagerExceptionpublic void setTokenSeed(java.lang.String seed)
setTokenSeed in interface PropertyManager
public java.lang.String getDeploymentTitle()
throws PropertyManagerException
getDeploymentTitle in interface PropertyManagerPropertyManagerExceptionpublic void setDeploymentTitle(java.lang.String title)
setDeploymentTitle in interface PropertyManager
public java.lang.String getDomain()
throws PropertyManagerException
PropertyManager
getDomain in interface PropertyManagerPropertyManagerExceptionpublic void setDomain(java.lang.String domain)
setDomain in interface PropertyManagerpublic boolean isSecureCookie()
PropertyManager
isSecureCookie in interface PropertyManagerpublic void setSecureCookie(boolean secure)
setSecureCookie in interface PropertyManagerpublic void setCacheEnabled(boolean enabled)
setCacheEnabled in interface PropertyManagerpublic boolean isCacheEnabled()
isCacheEnabled in interface PropertyManagerpublic long getSessionTime()
getSessionTime in interface PropertyManagerpublic void setSessionTime(long time)
setSessionTime in interface PropertyManager
public SMTPServer getSMTPServer()
throws PropertyManagerException
getSMTPServer in interface PropertyManagerPropertyManagerExceptionpublic void setSMTPServer(SMTPServer server)
setSMTPServer in interface PropertyManager
public java.security.Key getDesEncryptionKey()
throws PropertyManagerException
getDesEncryptionKey in interface PropertyManagerPropertyManagerException
public void generateDesEncryptionKey()
throws PropertyManagerException
generateDesEncryptionKey in interface PropertyManagerPropertyManagerExceptionpublic void setSMTPTemplate(java.lang.String template)
setSMTPTemplate in interface PropertyManager
public java.lang.String getSMTPTemplate()
throws PropertyManagerException
getSMTPTemplate in interface PropertyManagerPropertyManagerExceptionpublic void setCurrentLicenseResourceTotal(int total)
setCurrentLicenseResourceTotal in interface PropertyManagerpublic int getCurrentLicenseResourceTotal()
getCurrentLicenseResourceTotal in interface PropertyManagerpublic void setNotificationEmail(java.lang.String notificationEmail)
setNotificationEmail in interface PropertyManager
public java.lang.String getNotificationEmail()
throws PropertyManagerException
getNotificationEmail in interface PropertyManagerPropertyManagerException
public boolean isGzipEnabled()
throws PropertyManagerException
isGzipEnabled in interface PropertyManagerPropertyManagerExceptionpublic void setGzipEnabled(boolean gzip)
setGzipEnabled in interface PropertyManager
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 PropertyManagerorg.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 PropertyManagerPropertyManagerExceptionpublic 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, ie Property.DOMAIN
protected Property getPropertyObject(java.lang.String name)
throws ObjectNotFoundException
ObjectNotFoundException
public java.lang.String getProperty(java.lang.String name)
throws ObjectNotFoundException
getProperty in interface PropertyManagerObjectNotFoundException
public void setProperty(java.lang.String name,
java.lang.String value)
setProperty in interface PropertyManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||