public void processActivateNewIndex(HttpServletRequest request, HttpServletResponse response)
throws GAELuceneAuthException, IOException {
GAELuceneOnlineUser onlineUser = userManager.getOnlineUser(request);
GAELucenePermission permission = onlineUser.getPermission();
if (!permission.canAdminSystem()) {
throw new GAELuceneAuthException(0);
}
String category = ParamUtil.getString(request, "cat", "").trim();
long version = ParamUtil.getLong(request, "ver", 0);
log.info("trying to activate index of '" + category + "', version=" + version);
GAEIndexCategoryJDO.saveOrUpdate(category, new Long(version), new Long(System.currentTimeMillis()));