Package org.exist.source

Examples of org.exist.source.Source.validate()


                //check are we allowed to show the xquery source - descriptor.xml
//                System.out.println("path="+path);
                if(descriptor.allowSource(path)) {
                 
                  try {
            source.validate(user, Permission.READ);
          } catch (final PermissionDeniedException e) {
            if (getDefaultUser().equals(user)) {
              getAuthenticator().sendChallenge(request, response);
            } else {
              response.sendError(HttpServletResponse.SC_FORBIDDEN, "Permission to view XQuery source for: " + path + " denied. (no read access)");
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.