|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HstCtxWhereClauseComputer
Implementations should return an xpath filter (where clause) that accounts for searching in virtual subtrees. It is AND-ed with
the where clause from a normal xpath search.
This is only needed for sites/application rendering and searching virtual structures. The actual implementation of
a HstCtxWhereClauseComputer
is accessible through
Method Summary | |
---|---|
String |
getCtxWhereClause(List<javax.jcr.Node> scopes,
boolean skipInvalidScopes)
returns the context where clause as from getCtxWhereClause(Node) , only now combines a set of scopes. |
String |
getCtxWhereClause(javax.jcr.Node node)
This method returns the context where clause (without the '[' ']' brackets ) that is appended to the 'normal' xpath where clause for searching in virtual strutures. |
HstVirtualizer |
getVirtualizer(List<javax.jcr.Node> scopes,
boolean skipInvalidScopes)
Returns a virtualizer for the scopes. |
HstVirtualizer |
getVirtualizer(javax.jcr.Node scope)
Returns a virtualizer for the scope. |
Method Detail |
---|
String getCtxWhereClause(javax.jcr.Node node) throws HstContextualizeException
Node
must be translated into a where clause, and also all possible ancestor filters that
result in the virtual structure most be accounted for in the where clause computer. When the search is done in a non virtual Node
,
the #getCtxWhereClause(Node, HstRequestContext)
is allowed to simply return null
node
- the Node
below which (in other words the scope) the search is done
null
when it cannot
compute one. If there is no where clause, for example because the node is the jcr root node, just "" should be returned
HstContextualizeException
String getCtxWhereClause(List<javax.jcr.Node> scopes, boolean skipInvalidScopes) throws HstContextualizeException
getCtxWhereClause(Node)
, only now combines a set of scopes.
scopes
- skipInvalidScopes
- true
when invalid scopes are skipped
null
when it cannot
compute one. If there is no where clause, for example because the node is the jcr root node, just "" should be returned
HstContextualizeException
HstVirtualizer getVirtualizer(javax.jcr.Node scope) throws HstContextualizeException
scope
-
null
is returned, no virtualization can be done
HstContextualizeException
HstVirtualizer getVirtualizer(List<javax.jcr.Node> scopes, boolean skipInvalidScopes) throws HstContextualizeException
scopes
- all the scopes that was searched inskipInvalidScopes
- whether to skip invalid scopes. If false, a HstContextualizeException is thrown when an invalid scope is found
null
is returned, no virtualization can be done
HstContextualizeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |