debut du TableauBord
Policy failures: Code warning - failed on resource TableBordController.java. Reason: The import org.yacos.web.system.session.SessionService is never used, line 1 Override reason:
This commit is contained in:
@@ -249,3 +249,7 @@ report.referee=Evaluated by
|
|||||||
#detail d'un article
|
#detail d'un article
|
||||||
detail.title=Article's detail
|
detail.title=Article's detail
|
||||||
|
|
||||||
|
#tableau de bord
|
||||||
|
tableBord.state=Consult article's state
|
||||||
|
tableBord.manage=Consult list of my articles and modify them
|
||||||
|
|
||||||
|
|||||||
89
YACOSWeb/WebContent/WEB-INF/jsp/tableBord.jsp
Normal file
89
YACOSWeb/WebContent/WEB-INF/jsp/tableBord.jsp
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
<%@ include file="/WEB-INF/decorators/include.jsp"%>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head></head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- Differents role : ROLE_CHAIRMAN, ROLE_PCMEMBER, ROLE_REFEREE, ROLE_AUTHOR, ROLE_ANONYMOUS -->
|
||||||
|
|
||||||
|
<div class="cbb">
|
||||||
|
|
||||||
|
<!-- On affiche les menus seulement si une conference est deja active -->
|
||||||
|
|
||||||
|
<c:if test="${currentConferenceId != null}">
|
||||||
|
|
||||||
|
<!-- MENU : CHAIRMAN -->
|
||||||
|
<authz:authorize ifAllGranted="ROLE_CHAIRMAN">
|
||||||
|
<div class="cbb">
|
||||||
|
<h4><fmt:message key="menu.chairman.title" /></h4>
|
||||||
|
<ul>
|
||||||
|
<li><a href="<c:url value="addConference.htm"/>"><fmt:message key="menu.chairman.conference.create" /></a></li>
|
||||||
|
<li><a href="<c:url value="addConference.htm?action=modify"/>"><fmt:message key="menu.chairman.conference.modify" /></a></li>
|
||||||
|
<li><a href="<c:url value="dispatchArticleList.htm"/>"><fmt:message key="menu.chairman.article.dispatch" /></a></li>
|
||||||
|
<li><a href="<c:url value="validateArticle.htm"/>"><fmt:message key="menu.chairman.article.validate" /></a></li>
|
||||||
|
</ul>
|
||||||
|
<div id="footer"></div>
|
||||||
|
</div>
|
||||||
|
</authz:authorize>
|
||||||
|
|
||||||
|
<!-- MENU : ROLE_PCMEMBER -->
|
||||||
|
<authz:authorize ifAllGranted="ROLE_PCMEMBER">
|
||||||
|
<div class="cbb">
|
||||||
|
<h4><fmt:message key="menu.pcmember.title" /></h4>
|
||||||
|
<ul>
|
||||||
|
<li><a href="<c:url value="choosePreference.htm"/>"><fmt:message key="menu.pcmember.article.preference" /></a></li>
|
||||||
|
<li><a href="<c:url value="#"/>"><fmt:message key="menu.pcmember.article.delegate" /></a></li>
|
||||||
|
<li><a href="<c:url value="listEvaluation.htm"/>"><fmt:message key="menu.pcmember.article.evaluation" /></a></li>
|
||||||
|
<li><a href="<c:url value="stateArticle.htm?role=2"/>"><fmt:message key="tableBord.state" /></a></li>
|
||||||
|
<li><a href="<c:url value="#"/>"><fmt:message key="menu.pcmember.article.evaluation.modify" /></a></li>
|
||||||
|
<li><a href="<c:url value="#"/>"><fmt:message key="menu.pcmember.article.discussion" /></a></li>
|
||||||
|
</ul>
|
||||||
|
<div id="footer"></div>
|
||||||
|
</div>
|
||||||
|
</authz:authorize>
|
||||||
|
|
||||||
|
<!-- MENU : ROLE_REFEREE -->
|
||||||
|
<authz:authorize ifAllGranted="ROLE_REFEREE">
|
||||||
|
<div class="cbb">
|
||||||
|
<h4><fmt:message key="menu.referee.title" /></h4>
|
||||||
|
<ul>
|
||||||
|
<li><a href="<c:url value="listEvaluation.htm"/>"><fmt:message key="menu.referee.article.evaluation" /></a></li>
|
||||||
|
<li><a href="<c:url value="stateArticle.htm?role=2"/>"><fmt:message key="tableBord.state" /></a></li>
|
||||||
|
<li><a href="<c:url value="#"/>"><fmt:message key="menu.referee.article.evaluation.modify" /></a></li>
|
||||||
|
</ul>
|
||||||
|
<div id="footer"></div>
|
||||||
|
</div>
|
||||||
|
</authz:authorize>
|
||||||
|
|
||||||
|
<!-- MENU : ROLE_AUTHOR -->
|
||||||
|
<authz:authorize ifAllGranted="ROLE_AUTHOR">
|
||||||
|
<div class="cbb">
|
||||||
|
<h4><fmt:message key="menu.author.title" /></h4>
|
||||||
|
<ul>
|
||||||
|
<li><a href="<c:url value="submissionArticle.htm"/>"><fmt:message key="menu.author.article.submission" /></a></li>
|
||||||
|
<li><a href="<c:url value="manageArticle.htm"/>"><fmt:message key="tableBord.manage" /></a></li>
|
||||||
|
<li><a href="<c:url value="stateArticle.htm?role=1"/>"><fmt:message key="tableBord.etat" /></a></li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div id="footer"></div>
|
||||||
|
</div>
|
||||||
|
</authz:authorize>
|
||||||
|
|
||||||
|
<!-- MENU : ROLE_ANONYMOUS-->
|
||||||
|
<authz:authorize ifNotGranted="ROLE_AUTHOR">
|
||||||
|
<div class="cbb">
|
||||||
|
<h4><fmt:message key="menu.anonymous.title" /></h4>
|
||||||
|
<ul>
|
||||||
|
<li><a href="<c:url value="submissionArticle.htm"/>"><fmt:message key="menu.anonymous.article.submission" /></a></li>
|
||||||
|
</ul>
|
||||||
|
<div id="footer"></div>
|
||||||
|
</div>
|
||||||
|
</authz:authorize>
|
||||||
|
|
||||||
|
</c:if>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
<prop key="/listReport.htm">ListReportController</prop>
|
<prop key="/listReport.htm">ListReportController</prop>
|
||||||
<prop key="/forgotPassword.htm">ForgotPasswordController</prop>
|
<prop key="/forgotPassword.htm">ForgotPasswordController</prop>
|
||||||
<prop key="/detailArticle.htm">DetailArticleController</prop>
|
<prop key="/detailArticle.htm">DetailArticleController</prop>
|
||||||
|
<prop key="/tableBord.htm">TableBordController</prop>
|
||||||
</props>
|
</props>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
@@ -112,6 +113,11 @@
|
|||||||
<bean id="submissionCheck"
|
<bean id="submissionCheck"
|
||||||
class="org.yacos.web.author.validator.ValidateSubmission">
|
class="org.yacos.web.author.validator.ValidateSubmission">
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
||||||
|
<bean id="TableBordController"
|
||||||
|
class="org.yacos.web.system.controller.TableBordController">
|
||||||
|
</bean>
|
||||||
|
|
||||||
<bean id="ChoosePreferenceController"
|
<bean id="ChoosePreferenceController"
|
||||||
class="org.yacos.web.PCmember.controller.ChoosePreferenceController">
|
class="org.yacos.web.PCmember.controller.ChoosePreferenceController">
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
package org.yacos.web.system.controller;
|
||||||
|
import java.io.IOException;
|
||||||
|
import javax.servlet.ServletException;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.apache.commons.logging.Log;
|
||||||
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
import org.springframework.web.servlet.mvc.SimpleFormController;
|
||||||
|
import org.yacos.web.system.controller.NoConferenceSelectedException;
|
||||||
|
import org.yacos.web.system.session.SessionService;
|
||||||
|
|
||||||
|
public class TableBordController extends SimpleFormController {
|
||||||
|
|
||||||
|
protected final Log logger = LogFactory.getLog(getClass());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
|
||||||
|
throws ServletException, IOException, NoConferenceSelectedException {
|
||||||
|
|
||||||
|
logger.info("Returning TableBord view");
|
||||||
|
|
||||||
|
|
||||||
|
/*String confID=SessionService.getInstance().getCurrentConferenceId().toString();
|
||||||
|
|
||||||
|
|
||||||
|
getServletContext().setAttribute("confID", confID);
|
||||||
|
*/
|
||||||
|
return new ModelAndView("tableBord");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user