Exemplo n.º 1
0
 public HippoQueryHandler getHippoQueryHandler(String workspaceName) throws RepositoryException {
   final SearchManager searchManager =
       ((HippoWorkspaceInfo) getWorkspaceInfo(workspaceName)).getSearchManager();
   if (searchManager != null) {
     final QueryHandler queryHandler = searchManager.getQueryHandler();
     if (queryHandler instanceof HippoQueryHandler) {
       return (HippoQueryHandler) queryHandler;
     }
   }
   return null;
 }
Exemplo n.º 2
0
 @Override
 protected void doDispose() {
   super.doDispose();
   synchronized (this) {
     if (searchMgr != null) {
       searchMgr.close();
       searchMgr = null;
     }
   }
 }