Class CMSPageTemplate
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetContentItem
(String itemId) getContentItem.Getter for the fieldcontentItems
.Getter for the fielddescription
.Getter for the fieldhtmlFileName
.Getter for the fieldiconFileName
.getId()
Getter for the fieldid
.getName()
Getter for the fieldname
.Getter for the fieldtemplateFileName
.Getter for the fieldversion
.boolean
isAppliesToExpandedUrl.boolean
isDisplaySortingField.boolean
boolean
isThemeTemplate.static CMSPageTemplate
loadFromXML
(Path file) Loads a page template from the given template file and returns the template object.static boolean
parseBoolean
(String text) parseBoolean.static boolean
parseBoolean
(String text, boolean defaultValue) parseBoolean.void
setAppliesToExpandedUrl
(boolean appliesToExpandedUrl) Setter for the fieldappliesToExpandedUrl
.void
setContentItems
(List<CMSContentItemTemplate> contentItems) Setter for the fieldcontentItems
.void
setDescription
(String description) Setter for the fielddescription
.void
setDisplaySortingField
(boolean displaySortingField) Setter for the fielddisplaySortingField
.void
setHtmlFileName
(String htmlFileName) Setter for the fieldhtmlFileName
.void
setIconFileName
(String iconFileName) Setter for the fieldiconFileName
.void
Setter for the fieldid
.void
setMayHaveTopBarSlider
(boolean mayHaveTopBarSlider) void
Setter for the fieldname
.void
setTemplateFileName
(String templateFileName) Setter for the fieldtemplateFileName
.void
setThemeTemplate
(boolean themeTemplate) Setter for the fieldthemeTemplate
.void
setVersion
(String version) Setter for the fieldversion
.void
validate()
validate.
-
Constructor Details
-
CMSPageTemplate
public CMSPageTemplate()
-
-
Method Details
-
loadFromXML
Loads a page template from the given template file and returns the template object.- Parameters:
file
- aPath
object.- Returns:
- a
CMSPageTemplate
object. - Throws:
IllegalArgumentException
- if file is null
-
validate
public void validate()validate.
-
createCMSComponent
-
getId
Getter for the field
id
.- Returns:
- the id
-
setId
Setter for the field
id
.- Parameters:
id
- the id to set
-
getName
Getter for the field
name
.- Returns:
- the name
-
setName
Setter for the field
name
.- Parameters:
name
- the name to set
-
getVersion
Getter for the field
version
.- Returns:
- the version
-
setVersion
Setter for the field
version
.- Parameters:
version
- the version to set
-
getDescription
Getter for the field
description
.- Returns:
- the description
-
setDescription
Setter for the field
description
.- Parameters:
description
- the description to set
-
getHtmlFileName
Getter for the field
htmlFileName
.- Returns:
- the htmlFileName
-
setHtmlFileName
Setter for the field
htmlFileName
.- Parameters:
htmlFileName
- the htmlFileName to set
-
getTemplateFileName
Getter for the field
templateFileName
.- Returns:
- the templateFileName
-
setTemplateFileName
Setter for the field
templateFileName
.- Parameters:
templateFileName
- the templateFileName to set
-
getIconFileName
Getter for the field
iconFileName
.- Returns:
- the iconFileName
-
setIconFileName
Setter for the field
iconFileName
.- Parameters:
iconFileName
- the iconFileName to set
-
getContentItems
Getter for the field
contentItems
.- Returns:
- the contentItems
-
getContentItem
getContentItem.
- Parameters:
itemId
- aString
object.- Returns:
- a
CMSContentItemTemplate
object.
-
setContentItems
Setter for the field
contentItems
.- Parameters:
contentItems
- the contentItems to set
-
isDisplaySortingField
public boolean isDisplaySortingField()isDisplaySortingField.
- Returns:
- a boolean.
-
setDisplaySortingField
public void setDisplaySortingField(boolean displaySortingField) Setter for the field
displaySortingField
.- Parameters:
displaySortingField
- a boolean.
-
isThemeTemplate
public boolean isThemeTemplate()isThemeTemplate.
- Returns:
- the themeTemplate
-
setThemeTemplate
public void setThemeTemplate(boolean themeTemplate) Setter for the field
themeTemplate
.- Parameters:
themeTemplate
- the themeTemplate to set
-
setAppliesToExpandedUrl
public void setAppliesToExpandedUrl(boolean appliesToExpandedUrl) Setter for the field
appliesToExpandedUrl
.- Parameters:
appliesToExpandedUrl
- the appliesToExpandedUrl to set
-
isAppliesToExpandedUrl
public boolean isAppliesToExpandedUrl()isAppliesToExpandedUrl.
- Returns:
- the appliesToExpandedUrl
-
setMayHaveTopBarSlider
public void setMayHaveTopBarSlider(boolean mayHaveTopBarSlider) - Parameters:
mayHaveTopBarSlider
- the mayHaveTopBarSlider to set
-
isMayHaveTopBarSlider
public boolean isMayHaveTopBarSlider()- Returns:
- the mayHaveTopBarSlider
-
parseBoolean
parseBoolean.
- Parameters:
text
- aString
object.defaultValue
- a boolean.- Returns:
- a boolean.
-
parseBoolean
parseBoolean.
- Parameters:
text
- aString
object.- Returns:
- a boolean.
-
getAttributes
-