|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.categorization.functions.CategorizationTemplatingFunctions
public class CategorizationTemplatingFunctions
This is an component exposing a couple of methods useful for Categorization templates.
Constructor Summary | |
---|---|
CategorizationTemplatingFunctions(info.magnolia.templating.functions.TemplatingFunctions templatingFunction,
info.magnolia.module.templatingkit.functions.STKTemplatingFunctions stkTemplatingFunction,
info.magnolia.rendering.template.registry.TemplateDefinitionRegistry templateDefinitionRegistry,
info.magnolia.module.templatingkit.style.CssSelectorBuilder cssSelectorBuilder,
info.magnolia.module.templatingkit.categorization.CategorizationSupport categorizationSupport,
info.magnolia.module.templatingkit.sites.SiteManager siteManager)
|
Method Summary | |
---|---|
List<javax.jcr.Node> |
getCategories(javax.jcr.Node node,
String nodeDataName)
Return all Category Nodes linked to the current content. |
String |
getCategorizationRepository()
|
String |
getCategorizationRootPath()
|
String |
getCategoryLink(javax.jcr.Node node,
String categoryName)
Get the Link as String of the Higher category. |
String |
getCategoryName(String identifier)
|
javax.jcr.Node |
getCategoryNodeByName(String categoryName)
Get the Node representing the category defined by categoryName. |
javax.jcr.Node |
getCategoryOverviewPage(javax.jcr.Node searchRoot)
Return the CotegoryOverviewPage. |
Collection<javax.jcr.Node> |
getContentByCategory(javax.jcr.Node node,
String name)
|
Collection<javax.jcr.Node> |
getContentByCategoryIdentifier(String sitePath,
String identifier)
Return all Nodes refered by the Category identifier. |
javax.jcr.Node |
getContentByTemplateCategorySubCategory(javax.jcr.Node siteRoot,
String category,
String subCategory)
Return the First element returned by super.getContentListByTemplateCategorySubCategory(Node siteRoot, String category, String subCategory). |
Collection<javax.jcr.Node> |
getRelatedCategories(String name)
Get all nodes referencing this Category. |
boolean |
isCategorizable(javax.jcr.Node subNode)
Check if the node is a category. |
boolean |
isSTKTemplate(javax.jcr.Node pageNode)
Check if this is a n STK template. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public CategorizationTemplatingFunctions(info.magnolia.templating.functions.TemplatingFunctions templatingFunction, info.magnolia.module.templatingkit.functions.STKTemplatingFunctions stkTemplatingFunction, info.magnolia.rendering.template.registry.TemplateDefinitionRegistry templateDefinitionRegistry, info.magnolia.module.templatingkit.style.CssSelectorBuilder cssSelectorBuilder, info.magnolia.module.templatingkit.categorization.CategorizationSupport categorizationSupport, info.magnolia.module.templatingkit.sites.SiteManager siteManager)
Method Detail |
---|
public List<javax.jcr.Node> getCategories(javax.jcr.Node node, String nodeDataName)
content
- nodeDataName
-
public String getCategoryLink(javax.jcr.Node node, String categoryName)
node
- categoryName
-
public javax.jcr.Node getContentByTemplateCategorySubCategory(javax.jcr.Node siteRoot, String category, String subCategory) throws javax.jcr.RepositoryException
siteRoot
- category
- subCategory
-
javax.jcr.RepositoryException
public javax.jcr.Node getCategoryOverviewPage(javax.jcr.Node searchRoot)
searchRoot
-
public Collection<javax.jcr.Node> getContentByCategory(javax.jcr.Node node, String name)
public Collection<javax.jcr.Node> getContentByCategoryIdentifier(String sitePath, String identifier)
sitePath
- uuid
-
public Collection<javax.jcr.Node> getRelatedCategories(String name)
name
-
public javax.jcr.Node getCategoryNodeByName(String categoryName) throws javax.jcr.RepositoryException
categoryName
-
javax.jcr.RepositoryException
public String getCategorizationRootPath()
public String getCategorizationRepository()
public String getCategoryName(String identifier) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public boolean isCategorizable(javax.jcr.Node subNode) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
subNode
-
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public boolean isSTKTemplate(javax.jcr.Node pageNode)
pageNode
-
info.magnolia.registry.RegistrationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |