View Source

get a tree at the given location

h5. Resource URL

/api/1/content_store/tree

h5. Parameters
----
|| url \\ {color:#c80000}{_}required{_}{color} | the parent location to get a tree from ||
|| sessionId \\ {color:#cccccc}{_}optional{_}{color} | the current session id. The default session will be used if not provided ||
|| filter \\ {color:#cccccc}{_}optional{_}{color} | a filter name to filter child contents ||
|| processor \\ {color:#cccccc}{_}optional{_}{color} | a processor name to process child contents ||


h5. Example Request
----
|| GET | [http://localhost:8080/api/1/content_store/tree.json] \\
[http://localhost:8080/api/1/content_store/tree.xml] ||
|| GET Data | url=/site/website&sessionId=4f5aee4c-b77a-462a-882f-22c879896f18&filter=myFilter&processor=myProcessor ||
|| Response | {code:borderWidth=0|title=json}
{
"children":[
{
"children":[
{
"name":"index.xml",
"url":"/site/website/about/index.xml",
"descriptorUrl":"/site/website/about/index.xml",
"descriptorDom":{
"page":{
"pageIdGroup":"400",
"pageId":"402",
"file-name":"index.xml",
"internal-name":"About Us",
"placeInNav":"true",
"orders":{
"order":{
"order-name":"default",
"order-value":"1"
}
},
"status":"true",
"body":{
"@valid":"true",
"#text":" sequitur mutationem"
},
"rightRail":{
"@valid":"true",
"#text":""
},
"title":"About Us",
"meta-description":"5555",
"corporateKeywords":null,
"meta-keywords":null,
"language":{
"@nodeRef":""
},
"display-template":"/templates/web/article.ftl",
"descriptor-mapper":"hierarchical-mapper",
"content-type":"/acmecom/page/article",
"components":null,
"template-version":"0.1",
"pageHeadCode":null,
"pageFootCode":null,
"javascripts":null,
"styles":null,
"js":".js",
"css":".css",
"size":null,
"lastModifiedBy":"admin",
"lastModifiedDate":"2012-03-25T18:47:37-00:00"
}
},
"properties":{
"//internal-name":"About Us"
},
"isFolder":false
}
],
"name":"about",
"url":"/site/website/about",
"descriptorUrl":"/site/website/about.meta.xml",
"descriptorDom":null,
"properties":null,
"isFolder":true
},
{
"name":"crafter-component.xml",
"url":"/site/website/crafter-component.xml",
"descriptorUrl":"/site/website/crafter-component.xml",
"descriptorDom":{
"page":{
"display-template":{
"@nil":"false",
"#text":"/templates/system/common/component.ftl"
},
"descriptor-mapper":{
"@nil":"false",
"#text":"hierarchical-mapper"
},
"hideInAuthoring":"true"
}
},
"properties":null,
"isFolder":false
},
{
"name":"crafter-level-descriptor.level.xml",
"url":"/site/website/crafter-level-descriptor.level.xml",
"descriptorUrl":"/site/website/crafter-level-descriptor.level.xml",
"descriptorDom":{
"levelDescriptor":{
"header":{
"@nil":"false",
"#text":"/static-assets/html/header.html"
},
"footer":{
"@nil":"false",
"#text":"/static-assets/html/footer.html"
},
"css-group":{
"@nil":"true",
"css":"/static-assets/css/style.css"
},
"descriptor-mapper":"hierarchical-mapper",
"content-type":"/acmecom/component/level-descriptor"
}
},
"properties":{
"//css-group":[
""
]
},
"isFolder":false
},
{
"name":"index.xml",
"url":"/site/website/index.xml",
"descriptorUrl":"/site/website/index.xml",
"descriptorDom":{
"page":{
"content-type":"/acmecom/page/entry",
"file-name":{
"@valid":"true",
"#text":"index.xml"
},
"internal-name":"acmecom Home",
"title":"ACME",
"meta-description":"test",
"corporateKeywords":null,
"meta-keywords":"keyword-a",
"display-template":"/templates/web/entry.ftl",
"descriptor-mapper":"hierarchical-mapper",
"components":null,
"lastModifiedBy":"admin",
"lastModifiedDate":"2011-05-02T18:08:27-00:00",
"template-version":"1.3",
"shoutBoxes":{
"shoutBox":[
{
"content-type":"/acmecom/component/shoutbox",
"file-name":{
"@valid":"true",
"#text":"what-we-do.xml"
},
"internal-name":"What We Do Shout Box",
"descriptor-mapper":"hierarchical-mapper",
"display-template":"/templates/web/components/shout-box.ftl",
"heading":"What We Do",
"subhead":"Enterprise Solutions",
"thumb":"/static-assets/images/icon1.gif",
"image":"/static-assets/images/home_section_thumb1.jpg",
"body":{
"@valid":"true",
"#text":"Empower your organization with personalized, cost-effective communications solutions using Acme\u0027s complete portfolio of reliable, scalable products and services"
},
"link":"/about",
"targeting":{
"roles":null
},
"lastModifiedBy":"admin",
"lastModifiedDate":"2011-05-03T06:54:16-00:00",
"template-version":"1.0"
},
{
"content-type":"/acmecom/component/shoutbox",
"file-name":{
"@valid":"true",
"#text":"award-winning.xml"
},
"internal-name":"Award Winning Shout Box",
"descriptor-mapper":"hierarchical-mapper",
"display-template":"/templates/web/components/shout-box.ftl",
"heading":"Award Winning Service",
"subhead":"Industry Leadership",
"thumb":"/static-assets/images/icon2.gif",
"image":"/static-assets/images/home_section_thumb2.jpg",
"body":{
"@valid":"true",
"#text":"Today, ACME delivers award winning solutions and unmatched service to business-class customers across the globe."
},
"link":"/services",
"targeting":{
"roles":null
},
"lastModifiedBy":"admin",
"lastModifiedDate":"2011-05-03T06:51:23-00:00",
"template-version":"1.0"
},
{
"content-type":"/acmecom/component/shoutbox",
"file-name":{
"@valid":"true",
"#text":"xr9000-101.xml"
},
"internal-name":"XR9000 Shout Box",
"descriptor-mapper":"hierarchical-mapper",
"display-template":"/templates/web/components/shout-box.ftl",
"heading":"ACME XR9000 101",
"subhead":"Master the solution, conqure your neeeds",
"thumb":"/static-assets/images/icon3.gif",
"image":"/static-assets/images/home_section_thumb3.jpg",
"body":{
"@valid":"true",
"#text":"Get the resources you need to understand how ACME XR9000 works and experience the benefits for yourself."
},
"link":"/products",
"targeting":{
"roles":null
},
"lastModifiedBy":"admin",
"lastModifiedDate":"2011-05-03T06:54:53-00:00"
}
]
},
"entryPromos":{
"promo":[
{
"image":"/static-assets/images/slider_photo.jpg",
"caption":"To remain competitive and functioning at peak efficiency, organizations like yours can\u0027t afford to waste valuable resources on outdated, inefficient, or improperly\u003cbr/\u003eimplemented communications equipment."
},
{
"image":"/static-assets/images/slider_photo3.jpg",
"caption":"When you call ACME Customer Care, you speak directly to our representatives - not to automated prompts or recordings. Our highly trained professionals provide\u003cbr/\u003eexceptional customer support and deliver one of the highest levels of first-call resolution in the industry."
},
{
"image":"/static-assets/images/slider_photo2.jpg",
"caption":"We\u0027re the best your money can buy. Hands Down."
}
]
},
"navigable":"false"
}
},
"properties":{
"//internal-name":"acmecom Home",
"//meta-keywords":"keyword-a"
},
"isFolder":false
},
{
"children":[
{
"name":"index.xml",
"url":"/site/website/products/index.xml",
"descriptorUrl":"/site/website/products/index.xml",
"descriptorDom":{
"page":{
"pageIdGroup":"400",
"pageId":"402",
"file-name":"index.xml",
"internal-name":"Products",
"placeInNav":"true",
"orders":{
"order":{
"order-name":"default",
"order-value":"1"
}
},
"status":"true",
"body":{
"@valid":"true",
"#text":"est usus legentis in iis qui facit eorum claritatem. "
},
"rightRail":{
"@valid":"true",
"#text":"test"
},
"title":"Products",
"meta-description":"Products",
"corporateKeywords":null,
"meta-keywords":null,
"language":{
"@nodeRef":""
},
"display-template":"/templates/web/article.ftl",
"descriptor-mapper":"hierarchical-mapper",
"content-type":"/acmecom/page/article",
"components":null,
"template-version":"0.1",
"pageHeadCode":null,
"pageFootCode":null,
"javascripts":null,
"styles":null,
"js":".js",
"css":".css",
"size":null,
"lastModifiedBy":"admin",
"lastModifiedDate":"2012-03-25T18:47:37-00:00"
}
},
"properties":{
"//internal-name":"Products"
},
"isFolder":false
}
],
"name":"products",
"url":"/site/website/products",
"descriptorUrl":"/site/website/products.meta.xml",
"descriptorDom":null,
"properties":null,
"isFolder":true
},
{
"children":[
{
"name":"index.xml",
"url":"/site/website/services/index.xml",
"descriptorUrl":"/site/website/services/index.xml",
"descriptorDom":{
"page":{
"pageIdGroup":"400",
"pageId":"413",
"file-name":"index.xml",
"internal-name":"Services",
"placeInNav":"true",
"orders":{
"order":{
"order-name":"default",
"order-value":"1"
}
},
"status":"true",
"body":{
"@valid":"true",
"#text":"o odio dignissim qui blandit praesent luptatum "
},
"title":"Services",
"meta-description":"Services",
"corporateKeywords":null,
"meta-keywords":null,
"language":{
"@nodeRef":""
},
"display-template":"/templates/web/article-wide.ftl",
"descriptor-mapper":"hierarchical-mapper",
"content-type":"/acmecom/page/article-wide",
"components":null,
"template-version":"1.0",
"pageHeadCode":null,
"pageFootCode":null,
"javascripts":null,
"styles":null,
"js":".js",
"css":".css",
"size":null,
"lastModifiedBy":"admin",
"lastModifiedDate":"2012-03-25T19:01:48-00:00"
}
},
"properties":{
"//internal-name":"Services"
},
"isFolder":false
}
],
"name":"services",
"url":"/site/website/services",
"descriptorUrl":"/site/website/services.meta.xml",
"descriptorDom":null,
"properties":null,
"isFolder":true
}
],
"name":"website",
"url":"/site/website",
"descriptorUrl":"/site/website.meta.xml",
"descriptorDom":null,
"properties":null,
"isFolder":true
}
{code}
{code:xml|borderWidth=0|title=xml}
<tree>
<name>website</name>
<url>/site/website</url>
<descriptorUrl>/site/website.meta.xml</descriptorUrl>
<isFolder>true</isFolder>
<children>
<tree>
<name>about</name>
<url>/site/website/about</url>
<descriptorUrl>/site/website/about.meta.xml</descriptorUrl>
<isFolder>true</isFolder>
<children>
<item>
<name>index.xml</name>
<url>/site/website/about/index.xml</url>
<descriptorUrl>/site/website/about/index.xml</descriptorUrl>
<descriptorDom>
<page>
<pageIdGroup>400</pageIdGroup>
<pageId>402</pageId>
<file-name>index.xml</file-name>
<internal-name>About Us</internal-name>
<placeInNav>true</placeInNav>
<orders>
<order>
<order-name>default</order-name>
<order-value>1</order-value>
</order>
</orders>
<status>true</status>
<body valid="true">&lt;h1 class="head"&gt;LLorem ipsum dolor sit
amet&lt;br clear="none"/&gt; &lt;/h1&gt;&lt;p&gt;Lorem ipsum
dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
nibh euismod tincidunt ut laoreet dolore magna aliquam erat
volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci
tation ullamcorper suscipit lobortis nisl ut aliquip ex ea
<rightRail></rightRail>
<title>About Us</title>
<meta-description>5555</meta-description>
<corporateKeywords />
<meta-keywords />
<language nodeRef="" />
<display-template>/templates/web/article.ftl</display-template>
<descriptor-mapper>hierarchical-mapper</descriptor-mapper>
<content-type>/acmecom/page/article</content-type>
<components />
<template-version>0.1</template-version>
<pageHeadCode />
<pageFootCode />
<javascripts />
<styles />
<js>.js</js>
<css>.css</css>
<size />
<lastModifiedBy>admin</lastModifiedBy>
<lastModifiedDate>2012-03-25T18:47:37-00:00</lastModifiedDate>
</page>
</descriptorDom>
<properties>
<entry>
<string>//internal-name</string>
<string>About Us</string>
</entry>
</properties>
<isFolder>false</isFolder>
</item>
</children>
</tree>
<item>
<name>crafter-component.xml</name>
<url>/site/website/crafter-component.xml</url>
<descriptorUrl>/site/website/crafter-component.xml</descriptorUrl>
<descriptorDom>
<page xmlns:alf="http://www.alfresco.org" xmlns:chiba="http://chiba.sourceforge.net/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<display-template xsi:nil="false">/templates/system/common/component.ftl
</display-template>
<descriptor-mapper xsi:nil="false">hierarchical-mapper
</descriptor-mapper>
<hideInAuthoring>true</hideInAuthoring>
</page>
</descriptorDom>
<isFolder>false</isFolder>
</item>
<item>
<name>crafter-level-descriptor.level.xml</name>
<url>/site/website/crafter-level-descriptor.level.xml</url>
<descriptorUrl>/site/website/crafter-level-descriptor.level.xml
</descriptorUrl>
<descriptorDom>
<levelDescriptor xmlns:alf="http://www.alfresco.org"
xmlns:chiba="http://chiba.sourceforge.net/xforms" xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<header xsi:nil="false">/static-assets/html/header.html</header>
<footer xsi:nil="false">/static-assets/html/footer.html</footer>
<css-group xsi:nil="true">
<css>/static-assets/css/style.css</css>
</css-group>
<descriptor-mapper>hierarchical-mapper</descriptor-mapper>
<content-type>/acmecom/component/level-descriptor</content-type>
</levelDescriptor>
</descriptorDom>
<properties>
<entry>
<string>//css-group</string>
<list>
<string></string>
</list>
</entry>
</properties>
<isFolder>false</isFolder>
</item>
<item>
<name>index.xml</name>
<url>/site/website/index.xml</url>
<descriptorUrl>/site/website/index.xml</descriptorUrl>
<descriptorDom>
<page>
<content-type>/acmecom/page/entry</content-type>
<file-name valid="true">index.xml</file-name>
<internal-name>acmecom Home</internal-name>
<title>ACME</title>
<meta-description>test</meta-description>
<corporateKeywords />
<meta-keywords>keyword-a</meta-keywords>
<display-template>/templates/web/entry.ftl</display-template>
<descriptor-mapper>hierarchical-mapper</descriptor-mapper>
<components />
<lastModifiedBy>admin</lastModifiedBy>
<lastModifiedDate>2011-05-02T18:08:27-00:00</lastModifiedDate>
<template-version>1.3</template-version>
<shoutBoxes>
<shoutBox>
<content-type>/acmecom/component/shoutbox</content-type>
<file-name valid="true">what-we-do.xml</file-name>
<internal-name>What We Do Shout Box</internal-name>
<descriptor-mapper>hierarchical-mapper</descriptor-mapper>
<display-template>/templates/web/components/shout-box.ftl
</display-template>
<heading>What We Do</heading>
<subhead>Enterprise Solutions</subhead>
<thumb>/static-assets/images/icon1.gif</thumb>
<image>/static-assets/images/home_section_thumb1.jpg</image>
<body valid="true">Empower your organization with personalized,
cost-effective communications solutions using Acme's complete
portfolio of reliable, scalable products and services</body>
<link>/about</link>
<targeting>
<roles />
</targeting>
<lastModifiedBy>admin</lastModifiedBy>
<lastModifiedDate>2011-05-03T06:54:16-00:00</lastModifiedDate>
<template-version>1.0</template-version>
</shoutBox>
<shoutBox>
<content-type>/acmecom/component/shoutbox</content-type>
<file-name valid="true">award-winning.xml</file-name>
<internal-name>Award Winning Shout Box</internal-name>
<descriptor-mapper>hierarchical-mapper</descriptor-mapper>
<display-template>/templates/web/components/shout-box.ftl
</display-template>
<heading>Award Winning Service</heading>
<subhead>Industry Leadership</subhead>
<thumb>/static-assets/images/icon2.gif</thumb>
<image>/static-assets/images/home_section_thumb2.jpg</image>
<body valid="true">Today, ACME delivers award winning solutions and
unmatched service to business-class customers across the globe.
</body>
<link>/services</link>
<targeting>
<roles />
</targeting>
<lastModifiedBy>admin</lastModifiedBy>
<lastModifiedDate>2011-05-03T06:51:23-00:00</lastModifiedDate>
<template-version>1.0</template-version>
</shoutBox>
<shoutBox>
<content-type>/acmecom/component/shoutbox</content-type>
<file-name valid="true">xr9000-101.xml</file-name>
<internal-name>XR9000 Shout Box</internal-name>
<descriptor-mapper>hierarchical-mapper</descriptor-mapper>
<display-template>/templates/web/components/shout-box.ftl
</display-template>
<heading>ACME XR9000 101</heading>
<subhead>Master the solution, conqure your neeeds</subhead>
<thumb>/static-assets/images/icon3.gif</thumb>
<image>/static-assets/images/home_section_thumb3.jpg</image>
<body valid="true">Get the resources you need to understand how
ACME XR9000 works and experience the benefits for yourself.
</body>
<link>/products</link>
<targeting>
<roles />
</targeting>
<lastModifiedBy>admin</lastModifiedBy>
<lastModifiedDate>2011-05-03T06:54:53-00:00</lastModifiedDate>
</shoutBox>
</shoutBoxes>
<entryPromos>
<promo>
<image>/static-assets/images/slider_photo.jpg</image>
<caption>To remain competitive and functioning at peak
efficiency, organizations like yours can't afford to waste
valuable resources on outdated, inefficient, or
improperly&lt;br/&gt;implemented communications equipment.
</caption>
</promo>
<promo>
<image>/static-assets/images/slider_photo3.jpg</image>
<caption>When you call ACME Customer Care, you speak directly to
our representatives - not to automated prompts or recordings.
Our highly trained professionals provide&lt;br/&gt;exceptional
customer support and deliver one of the highest levels of
first-call resolution in the industry.</caption>
</promo>
<promo>
<image>/static-assets/images/slider_photo2.jpg</image>
<caption>We're the best your money can buy. Hands Down.</caption>
</promo>
</entryPromos>
<navigable>false</navigable>
</page>
</descriptorDom>
<properties>
<entry>
<string>//internal-name</string>
<string>acmecom Home</string>
</entry>
<entry>
<string>//meta-keywords</string>
<string>keyword-a</string>
</entry>
</properties>
<isFolder>false</isFolder>
</item>
<tree>
<name>products</name>
<url>/site/website/products</url>
<descriptorUrl>/site/website/products.meta.xml</descriptorUrl>
<isFolder>true</isFolder>
<children>
<item>
<name>index.xml</name>
<url>/site/website/products/index.xml</url>
<descriptorUrl>/site/website/products/index.xml</descriptorUrl>
<descriptorDom>
<page>
<pageIdGroup>400</pageIdGroup>
<pageId>402</pageId>
<file-name>index.xml</file-name>
<internal-name>Products</internal-name>
<placeInNav>true</placeInNav>
<orders>
<order>
<order-name>default</order-name>
<order-value>1</order-value>
</order>
</orders>
<status>true</status>
<body valid="true">&lt;h1 class="head"&gt;Lorem ipsum dolor sit
amet&lt;br clear="none"/&gt; &lt;/h1&gt;&lt;p&gt;Lorem ipsum
dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
nibh euismod tincidunt ut laoreet dolore magna aliquam erat
litterarum formas humanitatis per seacula quarta decima et
quinta decima. Eodem modo typi, qui nunc nobis videntur parum
clari, fiant sollemnes in futurum.&lt;/p&gt;</body>
<rightRail valid="true">&lt;h2 class="subHead"&gt;Lorem ipsum
dolor sit amet&lt;/h2&gt;
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
&lt;/div&gt;
&lt;/div&gt;</rightRail>
<title>Products</title>
<meta-description>Products</meta-description>
<corporateKeywords />
<meta-keywords />
<language nodeRef="" />
<display-template>/templates/web/article.ftl</display-template>
<descriptor-mapper>hierarchical-mapper</descriptor-mapper>
<content-type>/acmecom/page/article</content-type>
<components />
<template-version>0.1</template-version>
<pageHeadCode />
<pageFootCode />
<javascripts />
<styles />
<js>.js</js>
<css>.css</css>
<size />
<lastModifiedBy>admin</lastModifiedBy>
<lastModifiedDate>2012-03-25T18:47:37-00:00</lastModifiedDate>
</page>
</descriptorDom>
<properties>
<entry>
<string>//internal-name</string>
<string>Products</string>
</entry>
</properties>
<isFolder>false</isFolder>
</item>
</children>
</tree>
<tree>
<name>services</name>
<url>/site/website/services</url>
<descriptorUrl>/site/website/services.meta.xml</descriptorUrl>
<isFolder>true</isFolder>
<children>
<item>
<name>index.xml</name>
<url>/site/website/services/index.xml</url>
<descriptorUrl>/site/website/services/index.xml</descriptorUrl>
<descriptorDom>
<page>
<pageIdGroup>400</pageIdGroup>
<pageId>413</pageId>
<file-name>index.xml</file-name>
<internal-name>Services</internal-name>
<placeInNav>true</placeInNav>
<orders>
<order>
<order-name>default</order-name>
<order-value>1</order-value>
</order>
</orders>
<status>true</status>
<body valid="true">&lt;h1 class="head"&gt;Lorem ipsum dolor
sit&lt;/h1&gt;&lt;br clear="none"/&gt;Lorem ipsum dolor sit
</body>
<title>Services</title>
<meta-description>Services</meta-description>
<corporateKeywords />
<meta-keywords />
<language nodeRef="" />
<display-template>/templates/web/article-wide.ftl
</display-template>
<descriptor-mapper>hierarchical-mapper</descriptor-mapper>
<content-type>/acmecom/page/article-wide</content-type>
<components />
<template-version>1.0</template-version>
<pageHeadCode />
<pageFootCode />
<javascripts />
<styles />
<js>.js</js>
<css>.css</css>
<size />
<lastModifiedBy>admin</lastModifiedBy>
<lastModifiedDate>2012-03-25T19:01:48-00:00</lastModifiedDate>
</page>
</descriptorDom>
<properties>
<entry>
<string>//internal-name</string>
<string>Services</string>
</entry>
</properties>
<isFolder>false</isFolder>
</item>
</children>
</tree>
</children>
</tree>
{code} ||