com.j2biz.blogunity.pojo
Class SystemConfiguration

java.lang.Object
  extended bycom.j2biz.blogunity.pojo.SystemConfiguration
All Implemented Interfaces:
Serializable

public class SystemConfiguration
extends Object
implements Serializable

Since:
0.1
Author:
michelson
See Also:
Serialized Form

Constructor Summary
SystemConfiguration()
           
 
Method Summary
 boolean getAllowNewUsers()
           
 File getBlogsDirectory()
          Returns the directory where all blog-specific resources are saved.
 String getDataDir()
           
 String getDateFormat()
           
 String getDatetimeFormat()
           
 BlogSettings getDefaultBlogSettings()
           
 UserSettings getDefaultUserSettings()
           
 Long getId()
           
 int getPasswordEncryptionType()
           
 boolean getRankingOn()
           
 String getSiteDescription()
           
 String getSiteKeywords()
           
 String getSiteTitle()
           
 String getSmtpHost()
           
 String getSmtpPassword()
           
 String getSmtpSenderName()
           
 String getSmtpUser()
           
 Locale getSystemLocale()
           
 String getTempDir()
          Gets the absolute path to the temporary directory, where temporary data (e.g. file-uploads) will be saved.
 String getTimeFormat()
           
 File getUsersDirectory()
          Returns the directory where all user-specific resources are saved.
 boolean getValidateNewUsers()
           
 String getVelocityProperties()
           
 InputStream getVelocityPropertiesAsStream()
           
 boolean isAllowNewUsers()
           
 boolean isRankingOn()
           
 boolean isValidateNewUsers()
           
 void setAllowNewUsers(boolean allowNewUsers)
           
 void setDataDir(String dataDir)
           
 void setDateFormat(String dateFormat)
           
 void setDatetimeFormat(String datetimeFormat)
           
 void setDefaultBlogSettings(BlogSettings defaultBlogSettings)
           
 void setDefaultUserSettings(UserSettings defaultUserSettings)
           
 void setId(Long id)
           
 void setPasswordEncryptionType(int passwordEncryptionType)
           
 void setRankingOn(boolean rankingOn)
           
 void setSiteDescription(String siteDescription)
           
 void setSiteKeywords(String siteKeywords)
           
 void setSiteTitle(String siteTitle)
           
 void setSmtpHost(String smtpHost)
           
 void setSmtpPassword(String smtpPassword)
           
 void setSmtpSenderName(String smtpSenderName)
           
 void setSmtpUser(String smtpUser)
           
 void setSystemLocale(Locale systemLocale)
           
 void setTempDir(String tempDir)
          Set the absolute path to the temporary directory, where temporary data (e.g. file-uploads) will be saved.
 void setTimeFormat(String timeFormat)
           
 void setValidateNewUsers(boolean validateNewUsers)
           
 void setVelocityProperties(String velocityProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemConfiguration

public SystemConfiguration()
Method Detail

getDefaultBlogSettings

public BlogSettings getDefaultBlogSettings()
Returns:

setDefaultBlogSettings

public void setDefaultBlogSettings(BlogSettings defaultBlogSettings)
Parameters:
defaultBlogSettings -

getDefaultUserSettings

public UserSettings getDefaultUserSettings()
Returns:

setDefaultUserSettings

public void setDefaultUserSettings(UserSettings defaultUserSettings)
Parameters:
defaultUserSettings -

getPasswordEncryptionType

public int getPasswordEncryptionType()
Returns:

setPasswordEncryptionType

public void setPasswordEncryptionType(int passwordEncryptionType)
Parameters:
passwordEncryptionType -

getSmtpHost

public String getSmtpHost()
Returns:

setSmtpHost

public void setSmtpHost(String smtpHost)

getSmtpPassword

public String getSmtpPassword()
Returns:

setSmtpPassword

public void setSmtpPassword(String smtpPassword)

getSmtpUser

public String getSmtpUser()
Returns:

setSmtpUser

public void setSmtpUser(String smtpUser)

getSmtpSenderName

public String getSmtpSenderName()
Returns:
string

setSmtpSenderName

public void setSmtpSenderName(String smtpSenderName)

getSystemLocale

public Locale getSystemLocale()
Returns:
Returns the value of the system's locale.

setSystemLocale

public void setSystemLocale(Locale systemLocale)
Parameters:
systemLocale -

getAllowNewUsers

public boolean getAllowNewUsers()
Returns:
boolean

isAllowNewUsers

public boolean isAllowNewUsers()
Returns:
Returns the allowNewUsers.

setAllowNewUsers

public void setAllowNewUsers(boolean allowNewUsers)
Parameters:
allowNewUsers - The allowNewUsers to set.

getDataDir

public String getDataDir()
Returns:
Returns the dataDir.

setDataDir

public void setDataDir(String dataDir)
Parameters:
dataDir - The dataDir to set.

getTempDir

public String getTempDir()
Gets the absolute path to the temporary directory, where temporary data (e.g. file-uploads) will be saved.

Returns:
returns the absolute path to the temporary directory.

setTempDir

public void setTempDir(String tempDir)
Set the absolute path to the temporary directory, where temporary data (e.g. file-uploads) will be saved.

Parameters:
tempDir - is a abolute path to the temporary directory.

getId

public Long getId()
Returns:
Returns the id.

setId

public void setId(Long id)
Parameters:
id - The id to set.

getValidateNewUsers

public boolean getValidateNewUsers()
Returns:
Returns the validateNewUsers.

isValidateNewUsers

public boolean isValidateNewUsers()
Returns:
Returns the validateNewUsers.

setValidateNewUsers

public void setValidateNewUsers(boolean validateNewUsers)
Parameters:
validateNewUsers - The validateNewUsers to set.

getVelocityPropertiesAsStream

public InputStream getVelocityPropertiesAsStream()
Returns:

getVelocityProperties

public String getVelocityProperties()
Returns:
Returns the velocityProperties.

setVelocityProperties

public void setVelocityProperties(String velocityProperties)
Parameters:
velocityProperties - The velocityProperties to set.

getDateFormat

public String getDateFormat()
Returns:
Returns the dateFormat.

setDateFormat

public void setDateFormat(String dateFormat)
Parameters:
dateFormat - The dateFormat to set.

getDatetimeFormat

public String getDatetimeFormat()
Returns:
Returns the datetimeFormat.

setDatetimeFormat

public void setDatetimeFormat(String datetimeFormat)
Parameters:
datetimeFormat - The datetimeFormat to set.

getTimeFormat

public String getTimeFormat()
Returns:
Returns the timeFormat.

setTimeFormat

public void setTimeFormat(String timeFormat)
Parameters:
timeFormat - The timeFormat to set.

getSiteDescription

public String getSiteDescription()
Returns:
Returns the siteDescription.

setSiteDescription

public void setSiteDescription(String siteDescription)
Parameters:
siteDescription - The siteDescription to set.

getSiteKeywords

public String getSiteKeywords()
Returns:
Returns the siteKeywords.

setSiteKeywords

public void setSiteKeywords(String siteKeywords)
Parameters:
siteKeywords - The siteKeywords to set.

getSiteTitle

public String getSiteTitle()
Returns:
Returns the siteTitle.

setSiteTitle

public void setSiteTitle(String siteTitle)
Parameters:
siteTitle - The siteTitle to set.

getRankingOn

public boolean getRankingOn()
Returns:
Returns the rankingOn.

isRankingOn

public boolean isRankingOn()
Returns:
Returns the rankingOn.

setRankingOn

public void setRankingOn(boolean rankingOn)
Parameters:
rankingOn - The rankingOn to set.

getBlogsDirectory

public File getBlogsDirectory()
Returns the directory where all blog-specific resources are saved.

Returns:

getUsersDirectory

public File getUsersDirectory()
Returns the directory where all user-specific resources are saved.

Returns:


Copyright (c)j2biz.com