Examples of canAdminSystem()


Examples of org.apache.gaelucene.auth.GAELucenePermission.canAdminSystem()

  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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.