|
What this is
Other links
The source code/* * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/user/ActionInUserModule.java,v 1.51 2005/01/26 09:57:25 minhnn Exp $ * $Author: minhnn $ * $Revision: 1.51 $ * $Date: 2005/01/26 09:57:25 $ * * ==================================================================== * * Copyright (C) 2002-2005 by MyVietnam.net * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * All copyright notices regarding mvnForum MUST remain intact * in the scripts and in the outputted HTML. * The "powered by" text/logo with a link back to * http://www.mvnForum.com and http://www.MyVietnam.net in the * footer of the pages MUST remain visible when the pages * are viewed on the internet or intranet. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Support can be obtained from support forums at: * http://www.mvnForum.com/mvnforum/index * * Correspondence and Marketing Questions can be sent to: * info@MyVietnam.net * * @author: Minh Nguyen minhnn@MyVietnam.net * @author: Mai Nguyen mai.nh@MyVietnam.net */ package com.mvnforum.user; import java.util.Locale; import javax.servlet.http.HttpServletRequest; import com.mvnforum.MVNForumResourceBundle; import com.mvnforum.auth.AbstractLocalizableAction; import com.mvnforum.auth.Action; import net.myvietnam.mvncore.exception.BadInputException; import net.myvietnam.mvncore.exception.MissingURLMapEntryException; import net.myvietnam.mvncore.util.*; public class ActionInUserModule extends AbstractLocalizableAction implements Action { public ActionInUserModule(HttpServletRequest request, String requestURI) throws MissingURLMapEntryException { // lastRequestTime = System.currentTimeMillis(); // firstRequestTime = lastRequestTime;// be very careful url = null;// url may be null after the code below desc = null;// but desc is never be null // the request SHOULD ONLY be used to get the queryString String queryString = StringUtil.getEmptyStringIfNull(request.getQueryString()); Locale locale = I18nUtil.getLocaleInRequest(request); if (requestURI.equals("/error")) { desc = "mvnforum.user.action.desc.Error"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.Error"); } else if (requestURI.equals("/index") || requestURI.equals("") || requestURI.equals("/")) { url = "index"; desc = "mvnforum.user.action.desc.Index"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.Index"); } else if (requestURI.equals("/listonlineusers")) { url = "listonlineusers"; desc = "mvnforum.user.action.desc.ListOnlineUsers"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ListOnlineUsers"); } else if (requestURI.equals("/listforums")) { url = "listforums"; desc = "mvnforum.user.action.desc.ListForums"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ListForums"); } else if (requestURI.equals("/listthreads")) { url = "listthreads" + "?" + queryString; try { int forum = ParamUtil.getParameterInt(request, "forum"); desc = "mvnforum.user.action.desc.ListThreads.without_forum"; this.params = new Object[]{new Integer(forum)}; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ListThreads.without_forum", new Object[]{new Integer(forum)}); } catch (BadInputException ex) { desc = "mvnforum.user.action.desc.ListThreads.with_forum"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ListThreads.with_forum"); } } else if (requestURI.equals("/listrecentthreads")) { url = "listrecentthreads" + "?" + queryString; desc = "mvnforum.user.action.desc.ListRecentThreads"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ListRecentThreads"); } else if (requestURI.equals("/addpost")) { //url = "addpost";//@todo review and support it later desc = "mvnforum.user.action.desc.AddPost"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.AddPost");// write a better desc here } else if (requestURI.equals("/addpostprocess")) { desc = "mvnforum.user.action.desc.AddPostProcess"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.AddPostProcess"); } else if (requestURI.equals("/editpost")) { //url = "editpost"; // maybe we can allow other users to view the post desc = "mvnforum.user.action.desc.EditPost"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.EditPost"); } else if (requestURI.equals("/updatepost")) { // maybe we can allow other users to view the post desc = "mvnforum.user.action.desc.UpdatePost"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UpdatePost"); } else if (requestURI.equals("/addattachment")) { desc = "mvnforum.user.action.desc.AddAttachment"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.AddAttachment"); } else if (requestURI.equals("/addattachmentprocess")) { desc = "mvnforum.user.action.desc.AddAttachmentProcess"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.AddAttachmentProcess"); } else if (requestURI.equals("/myfavoritethread")) { url = "myfavoritethread"; desc = "mvnforum.user.action.desc.MyFavoriteThread"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.MyFavoriteThread"); } else if (requestURI.equals("/addfavoritethreadprocess")) { url = "addfavoritethreadprocess" + "?" + queryString; desc = "mvnforum.user.action.desc.AddFavoriteThreadProcess"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.AddFavoriteThreadProcess"); } else if (requestURI.equals("/deletefavoritethreadprocess")) { desc = "mvnforum.user.action.desc.DeleteFavoriteThreadProcess"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.DeleteFavoriteThreadProcess"); } else if (requestURI.equals("/viewthread")) { url = "viewthread" + "?" + queryString; try { int thread = ParamUtil.getParameterInt(request, "thread"); desc = "mvnforum.user.action.desc.ViewThread.without_thread"; params = new Object[]{new Integer(thread)}; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ViewThread.without_thread", new Object[]{new Integer(thread)}); } catch (BadInputException ex) { desc = "mvnforum.user.action.desc.ViewThread.with_thread"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ViewThread.with_thread"); } } else if (requestURI.equals("/printthread")) { url = "printthread" + "?" + queryString; try { int thread = ParamUtil.getParameterInt(request, "thread"); desc = "mvnforum.user.action.desc.PrintThread.without_input_error"; params = new Object[]{new Integer(thread)}; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.PrintThread.without_input_error", new Object[] {new Integer(thread)}); } catch (BadInputException ex) { desc = "mvnforum.user.action.desc.PrintThread.with_input_error"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.PrintThread.with_input_error"); } } else if (requestURI.equals("/printpost")) { url = "printpost" + "?" + queryString; try { int post = ParamUtil.getParameterInt(request, "post"); desc = "mvnforum.user.action.desc.PrintPost.without_input_error"; params = new Object[] {new Integer(post)}; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.PrintPost.without_input_error", new Object[] {new Integer(post)}); } catch (BadInputException ex) { desc = "mvnforum.user.action.desc.PrintPost.with_input_error"; //MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.PrintPost.with_input_error"); } } else if (requestURI.equals("/viewmember")) { url = "viewmember" + "?" + queryString; desc = "mvnforum.user.action.desc.ViewMember"; params = new Object[] {queryString}; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ViewMember", new Object[] {queryString}); } else if (requestURI.equals("/listmembers")) { url = "listmembers" + "?" + queryString; desc = "mvnforum.user.action.desc.ListMembers"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ListMembers"); } else if (requestURI.equals("/editmember")) { desc = "mvnforum.user.action.desc.EditMember"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.EditMember"); } else if (requestURI.equals("/updatemember")) { desc = "mvnforum.user.action.desc.UpdateMember"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UpdateMember"); } else if (requestURI.equals("/login")) { url = "login"; desc = "mvnforum.user.action.desc.Login"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.Login"); } else if (requestURI.equals("/loginprocess")) {// will be sendRedirect desc = "mvnforum.user.action.desc.LoginProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.LoginProcess"); } else if (requestURI.equals("/logout")) { desc = "mvnforum.user.action.desc.Logout"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.Logout"); } else if (requestURI.equals("/deletecookieprocess")) { desc = "mvnforum.user.action.desc.DeleteCookiesProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.DeleteCookiesProcess"); } else if (requestURI.equals("/rsssummary")) { url = "rsssummary" + "?" + queryString; desc = "mvnforum.user.action.desc.RSS"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.RSS"); } else if (requestURI.equals("/atom")) { url = "atom" + "?" + queryString; desc = "mvnforum.user.action.desc.RSS"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.RSS"); } else if (requestURI.equals("/rss")) { url = "rss" + "?" + queryString; desc = "mvnforum.user.action.desc.RSS"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.RSS"); } else if (requestURI.equals("/rss2")) { url = "rss2" + "?" + queryString; desc = "mvnforum.user.action.desc.RSS"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.RSS"); } else if (requestURI.equals("/help")) { url = "help"; desc = "mvnforum.user.action.desc.Help"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.Help"); } else if (requestURI.equals("/helpintro")) { url = "helpintro"; desc = "mvnforum.user.action.desc.HelpIntro"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.HelpIntro"); } else if (requestURI.equals("/helpinstall")) { url = "helpinstall"; desc = "mvnforum.user.action.desc.HelpInstall"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.HelpInstall"); } else if (requestURI.equals("/helpuser")) { url = "helpuser"; desc = "mvnforum.user.action.desc.HelpUser"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.HelpUser"); } else if (requestURI.equals("/helpadmin")) { url = "helpadmin"; desc = "mvnforum.user.action.desc.HelpAdmin"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.HelpAdmin"); } else if (requestURI.equals("/helpdeveloper")) { url = "helpdeveloper"; desc = "mvnforum.user.action.desc.HelpDeveloper"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.HelpDeveloper"); } else if (requestURI.equals("/faq")) { url = "faq"; desc = "mvnforum.user.action.desc.FAQ"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.FAQ"); } else if (requestURI.equals("/search")) { url = "search"; desc = "mvnforum.user.action.desc.Search"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.Search"); } else if (requestURI.equals("/searchprocess")) { url = "searchprocess" + "?" + queryString; desc = "mvnforum.user.action.desc.SearchProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.SearchProcess"); } else if (requestURI.equals("/searchmember")) { url = "searchmember" + "?" + queryString; desc = "mvnforum.user.action.desc.SearchMember"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.SearchMember"); } else if (requestURI.equals("/registermember")) { url = "registermember"; desc = "mvnforum.user.action.desc.RegisterMember"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.RegisterMember"); } else if (requestURI.equals("/registermemberprocess")) { desc = "mvnforum.user.action.desc.RegisterMemberProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.RegisterMemberProcess"); } else if (requestURI.equals("/myprofile")) { desc = "mvnforum.user.action.desc.MyProfile"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.MyProfile"); } else if (requestURI.equals("/changepassword")) { desc = "mvnforum.user.action.desc.ChangePassword"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ChangePassword"); } else if (requestURI.equals("/changepasswordprocess")) { desc = "mvnforum.user.action.desc.ChangePasswordProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ChangePasswordProcess"); } else if (requestURI.equals("/changeemail")) { desc = "mvnforum.user.action.desc.ChangeEmail"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ChangeEmail"); } else if (requestURI.equals("/changeemailprocess")) { desc = "mvnforum.user.action.desc.ChangeEmailProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ChangeEmailProcess"); } else if (requestURI.equals("/changesignature")) { desc = "mvnforum.user.action.desc.ChangeSignature"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ChangeSignature"); } else if (requestURI.equals("/changesignatureprocess")) { desc = "mvnforum.user.action.desc.ChangeSignatureProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ChangeSignatureProcess"); } else if (requestURI.equals("/changeavatar")) { desc = "mvnforum.user.action.desc.ChangeAvatar"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ChangeAvatar"); } else if (requestURI.equals("/uploadavatar")) { desc = "mvnforum.user.action.desc.UploadAvatar"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UploadAvatar"); } else if (requestURI.equals("/updateavatar")) { desc = "mvnforum.user.action.desc.UpdateAvatar"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UpdateAvatar"); } else if (requestURI.equals("/mywatch")) { desc = "mvnforum.user.action.desc.MyWatch"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.MyWatch"); } else if (requestURI.equals("/addwatch")) { desc = "mvnforum.user.action.desc.AddWatch"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.AddWatch"); } else if (requestURI.equals("/addwatchprocess")) { desc = "mvnforum.user.action.desc.AddWatchProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.AddWatchProcess"); } else if (requestURI.equals("/deletewatchprocess")) { desc = "mvnforum.user.action.desc.DeleteWatchProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.DeleteWatchProcess"); } else if (requestURI.equals("/mymessage")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/addmessage")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/addmessageprocess")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/viewmessage")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/sendmessageprocess")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/deletemessageprocess")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/processmessage")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/addmessageattachment")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/addmessageattachmentprocess")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/mymessagefolder")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/addmessagefolder")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/addmessagefolderprocess")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/deletemessagefolder")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/deletemessagefolderprocess")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/updatefolderorder")) { desc = "mvnforum.user.action.desc.UsingMessage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.UsingMessage"); } else if (requestURI.equals("/listcompanies")) { url = "listcompanies" + "?" + queryString; desc = "mvnforum.user.action.desc.ListCompanies"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ListCompanies"); } else if (requestURI.equals("/companyhomepage")) { url = "companyhomepage" + "?" + queryString; desc = "mvnforum.user.action.desc.CompanyHomePage"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.CompanyHomePage"); } else if (requestURI.equals("/deletethread")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/deletethreadprocess")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/movethread")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/movethreadprocess")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/editthreadstatus")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/editthreadstatusprocess")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/editthreadtype")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/editthreadtypeprocess")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/modcp")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/listrecentpendingthreads")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/listthreadswithpendingposts")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/listrecentthreadswithpendingposts")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/moderatependingthreads")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/moderatependingthreadsprocess")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/moderatependingposts")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/moderatependingpostsprocess")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/listpendingthreadsxml")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/deletepost")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/deletepostprocess")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/deleteattachment")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/deleteattachmentprocess")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/editattachment")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/editattachmentprocess")) { desc = "mvnforum.user.action.desc.ModerateForum"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ModerateForum"); } else if (requestURI.equals("/iforgotpasswords")) { url = "iforgotpasswords"; desc = "mvnforum.user.action.desc.IForgotPasswords"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.IForgotPasswords"); } else if (requestURI.equals("/forgotpasswordprocess")) { desc = "mvnforum.user.action.desc.ForgotPasswordProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ForgotPasswordProcess"); } else if (requestURI.equals("/resetpassword")) { url = "resetpassword"; desc = "mvnforum.user.action.desc.ResetPassword"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ResetPassword"); } else if (requestURI.equals("/resetpasswordprocess")) { desc = "mvnforum.user.action.desc.ResetPasswordProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ResetPasswordProcess"); } else if (requestURI.equals("/sendactivationcode")) { url = "sendactivationcode"; desc = "mvnforum.user.action.desc.SendActivationCode"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.SendActivationCode"); } else if (requestURI.equals("/sendactivationcodeprocess")) { desc = "mvnforum.user.action.desc.SendActivationCodeProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.SendActivationCodeProcess"); } else if (requestURI.equals("/activatemember")) { url = "activatemember"; desc = "mvnforum.user.action.desc.ActivateMember"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ActivateMember"); } else if (requestURI.equals("/activatememberprocess")) { desc = "mvnforum.user.action.desc.ActivateMemberProcess"; //desc = MVNForumResourceBundle.getString(locale, "mvnforum.user.action.desc.ActivateMemberProcess"); } // check that desc is never null if (desc == null) { //String errorMessage = "Cannot find matching entry in ActionInUserModule for '" + requestURI + "'. Please contact the administrator."; String localizedMessage = MVNForumResourceBundle.getString(locale,"mvncore.exception.MissingURLMapEntryException.cannot_find_matching_entry", new Object[] {requestURI}); throw new MissingURLMapEntryException(localizedMessage); } } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.