/** * ESUP-Portail Helpdesk - Copyright (c) 2004-2009 ESUP-Portail consortium. */ package org.esupportail.helpdesk.web.controllers; import org.esupportail.commons.aop.cache.RequestCache; import org.esupportail.commons.services.authentication.AuthUtils; /** * A visual bean for the welcome page. */ public class WelcomeController extends AbstractContextAwareController { /** * The serialization id. */ private static final long serialVersionUID = 2470753531372276032L; /** * Bean constructor. */ public WelcomeController() { super(); } /** * JSF callback. * @return a String. */ public String enter() { return "navigationWelcome"; } /** * @return true if the link to FAQs must be shown. */ @RequestCache public boolean isShowFaqLink() { return getDomainService().hasVisibleFaq(getCurrentUser(), getClient()); } /** * @return a permanent link to the page for application users. */ public String getApplicationPermLink() { return getUrlBuilder().getWelcomeUrl(AuthUtils.APPLICATION); } /** * @return a permanent link to the page for CAS users. */ public String getCasPermLink() { return getUrlBuilder().getWelcomeUrl(AuthUtils.CAS); } /** * @return a permanent link to the page for Shibboleth users. */ public String getShibbolethPermLink() { return getUrlBuilder().getWelcomeUrl(AuthUtils.SHIBBOLETH); } /** * @return a permanent link to the page for specific users. */ public String getSpecificPermLink() { return getUrlBuilder().getWelcomeUrl(AuthUtils.SPECIFIC); } }