Package com.agiletec.plugins.jpcasclient.aps.system.services.config

Examples of com.agiletec.plugins.jpcasclient.aps.system.services.config.ICasClientConfigManager


public class CasConfigParamTag extends TagSupport {

  @Override
  public int doStartTag() throws JspException {
    ICasClientConfigManager clientConfigManager =
        (ICasClientConfigManager) ApsWebApplicationUtils.getBean(CasClientPluginSystemCostants.JPCASCLIENT_CONFIG_MANAGER, this.pageContext);
    CasClientConfig casClientConfig = clientConfigManager.getClientConfig();
    String param = null;
    try {
      if (_param.equals("active")) {
        boolean isActive = casClientConfig.isActive();
        param = String.valueOf(isActive);
View Full Code Here


    String langCode = pageUrl.getLangCode();
    ILangManager langManager =
      (ILangManager) ApsWebApplicationUtils.getBean(SystemConstants.LANGUAGE_MANAGER, reqCtx.getRequest());
    BaseConfigManager configManager =
      (BaseConfigManager) ApsWebApplicationUtils.getBean(SystemConstants.BASE_CONFIG_MANAGER, reqCtx.getRequest());
    ICasClientConfigManager casClientConfigManager =
        (ICasClientConfigManager) ApsWebApplicationUtils.getBean(CasClientPluginSystemCostants.JPCASCLIENT_CONFIG_MANAGER, reqCtx.getRequest());
    IPageManager pageManager =
      (IPageManager) ApsWebApplicationUtils.getBean(SystemConstants.PAGE_MANAGER, reqCtx.getRequest());
    Lang lang = langManager.getLang(langCode);
    if (lang == null) {
      lang = (Lang) reqCtx.getExtraParam(SystemConstants.EXTRAPAR_CURRENT_LANG);
      if (lang == null) {
        lang = langManager.getDefaultLang();
      }
    }
    String pageCode = pageUrl.getPageCode();
    IPage page = pageManager.getPage(pageCode);
    if (page == null) {
      page = (IPage) reqCtx.getExtraParam(SystemConstants.EXTRAPAR_CURRENT_PAGE);
    }
    if (page == null) {
      page = pageManager.getRoot();
    }
    StringBuffer url = new StringBuffer();
    String serverBaseUrl = casClientConfigManager.getClientConfig().getServerBaseURL();
    if (serverBaseUrl.endsWith("/")) {
      serverBaseUrl = serverBaseUrl.substring(0, serverBaseUrl.length()-1);
    }

    url.append(serverBaseUrl);
View Full Code Here

 
  @Override
  public void doFilter(final ServletRequest servletRequest, final ServletResponse servletResponse, final FilterChain filterChain) throws IOException, ServletException {
    final HttpServletRequest request = (HttpServletRequest) servletRequest;
    request.setCharacterEncoding("UTF-8");
    ICasClientConfigManager configManager = (ICasClientConfigManager) ApsWebApplicationUtils.getBean(CasClientPluginSystemCostants.JPCASCLIENT_CONFIG_MANAGER, request);
    boolean isActive = configManager.getClientConfig().isActive();
    if (isActive) {
      if ("POST".equals(request.getMethod())) {
        final String logoutRequest = request.getParameter("logoutRequest");
        if (CommonUtils.isNotBlank(logoutRequest)) {
          _log.debug("Logout request=[" + logoutRequest + "]");
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpcasclient.aps.system.services.config.ICasClientConfigManager

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.