Package com.terminalfour.publish.data
Class PDSection
- java.lang.Object
-
- com.terminalfour.publish.data.PDSection
-
- All Implemented Interfaces:
IPDData
- Direct Known Subclasses:
PDSectionNotFound
public class PDSection extends Object implements IPDData
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PDContentListItem>
getContent()
int
getId()
List<String>
getLanguages()
int
getLayoutId()
int
getLevel()
int
getMirrorSource()
String
getName()
protected com.terminalfour.sitemanager.cache.CachedSection
getSection()
boolean
hasLanguage(String language)
Check if the section is in the language.boolean
isMirroredSection()
-
-
-
Constructor Detail
-
PDSection
public PDSection(com.terminalfour.sitemanager.cache.CachedSection section, int id, String name, int mirrorSource, List<PDContentListItem> content, int layoutId, int level, List<String> languages)
-
-
Method Detail
-
isMirroredSection
public boolean isMirroredSection()
-
hasLanguage
public boolean hasLanguage(String language)
Check if the section is in the language.- Parameters:
language
- Language code.- Returns:
- true if section is in the language, false otherwise.
-
getId
public int getId()
-
getName
public String getName()
-
getMirrorSource
public int getMirrorSource()
-
getContent
public List<PDContentListItem> getContent()
-
getLayoutId
public int getLayoutId()
-
getLevel
public int getLevel()
-
getSection
protected com.terminalfour.sitemanager.cache.CachedSection getSection()
-
-