|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.meshcms.core.SiteInfo
Contains data about site menu customization and theme mappings.
Field Summary | |
static java.lang.String |
HIDESUBMENU
Prefix of the submenu codes. |
static java.lang.String |
SCORE
Prefix of the score codes. |
static java.lang.String |
THEME
Prefix of the theme codes. |
static java.lang.String |
TITLE
Prefix of the title codes. |
Constructor Summary | |
protected |
SiteInfo()
|
Method Summary | |
boolean |
getHideSubmenu(Path pagePath)
Returns the hide submenu for the given path (false if not available). |
java.lang.String |
getHideSubmenuAsString(Path pagePath)
Returns the hide submenu as a string for the given path. |
static java.lang.String |
getHideSubmenuCode(Path pagePath)
Returns the code for the show submenu field of the given path. |
int |
getPageScore(Path pagePath)
Returns the page score for the given path (0 if not available). |
java.lang.String |
getPageScoreAsString(Path pagePath)
Returns the page score as a string for the given path. |
java.lang.String |
getPageTheme(Path pagePath)
Returns the theme to be applied to the given path. |
java.lang.String |
getPageTitle(PageInfo pageInfo)
Returns the menu title for a page. |
java.lang.String |
getPageTitle(Path pagePath)
Returns the menu title for the given path (null if not available). |
static java.lang.String |
getScoreCode(Path pagePath)
Returns the code for the score field of the given path. |
static java.lang.String |
getThemeCode(Path pagePath)
Returns the code for the theme field of the given path. |
protected Path |
getThemePath(Path pagePath)
|
Path |
getThemeRoot(Path pagePath)
Returns the path of the page whose theme is inherited. |
static java.lang.String |
getTitleCode(Path pagePath)
Returns the code for the title field of the given path. |
WebSite |
getWebSite()
|
static SiteInfo |
load(WebSite webSite)
Loads configuration from the config file (if found). |
void |
setHideSubmenu(Path pagePath,
boolean hide)
Sets the hide submenu for the given path. |
void |
setHideSubmenu(Path pagePath,
java.lang.String hide)
Sets the hide submenu for the given path. |
void |
setPageScore(Path pagePath,
int score)
Sets the page score for the given path. |
void |
setPageScore(Path pagePath,
java.lang.String score)
Sets the page score for the given path. |
void |
setPageTheme(Path pagePath,
java.lang.String theme)
Sets the theme to be applied to the given path. |
void |
setPageTitle(Path pagePath,
java.lang.String title)
Sets the menu title for the given path. |
boolean |
setValue(java.lang.String fieldName,
java.lang.String value)
Sets a generic value. |
void |
setWebSite(WebSite webSite)
|
boolean |
store()
Saves the 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 java.lang.String TITLE
public static final java.lang.String SCORE
public static final java.lang.String THEME
public static final java.lang.String HIDESUBMENU
Constructor Detail |
protected SiteInfo()
Method Detail |
public static SiteInfo load(WebSite webSite)
public boolean store()
public java.lang.String getPageTheme(Path pagePath)
public void setPageTheme(Path pagePath, java.lang.String theme)
public java.lang.String getPageTitle(PageInfo pageInfo)
public java.lang.String getPageTitle(Path pagePath)
public void setPageTitle(Path pagePath, java.lang.String title)
public int getPageScore(Path pagePath)
public java.lang.String getPageScoreAsString(Path pagePath)
public void setPageScore(Path pagePath, java.lang.String score)
public void setPageScore(Path pagePath, int score)
public boolean getHideSubmenu(Path pagePath)
public java.lang.String getHideSubmenuAsString(Path pagePath)
public void setHideSubmenu(Path pagePath, java.lang.String hide)
public void setHideSubmenu(Path pagePath, boolean hide)
public static java.lang.String getScoreCode(Path pagePath)
public static java.lang.String getTitleCode(Path pagePath)
public static java.lang.String getThemeCode(Path pagePath)
public static java.lang.String getHideSubmenuCode(Path pagePath)
public boolean setValue(java.lang.String fieldName, java.lang.String value)
fieldName
parameter is analyzed to
guess what value is going to be set. This is used to save all form fields.
protected Path getThemePath(Path pagePath)
public Path getThemeRoot(Path pagePath)
public WebSite getWebSite()
public void setWebSite(WebSite webSite)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |