|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.stellent.wcm.core.project.structure.SectionTree
public class SectionTree
Provide a wrapper around the project SectionType POJO optimized for querying structure
| Field Summary | |
|---|---|
protected ILog |
m_log |
protected java.util.Map<java.lang.String,SectionNode> |
m_sectionMap |
protected java.util.Map<java.lang.String,java.lang.String> |
m_sectionPathToId |
static java.lang.String |
ROOT_SECTION_ID |
| Constructor Summary | |
|---|---|
SectionTree(oracle.stellent.wcm.core.project.model.RootSectionType rootSectionType) |
|
| Method Summary | |
|---|---|
void |
addRecursiveSection(SectionNode section)Add a section and its children to the structure tree |
void |
addSection(SectionNode section)Add a section to this tree |
java.util.Collection<java.lang.String> |
getChildPaths(java.lang.String path) |
SectionNode |
getRootSection() |
oracle.stellent.wcm.core.project.model.RootSectionType |
getRootSectionType() |
SectionNode |
getSectionByID(java.lang.String identifier)Retrieve the section by identifier |
SectionNode |
getSectionByPath(java.lang.String path)Retrieve the section by path |
protected java.util.Map<java.lang.String,SectionNode> |
getSectionMap() |
protected java.util.Map<java.lang.String,java.lang.String> |
getSectionPathToId() |
java.util.List<SectionNode> |
getSectionsAtLevel(int level)Retrieve all the sections at a given level, 0 representing just the Home section |
static boolean |
isLocalFile(java.lang.String file)Determine if the file name is a local file |
protected java.lang.String |
resolvePathToId(java.lang.String path) |
| 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 ROOT_SECTION_ID
protected ILog m_log
protected java.util.Map<java.lang.String,SectionNode> m_sectionMap
protected java.util.Map<java.lang.String,java.lang.String> m_sectionPathToId
| Constructor Detail |
|---|
public SectionTree(oracle.stellent.wcm.core.project.model.RootSectionType rootSectionType)
| Method Detail |
|---|
public oracle.stellent.wcm.core.project.model.RootSectionType getRootSectionType()
public void addSection(SectionNode section)
section - the sectionpublic void addRecursiveSection(SectionNode section)
section - the sectionpublic static boolean isLocalFile(java.lang.String file)
file - the file name or content IDpublic SectionNode getSectionByPath(java.lang.String path)
path - the section pathpublic SectionNode getSectionByID(java.lang.String identifier)
identifier - the IDpublic java.util.Collection<java.lang.String> getChildPaths(java.lang.String path)
path - the parent path (or '/' for root)public SectionNode getRootSection()
public java.util.List<SectionNode> getSectionsAtLevel(int level)
level - the levelprotected java.util.Map<java.lang.String,SectionNode> getSectionMap()
protected java.util.Map<java.lang.String,java.lang.String> getSectionPathToId()
protected java.lang.String resolvePathToId(java.lang.String path)
path - the path
|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||