Package org.apache.gaelucene.auth

Examples of org.apache.gaelucene.auth.GAELuceneAuthException


  public void processCommitNewFile(HttpServletRequest request, HttpServletResponse response)
      throws GAELuceneAuthException, IOException {
    GAELuceneOnlineUser onlineUser = userManager.getOnlineUser(request);
    GAELucenePermission permission = onlineUser.getPermission();
    if (!permission.canAdminSystem()) {
      throw new GAELuceneAuthException(0);
    }
    String queryString = request.getQueryString();
    // parse 'query string'
    Properties parameters = getRequestParameters(queryString, "UTF-8");
    //String action = ParamUtil.getString("do", "").trim();
View Full Code Here


  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()));
View Full Code Here

  public void processShowCacheStats(HttpServletRequest request) throws GAELuceneAuthException {
    GAELuceneOnlineUser onlineUser = userManager.getOnlineUser(request);
    GAELucenePermission permission = onlineUser.getPermission();
    if (!permission.isAuthenticated()) {
      throw new GAELuceneAuthException(0);
    }

    javax.cache.Cache cache = CF.getCache();
    CacheStatistics stats = cache.getCacheStatistics();
    int cacheSize = cache.size();
View Full Code Here

  public void processClearCache(HttpServletRequest request) throws GAELuceneAuthException {
    GAELuceneOnlineUser onlineUser = userManager.getOnlineUser(request);
    GAELucenePermission permission = onlineUser.getPermission();
    if (!permission.isAuthenticated()) {
      throw new GAELuceneAuthException(0);
    }

    javax.cache.Cache cache = CF.getCache();
    cache.clear();
  }
View Full Code Here

  public void processShowPoolStats(HttpServletRequest request) throws GAELuceneAuthException, IOException {
    GAELuceneOnlineUser onlineUser = userManager.getOnlineUser(request);
    GAELucenePermission permission = onlineUser.getPermission();
    if (!permission.isAuthenticated()) {
      throw new GAELuceneAuthException(0);
    }

    long freeMemory = Runtime.getRuntime().freeMemory();
    long totalMemory = Runtime.getRuntime().totalMemory();
    long maxMemory = Runtime.getRuntime().maxMemory();
View Full Code Here

TOP

Related Classes of org.apache.gaelucene.auth.GAELuceneAuthException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.