Package org.apache.roller.presentation

Examples of org.apache.roller.presentation.RollerRequest


    }
   
   
    private Hashtable createCategoryStruct(WeblogCategoryData category, String userid) {
       
        RollerRequest rreq = RollerRequest.getRollerRequest();
        HttpServletRequest req = rreq.getRequest();
        String contextUrl = RollerContext.getRollerContext().getAbsoluteContextUrl(req);
       
        Hashtable struct = new Hashtable();
        struct.put("description", category.getPath());
       
View Full Code Here


    HttpServletResponse response)
    throws IOException, ServletException
  {
    try
    {
            RollerRequest rreq  = RollerRequest.getRollerRequest(request);
            WebsiteData website = rreq.getWebsite();           
            RollerSession rses = RollerSession.getRollerSession(request);
      if (rses.isUserAuthorizedToAdmin(website) )
      {
        IndexManager manager =
                        RollerFactory.getRoller().getIndexManager();
View Full Code Here

        HttpServletResponse response)
        throws IOException, ServletException
    {
        try
        {
            RollerRequest rreq  = RollerRequest.getRollerRequest(request);
            WebsiteData website = rreq.getWebsite();           
            RollerSession rses = RollerSession.getRollerSession(request);
      if ( rses.isUserAuthorizedToAdmin(website) )
      {
              //PageCacheFilter.removeFromCache(request, website);
                CacheManager.invalidate(website);
View Full Code Here

                ActionMapping mapping,
                BookmarksForm form) throws RollerException
        {
            super("",  request, response, mapping);
           
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            RollerSession rollerSession = RollerSession.getRollerSession(request);
            BookmarkManager bmgr = RollerFactory.getRoller().getBookmarkManager();

            allFolders = new TreeSet(new FolderPathComparator());

            // Find folderid wherever it may be
            String folderId = (String)
                request.getAttribute(RollerRequest.FOLDERID_KEY);
            if (null == folderId)
            {
                folderId = request.getParameter(RollerRequest.FOLDERID_KEY);
            }
            if (null == folderId)
            {
                folderId = form.getFolderId();
            }

            if (null == folderId || folderId.equals("null"))
            {
                website = rreq.getWebsite();
                folder = bmgr.getRootFolder(website);
                folderId = folder.getId();
            }
            else
            {
View Full Code Here

       
        try {
            BasePageModel pageModel = new BasePageModel(
                    "cacheInfo.title", request, response, mapping);
            request.setAttribute("model",pageModel);               
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            RollerSession rollerSession = RollerSession.getRollerSession(request);
            if (rollerSession.isGlobalAdminUser() ) {
               
                // caching instrumentation
                Map cacheStats = CacheManager.getStats();
View Full Code Here

       
        try {
            BasePageModel pageModel = new BasePageModel(
                    "cacheInfo.title", request, response, mapping);
            request.setAttribute("model",pageModel);               
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            RollerSession rollerSession = RollerSession.getRollerSession(request);
            if (rollerSession.isGlobalAdminUser() ) {
               
                // see if a specific cache was specified
                String handlerClass = request.getParameter("cache");
View Full Code Here

        ActionForm          actionForm,
        HttpServletRequest  request,
        HttpServletResponse response)
        throws Exception
    {
        RollerRequest rreq = RollerRequest.getRollerRequest(request);
        RollerSession rses = RollerSession.getRollerSession(request);
        BookmarkManager bmgr = RollerFactory.getRoller().getBookmarkManager();
        BookmarkFormEx form = (BookmarkFormEx)actionForm;
       
        FolderData parentFolder = null;
        if (null!=rreq.getBookmark() && null==request.getParameter("correct"))
        {
            // If request specifies bookmark and we are not correcting an
            // already submitted form then load that bookmark into the form.
            BookmarkData bd = rreq.getBookmark();
            form.copyFrom(bd, request.getLocale());
            request.setAttribute("state","edit");
               
            // Pass bookmark's Folder on as attribute.                
            parentFolder = bd.getFolder();

            request.setAttribute("model", new BasePageModel(
                "bookmarkForm.edit.title", request, response, mapping));
        }
        else if (null != request.getParameter("correct"))
        {
            // We are correcting a previously submtted form.
            request.setAttribute("state","correcting");
               
            // Folder is specified by request param, pass it on as attribute.                
            parentFolder = bmgr.getFolder(rreq.getFolder().getId());       
           
            request.setAttribute("model", new BasePageModel(
                "bookmarkForm.correct.title", request, response, mapping));
        }
        else
        {
            // We are adding a new bookmark
            request.setAttribute("state","add");
           
            // Folder is specified by request param, pass it on as attribute.                
            parentFolder = bmgr.getFolder(rreq.getFolder().getId());
           
            request.setAttribute("model", new BasePageModel(
                "bookmarkForm.add.title", request, response, mapping));
        }
       
View Full Code Here

        HttpServletResponse response)
        throws Exception
    {
        ActionForward forward = mapping.findForward("Bookmarks");
        BookmarkFormEx form = (BookmarkFormEx)actionForm;
        RollerRequest rreq = RollerRequest.getRollerRequest(request);
        BookmarkManager bmgr = RollerFactory.getRoller().getBookmarkManager();

        BookmarkData bd = null;
        if (null != form.getId() && !form.getId().trim().equals(""))
        {
View Full Code Here

        HttpServletResponse response)
        throws Exception
    {
        ActionForward forward = mapping.findForward("Bookmarks");
        FolderFormEx form = (FolderFormEx)actionForm;
        RollerRequest rreq = RollerRequest.getRollerRequest(request);
        RollerSession rses = RollerSession.getRollerSession(request);
        BookmarkManager bmgr = RollerFactory.getRoller().getBookmarkManager();
        WebsiteData website = null;
               
        FolderData fd = null;
View Full Code Here

    {
        ActionForward forward = mapping.findForward("adminUser.page");
        try
        {
            UserData user = null;
            RollerRequest rreq = RollerRequest.getRollerRequest(request);
            RollerSession rollerSession = RollerSession.getRollerSession(request);
            if (rollerSession.isGlobalAdminUser() )
            {
                UserAdminForm userForm = (UserAdminForm)actionForm;
                UserManager mgr = RollerFactory.getRoller().getUserManager();
View Full Code Here

TOP

Related Classes of org.apache.roller.presentation.RollerRequest

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.