com.xpn.xwiki.plugin.query
Class SecHibernateQuery

java.lang.Object
  extended by com.xpn.xwiki.plugin.query.DefaultQuery
      extended by com.xpn.xwiki.plugin.query.HibernateQuery
          extended by com.xpn.xwiki.plugin.query.SecHibernateQuery
All Implemented Interfaces:
IQuery

public class SecHibernateQuery
extends HibernateQuery

Security version of HibernateQuery


Nested Class Summary
 
Nested classes/interfaces inherited from class com.xpn.xwiki.plugin.query.HibernateQuery
HibernateQuery.TranslateException, HibernateQuery.XWikiHibernateQueryTranslator
 
Field Summary
private  java.util.List _allowdocs
           
(package private)  boolean isAllow
           
(package private)  boolean isQueryRight
           
(package private)  java.util.Set isReturnClasses
           
(package private)  boolean isViewRight
           
private  boolean security
           
 
Fields inherited from class com.xpn.xwiki.plugin.query.HibernateQuery
_from, _hqlparams, _order, _select, _userwhere, _where, abr_xwiki_classes, hbn_xwiki_classes, jcl_xwiki_classes, qn_flexproperty, qn_property, qn_xwiki_attachment, qn_xwiki_document, qn_xwiki_object, translator
 
Fields inherited from class com.xpn.xwiki.plugin.query.DefaultQuery
_fetchSize, _firstResult, _isdistinct, _queryFactory, _querytree
 
Constructor Summary
SecHibernateQuery(org.apache.jackrabbit.core.query.QueryRootNode tree, IQueryFactory qf)
           
 
Method Summary
protected  void _addPropClass(java.lang.Class class1)
           
protected  void _addSelect(HibernateQuery.XWikiHibernateQueryTranslator.ObjProperty p)
           
 boolean constructWhere(java.lang.StringBuffer sb)
           
 java.util.List getNeededRight()
           
 boolean isAllowed()
           
 java.util.List list()
           
 
Methods inherited from class com.xpn.xwiki.plugin.query.HibernateQuery
_addHqlParam, fromJCRName, getHibernateStore, hqlexec, setDistinct
 
Methods inherited from class com.xpn.xwiki.plugin.query.DefaultQuery
getCache, getContext, getQueryTree, getStore, setFirstResult, setMaxResults, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

security

private boolean security

_allowdocs

private java.util.List _allowdocs

isReturnClasses

java.util.Set isReturnClasses

isQueryRight

boolean isQueryRight

isViewRight

boolean isViewRight

isAllow

boolean isAllow
Constructor Detail

SecHibernateQuery

public SecHibernateQuery(org.apache.jackrabbit.core.query.QueryRootNode tree,
                         IQueryFactory qf)
Method Detail

constructWhere

public boolean constructWhere(java.lang.StringBuffer sb)
Overrides:
constructWhere in class HibernateQuery
Returns:
true, if something added

_addSelect

protected void _addSelect(HibernateQuery.XWikiHibernateQueryTranslator.ObjProperty p)
Overrides:
_addSelect in class HibernateQuery

_addPropClass

protected void _addPropClass(java.lang.Class class1)
Overrides:
_addPropClass in class HibernateQuery

list

public java.util.List list()
                    throws XWikiException
Specified by:
list in interface IQuery
Overrides:
list in class HibernateQuery
Throws:
XWikiException

getNeededRight

public java.util.List getNeededRight()

isAllowed

public boolean isAllowed()


Copyright 2003 Ludovic Dubost