private GAELuceneOnlineUserManager userManager = GAELuceneOnlineUserManager.getInstance();
public void processImportPrepackagedIndex(HttpServletRequest request) throws GAELuceneAuthException,
IOException {
GAELuceneOnlineUser onlineUser = userManager.getOnlineUser(request);
GAELucenePermission permission = onlineUser.getPermission();
if (!permission.canAdminSystem()) {
throw new GAELuceneAuthException(0);
}
String dirName = ParamUtil.getString(request, "dir", "").trim();
String category = ParamUtil.getString(request, "cat", "").trim();
log.info("trying to import prepackaged index under '" + dirName + "' to db.");