Examples of WeblogRequest


Examples of org.apache.roller.weblogger.ui.rendering.util.WeblogRequest

     * Init page model based on request.
     */
    public void init(Map initData) throws WebloggerException {
       
        // we expect the init data to contain a weblogRequest object
        WeblogRequest weblogRequest = (WeblogRequest) initData.get("parsedRequest");
        if(weblogRequest == null) {
            throw new WebloggerException("expected weblogRequest from init data");
        }
       
        // PageModel only works on page requests, so cast weblogRequest
View Full Code Here

Examples of org.apache.roller.weblogger.ui.rendering.util.WeblogRequest

    public void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {

        boolean admin = false;

        WeblogRequest weblogRequest = null;
        try {
            weblogRequest = new WeblogRequest(request);

            // Make sure we have the correct authority
            User user = weblogRequest.getUser();
            if (user == null) {
                // user not found
                response.sendError(HttpServletResponse.SC_NOT_FOUND);
                return;
            } else if (user.hasGlobalPermission("admin")) {
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.