info.magnolia.module.form.templates.components.multistep
Class NavigationUtils
java.lang.Object
info.magnolia.module.form.templates.components.multistep.NavigationUtils
public class NavigationUtils
- extends Object
Utilities for finding pages with certain paragraphs.
Method Summary |
static void |
advanceIteratorTilAfter(Iterator<javax.jcr.Node> iterator,
javax.jcr.Node content)
|
static boolean |
evaluateCondition(javax.jcr.Node conditionNode,
Map<String,Object> parameters,
boolean passed)
|
static boolean |
evaluateCondition(String fieldValue,
String value,
String condition,
boolean passed)
|
static boolean |
evaluateCriteria(javax.jcr.Node criteriaNode,
Map<String,Object> parameters,
boolean passed)
Deprecated. use evaluateCondition instead. |
static String |
findFirstPageWithParagraphOfType(Iterator<javax.jcr.Node> contentIterator,
Class<?> paragraphType)
|
static String |
findNextPageBasedOnCondition(Iterator<javax.jcr.Node> conditionParagraphIterator,
Map<String,Object> parameters)
|
static String |
findNextPageBasedOnCriteria(Iterator<javax.jcr.Node> criteriaParagraphIterator,
Map<String,Object> parameters)
Deprecated. use findNextPageBasedOnCondition instead. |
static javax.jcr.Node |
findParagraphOfType(javax.jcr.Node content,
Class<?> paragraphType)
|
static javax.jcr.Node |
findParagraphParentPage(javax.jcr.Node paragraph)
|
static Iterable<javax.jcr.Node> |
getPageParagraphsOfType(javax.jcr.Node page,
String componentId)
|
static List<javax.jcr.Node> |
getSameTypeSiblingsAfter(javax.jcr.Node node)
|
static boolean |
isParagraphOfType(javax.jcr.Node child,
Class<?> paragraphType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NavigationUtils
public NavigationUtils()
findFirstPageWithParagraphOfType
public static String findFirstPageWithParagraphOfType(Iterator<javax.jcr.Node> contentIterator,
Class<?> paragraphType)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
advanceIteratorTilAfter
public static void advanceIteratorTilAfter(Iterator<javax.jcr.Node> iterator,
javax.jcr.Node content)
findParagraphOfType
public static javax.jcr.Node findParagraphOfType(javax.jcr.Node content,
Class<?> paragraphType)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
isParagraphOfType
public static boolean isParagraphOfType(javax.jcr.Node child,
Class<?> paragraphType)
getPageParagraphsOfType
public static Iterable<javax.jcr.Node> getPageParagraphsOfType(javax.jcr.Node page,
String componentId)
findNextPageBasedOnCriteria
public static String findNextPageBasedOnCriteria(Iterator<javax.jcr.Node> criteriaParagraphIterator,
Map<String,Object> parameters)
- Deprecated. use findNextPageBasedOnCondition instead.
evaluateCriteria
public static boolean evaluateCriteria(javax.jcr.Node criteriaNode,
Map<String,Object> parameters,
boolean passed)
- Deprecated. use evaluateCondition instead.
findNextPageBasedOnCondition
public static String findNextPageBasedOnCondition(Iterator<javax.jcr.Node> conditionParagraphIterator,
Map<String,Object> parameters)
evaluateCondition
public static boolean evaluateCondition(javax.jcr.Node conditionNode,
Map<String,Object> parameters,
boolean passed)
evaluateCondition
public static boolean evaluateCondition(String fieldValue,
String value,
String condition,
boolean passed)
findParagraphParentPage
public static javax.jcr.Node findParagraphParentPage(javax.jcr.Node paragraph)
throws info.magnolia.cms.security.AccessDeniedException,
javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
- Throws:
info.magnolia.cms.security.AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
getSameTypeSiblingsAfter
public static List<javax.jcr.Node> getSameTypeSiblingsAfter(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.