1 13 package info.magnolia.cms.core.search; 14 15 import info.magnolia.cms.security.AccessManager; 16 17 import javax.jcr.Node; 18 import javax.jcr.RepositoryException; 19 import javax.jcr.query.InvalidQueryException; 20 21 22 26 27 public class QueryManagerImpl implements QueryManager { 28 29 private javax.jcr.query.QueryManager queryManager; 30 31 private AccessManager accessManager; 32 33 protected QueryManagerImpl(javax.jcr.query.QueryManager queryManager, AccessManager accessManager) { 34 this.queryManager = queryManager; 35 this.accessManager = accessManager; 36 } 37 38 public Query createQuery(String s, String s1) throws InvalidQueryException, RepositoryException { 39 javax.jcr.query.Query query = this.queryManager.createQuery(s, s1); 40 return (new QueryImpl(query, this.accessManager)); 41 } 42 43 public Query getQuery(Node node) throws InvalidQueryException, RepositoryException { 44 javax.jcr.query.Query query = this.queryManager.getQuery(node); 45 return (new QueryImpl(query, this.accessManager)); 46 } 47 48 public String [] getSupportedQueryLanguages() throws RepositoryException { 49 return this.queryManager.getSupportedQueryLanguages(); 50 } 51 52 } 53 | Popular Tags |