|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.manager.property.PropertyManagerGeneric
public class PropertyManagerGeneric
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()
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()
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)
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 PropertyManager
PropertyManagerException
- if the property cannot be foundpublic void setCacheTime(long cacheTime)
PropertyManager
setCacheTime
in interface PropertyManager
cacheTime
- the caching time in minutespublic java.lang.String getTokenSeed() throws PropertyManagerException
getTokenSeed
in interface PropertyManager
PropertyManagerException
public void setTokenSeed(java.lang.String seed)
setTokenSeed
in interface PropertyManager
public java.lang.String getDeploymentTitle() throws PropertyManagerException
getDeploymentTitle
in interface PropertyManager
PropertyManagerException
public void setDeploymentTitle(java.lang.String title)
setDeploymentTitle
in interface PropertyManager
public java.lang.String getDomain() throws PropertyManagerException
PropertyManager
getDomain
in interface PropertyManager
PropertyManagerException
public void setDomain(java.lang.String domain)
setDomain
in interface PropertyManager
public boolean isSecureCookie()
PropertyManager
isSecureCookie
in interface PropertyManager
public void setSecureCookie(boolean secure)
setSecureCookie
in interface PropertyManager
public void setCacheEnabled(boolean enabled)
setCacheEnabled
in interface PropertyManager
public boolean isCacheEnabled()
isCacheEnabled
in interface PropertyManager
public long getSessionTime()
getSessionTime
in interface PropertyManager
public void setSessionTime(long time)
setSessionTime
in interface PropertyManager
public SMTPServer getSMTPServer() throws PropertyManagerException
getSMTPServer
in interface PropertyManager
PropertyManagerException
public void setSMTPServer(SMTPServer server)
setSMTPServer
in interface PropertyManager
public java.security.Key getDesEncryptionKey() throws PropertyManagerException
getDesEncryptionKey
in interface PropertyManager
PropertyManagerException
public void generateDesEncryptionKey() throws PropertyManagerException
generateDesEncryptionKey
in interface PropertyManager
PropertyManagerException
@Deprecated public void setSMTPTemplate(java.lang.String template)
setSMTPTemplate
in interface PropertyManager
@Deprecated public java.lang.String getSMTPTemplate() throws PropertyManagerException
getSMTPTemplate
in interface PropertyManager
PropertyManagerException
public void setCurrentLicenseResourceTotal(int total)
setCurrentLicenseResourceTotal
in interface PropertyManager
public int getCurrentLicenseResourceTotal()
getCurrentLicenseResourceTotal
in interface PropertyManager
public void setNotificationEmail(java.lang.String notificationEmail)
setNotificationEmail
in interface PropertyManager
public java.lang.String getNotificationEmail() throws PropertyManagerException
getNotificationEmail
in interface PropertyManager
PropertyManagerException
public boolean isGzipEnabled() throws PropertyManagerException
isGzipEnabled
in interface PropertyManager
PropertyManagerException
public void setGzipEnabled(boolean gzip)
setGzipEnabled
in interface PropertyManager
public java.lang.Integer getBuildNumber() throws PropertyManagerException
PropertyManager
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.
getBuildNumber
in interface PropertyManager
PropertyManagerException
- if we fail to find the buildNumberpublic void setBuildNumber(java.lang.Integer buildNumber)
PropertyManager
setBuildNumber
in interface PropertyManager
buildNumber
- the buildNumber to set in the databasepublic java.lang.String getTrustedProxyServers() throws PropertyManagerException
TrustedProxyManagerImpl
.
getTrustedProxyServers
in interface PropertyManager
PropertyManagerException
- If the list of proxy servers could not be found.public void setTrustedProxyServers(java.lang.String proxyServers)
TrustedProxyManagerImpl
.
setTrustedProxyServers
in interface PropertyManager
org.springframework.dao.DataAccessException
- If the list of proxy servers could not be saved.public boolean isUsingDatabaseTokenStorage() throws PropertyManagerException
PropertyManager
Token
's
otherwise assume we are using in-memory
isUsingDatabaseTokenStorage
in interface PropertyManager
PropertyManagerException
public void setUsingDatabaseTokenStorage(boolean usingMemoryTokenStorage)
PropertyManager
setUsingDatabaseTokenStorage
in interface PropertyManager
usingMemoryTokenStorage
- true if you are switching to in-memory token storagepublic void removeProperty(java.lang.String name)
PropertyManager
removeProperty
in interface PropertyManager
name
- 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 PropertyManager
ObjectNotFoundException
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 |