|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.meshcms.core.Configuration
Manages the configuration parameters of a website.
Field Summary | |
static java.lang.String[] |
DEFAULT_VISUAL_EXTENSIONS
Contains the extensions of files that are visually editable by default. |
static int |
IN_MEMORY_CACHE
Value used to cache pages in memory. |
static long |
LENGTH_OF_DAY
The length of a day in milliseconds. |
static long |
LENGTH_OF_HOUR
The length of a hour in milliseconds. |
static int |
MIXED_CACHE
Value used to cache pages on disk and, if possible, in memory. |
static int |
NO_CACHE
Value used to disable page caching. |
static int |
ON_DISK_CACHE
Value used to cache pages on disk. |
static int |
TIDY_ASK
|
static int |
TIDY_NO
|
static int |
TIDY_YES
|
Method Summary | |
int |
getBackupLife()
Returns the minimum time before deleting a backup file, measured in days. |
long |
getBackupLifeMillis()
Returns the minimum time before deleting a backup file, measured in milliseconds. |
int |
getCacheType()
Returns the type of cache to be used for pages. |
int |
getExcerptLength()
|
java.lang.String |
getExportBaseURL()
|
java.lang.String |
getExportCommand()
|
java.lang.String |
getExportDir()
|
java.lang.String |
getMailServer()
Returns the name of the mail server (SMTP). |
java.lang.String |
getSiteAuthor()
Returns the author name. |
java.lang.String |
getSiteAuthorURL()
Returns the author's URL. |
java.lang.String |
getSiteDescription()
Returns the website description. |
java.lang.String |
getSiteHost()
Returns the main host name of this website. |
java.lang.String |
getSiteKeywords()
Returns the keywords related to the website. |
java.lang.String |
getSiteName()
Returns the site name. |
java.lang.String |
getSmtpPassword()
Returns the SMTP password. |
java.lang.String |
getSmtpUsername()
Returns the SMTP username. |
int |
getStatsLength()
Returns the length of stats (hit counts) measured in days. |
int |
getTidy()
|
int |
getUpdateInterval()
Returns the minimum interval between two updates of the site map, measured in hours. |
long |
getUpdateIntervalMillis()
Returns the minimum interval between two updates of the site map, measured in milliseconds. |
java.lang.String[] |
getVisualExtensions()
Returns the extensions that denote file types that can be edited using the wysiwyg editor. |
boolean |
isAlwaysDenyDirectoryListings()
Returns the state of directory list blocking. |
boolean |
isAlwaysRedirectWelcomes()
Returns the state of the automatic redirection to welcome files. |
boolean |
isEditorModulesCollapsed()
Returns the state of whether modules are collapsed in the editor. |
boolean |
isExportCheckDates()
|
boolean |
isHideExceptions()
Returns the state of exception hiding. |
boolean |
isHighQualityThumbnails()
|
boolean |
isPasswordProtected()
|
boolean |
isPreventHotlinking()
Returns true if the option to prevent hotlinking is enabled. |
boolean |
isRedirectRoot()
|
boolean |
isReplaceThumbnails()
|
boolean |
isSearchMovedPages()
|
boolean |
isUseAdminTheme()
Returns true if the default MeshCMS theme is always used for the pages of the control panel. |
static Configuration |
load(WebSite webSite)
Loads the configuration from file or creates a new configuration with default values if the file doesn't exist. |
void |
setAlwaysDenyDirectoryListings(boolean alwaysDenyDirectoryListings)
Enables or disables blocking of directory listings. |
void |
setAlwaysRedirectWelcomes(boolean alwaysRedirectWelcomes)
Enables or disables automatic redirection to welcome files. |
void |
setBackupLife(int backupLife)
Sets the minimum time before deleting a backup file, measured in days. |
void |
setCacheType(int cacheType)
Sets the type of cache to be used for pages. |
void |
setEditorModulesCollapsed(boolean editorModulesCollapsed)
Sets whether modules are collapsed in the editor or not. |
void |
setExcerptLength(int excerptLength)
|
void |
setExportBaseURL(java.lang.String exportBaseURL)
|
void |
setExportCheckDates(boolean exportCheckDates)
|
void |
setExportCommand(java.lang.String exportCommand)
|
void |
setExportDir(java.lang.String exportDir)
|
void |
setHideExceptions(boolean hideExceptions)
Enables or disables hiding of Java exceptions. |
void |
setHighQualityThumbnails(boolean highQualityThumbnails)
|
void |
setMailServer(java.lang.String mailServer)
Sets the name of the mail server (SMTP). |
void |
setPasswordProtected(boolean passwordProtected)
|
void |
setPreventHotlinking(boolean preventHotlinking)
Enables or disables hotlinking prevention. |
void |
setRedirectRoot(boolean redirectRoot)
|
void |
setReplaceThumbnails(boolean replaceThumbnails)
|
void |
setSearchMovedPages(boolean searchMovedPages)
|
void |
setSiteAuthor(java.lang.String siteAuthor)
Sets the author name. |
void |
setSiteAuthorURL(java.lang.String siteAuthorURL)
Sets the author's URL. |
void |
setSiteDescription(java.lang.String siteDescription)
Sets the website description. |
void |
setSiteHost(java.lang.String siteHost)
Sets the main host name of this website. |
void |
setSiteKeywords(java.lang.String siteKeywords)
Sets the keywords related to the website. |
void |
setSiteName(java.lang.String siteName)
Sets the site name. |
void |
setSmtpPassword(java.lang.String smtpPassword)
Sets the SMTP password. |
void |
setSmtpUsername(java.lang.String smtpUsername)
Sets the SMTP username. |
void |
setStatsLength(int statsLength)
Sets the length of stats (hit counts) measured in days. |
void |
setTidy(int tidy)
|
void |
setUpdateInterval(int updateInterval)
Sets the minimum interval between two updates of the site map, measured in hours. |
void |
setUseAdminTheme(boolean useAdminTheme)
Sets if the default MeshCMS theme is always used for the pages of the control panel. |
void |
setVisualExtensions(java.lang.String[] visualExtensions)
Sets the extensions that denote file types that can be edited using the wysiwyg editor. |
boolean |
store(WebSite webSite)
Saves the current configuration to file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long LENGTH_OF_HOUR
public static final long LENGTH_OF_DAY
public static final java.lang.String[] DEFAULT_VISUAL_EXTENSIONS
public static final int NO_CACHE
public static final int IN_MEMORY_CACHE
public static final int ON_DISK_CACHE
public static final int MIXED_CACHE
public static final int TIDY_NO
public static final int TIDY_YES
public static final int TIDY_ASK
Method Detail |
public boolean isUseAdminTheme()
public void setUseAdminTheme(boolean useAdminTheme)
public boolean isPreventHotlinking()
public void setPreventHotlinking(boolean preventHotlinking)
public int getBackupLife()
public void setBackupLife(int backupLife)
public int getStatsLength()
public void setStatsLength(int statsLength)
public int getUpdateInterval()
public void setUpdateInterval(int updateInterval)
public int getCacheType()
setCacheType(int)
public void setCacheType(int cacheType)
NO_CACHE
, IN_MEMORY_CACHE
and ON_DISK_CACHE
.
public java.lang.String getMailServer()
public void setMailServer(java.lang.String mailServer)
public java.lang.String getSmtpUsername()
public void setSmtpUsername(java.lang.String smtpUsername)
public java.lang.String getSmtpPassword()
public void setSmtpPassword(java.lang.String smtpPassword)
public static Configuration load(WebSite webSite)
public boolean store(WebSite webSite)
public long getUpdateIntervalMillis()
public long getBackupLifeMillis()
public java.lang.String[] getVisualExtensions()
public void setVisualExtensions(java.lang.String[] visualExtensions)
public boolean isAlwaysRedirectWelcomes()
public void setAlwaysRedirectWelcomes(boolean alwaysRedirectWelcomes)
public boolean isAlwaysDenyDirectoryListings()
public void setAlwaysDenyDirectoryListings(boolean alwaysDenyDirectoryListings)
public java.lang.String getSiteHost()
public void setSiteHost(java.lang.String siteHost)
public java.lang.String getSiteDescription()
public void setSiteDescription(java.lang.String siteDescription)
public java.lang.String getSiteKeywords()
public void setSiteKeywords(java.lang.String siteKeywords)
public java.lang.String getSiteAuthor()
public void setSiteAuthor(java.lang.String siteAuthor)
public java.lang.String getSiteName()
public void setSiteName(java.lang.String siteName)
public java.lang.String getSiteAuthorURL()
public void setSiteAuthorURL(java.lang.String siteAuthorURL)
public boolean isHideExceptions()
public void setHideExceptions(boolean hideExceptions)
public boolean isEditorModulesCollapsed()
public void setEditorModulesCollapsed(boolean editorModulesCollapsed)
public boolean isHighQualityThumbnails()
public void setHighQualityThumbnails(boolean highQualityThumbnails)
public boolean isExportCheckDates()
public void setExportCheckDates(boolean exportCheckDates)
public java.lang.String getExportBaseURL()
public void setExportBaseURL(java.lang.String exportBaseURL)
public java.lang.String getExportDir()
public void setExportDir(java.lang.String exportDir)
public java.lang.String getExportCommand()
public void setExportCommand(java.lang.String exportCommand)
public boolean isSearchMovedPages()
public void setSearchMovedPages(boolean searchMovedPages)
public boolean isRedirectRoot()
public void setRedirectRoot(boolean redirectRoot)
public boolean isReplaceThumbnails()
public void setReplaceThumbnails(boolean replaceThumbnails)
public int getTidy()
public void setTidy(int tidy)
public boolean isPasswordProtected()
public void setPasswordProtected(boolean passwordProtected)
public int getExcerptLength()
public void setExcerptLength(int excerptLength)
excerptLength
- the excerptLength to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |