Example usage for com.liferay.portal.kernel.servlet SessionMessages add

List of usage examples for com.liferay.portal.kernel.servlet SessionMessages add

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.servlet SessionMessages add.

Prototype

public static void add(PortletRequest portletRequest, String key) 

Source Link

Usage

From source file:org.oep.cmon.portlet.ipmslist.action.IPMSListPortlet.java

License:Apache License

/**
 * This is function searchMaDichVuCongRequest
 * Version: 1.0//  w  w w  . j a v  a 2  s . c  o  m
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 * @param actionRequest
 * @param actionResponse
 * @throws Exception
 */
public void searchMaDichVuCongRequest(ActionRequest actionRequest, ActionResponse actionResponse)
        throws Exception {
    // Get search keyword, the keyword can either be Ten
    String searchKeyWord = ParamUtil.getString(actionRequest, "searchKeyWord").trim();
    String transactionKeyword = ParamUtil.getString(actionRequest, "transactionKeyword").trim();
    String transType = ParamUtil.getString(actionRequest, "transType").trim();
    String statusHS = ParamUtil.getString(actionRequest, "statusHS").trim();

    actionResponse.setRenderParameter("searchKeyWord", searchKeyWord);
    actionResponse.setRenderParameter("jspPage", "/html/portlet/ipmslistportlet/offline/nopHoSoOffline.jsp");
    actionResponse.setRenderParameter("transactionKeyword", transactionKeyword);
    actionResponse.setRenderParameter("transType", transType);
    actionResponse.setRenderParameter("statusHS", statusHS);
    PortletConfig portletConfig = (PortletConfig) actionRequest
            .getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
    SessionMessages.add(actionRequest,
            portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
}

From source file:org.oep.cmon.portlet.ipmslist.action.IPMSListPortlet.java

License:Apache License

/**
 * This is function searchCongDan//w w w. jav a2s.  c om
 * Version: 1.0
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 @param actionRequest
 * @param actionResponse
 * @throws Exception
 */
public void searchCongDan(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
    new FormOfflineBusiness().searchCongDanRequest(actionRequest, actionResponse);
    PortletConfig portletConfig = (PortletConfig) actionRequest
            .getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
    SessionMessages.add(actionRequest,
            portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
}

From source file:org.oep.cmon.portlet.ipmslist.action.IPMSListPortlet.java

License:Apache License

/**
 * This is function searchCongDanNop/*w  w  w  .  j av a2  s .co  m*/
 * Version: 1.0
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 * @param actionRequest
 * @param actionResponse
 * @throws Exception
 */
public void searchCongDanNop(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
    new FormOfflineBusiness().searchCongDanNopRequest(actionRequest, actionResponse);
    PortletConfig portletConfig = (PortletConfig) actionRequest
            .getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
    SessionMessages.add(actionRequest,
            portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
}

From source file:org.oep.cmon.portlet.ipmslist.action.IPMSListPortlet.java

License:Apache License

/**
 * This is function searchCongTy//from w  w w. ja va  2s.c o  m
 * Version: 1.0
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 * @param actionRequest
 * @param actionResponse
 * @throws Exception
 */
public void searchCongTy(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
    new FormOfflineBusiness().searchDoanhNghiepRequest(actionRequest, actionResponse);
    PortletConfig portletConfig = (PortletConfig) actionRequest
            .getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
    SessionMessages.add(actionRequest,
            portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
}

From source file:org.oep.cmon.portlet.ipmslist.action.IPMSListPortlet.java

License:Apache License

/**
 * This is function addHoSoRequest//from ww  w  .jav  a  2 s  .  co m
 * Version: 1.0
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 * @param actionRequest
 * @param actionResponse
 * @throws Exception
 */
public void addHoSoRequest(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
    new FormOfflineBusiness().addHoSoRequest(actionRequest, actionResponse);
    PortletConfig portletConfig = (PortletConfig) actionRequest
            .getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
    SessionMessages.add(actionRequest,
            portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
}

From source file:org.oep.cmon.portlet.ipmslist.action.IPMSListPortlet.java

License:Apache License

/**
 * This is function addHoSoDoanhNghiepRequest
 * Version: 1.0//from   www  . j a v a 2s.c  o  m
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 * @param actionRequest
 * @param actionResponse
 * @throws Exception
 */

public void addHoSoDoanhNghiepRequest(ActionRequest actionRequest, ActionResponse actionResponse)
        throws Exception {
    new FormOfflineBusiness().addHoSoDoanhNghiepRequest(actionRequest, actionResponse);
    PortletConfig portletConfig = (PortletConfig) actionRequest
            .getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
    SessionMessages.add(actionRequest,
            portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
}

From source file:org.oep.cmon.portlet.ipmslist.action.IPMSListPortlet.java

License:Apache License

/**
 * This is function addCongDanRequest//from w w  w.  ja  v a  2 s  .com
 * Version: 1.0
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 * @param actionRequest
 * @param actionResponse
 * @throws Exception
 */

public void addCongDanRequest(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
    new FormOfflineBusiness().addCongDanRequest(actionRequest, actionResponse);
    PortletConfig portletConfig = (PortletConfig) actionRequest
            .getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
    SessionMessages.add(actionRequest,
            portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
}

From source file:org.oep.cmon.portlet.ipmslist.action.IPMSListPortlet.java

License:Apache License

/**
 * This is function addDoanhNghiepRequest
 * Version: 1.0//from   w w w  . j  ava 2  s  . c o  m
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 * @param actionRequest
 * @param actionResponse
 * @throws Exception
 */

public void addDoanhNghiepRequest(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
    new FormOfflineBusiness().addDoanhNghiepRequest(actionRequest, actionResponse);
    PortletConfig portletConfig = (PortletConfig) actionRequest
            .getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
    SessionMessages.add(actionRequest,
            portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
}

From source file:org.oep.cmon.portlet.ipmslist.action.IPMSListPortlet.java

License:Apache License

/**
 * This is function uploadTaiLieu/*from www .j a va2 s  .  co  m*/
 * Version: 1.0
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 * @param resourceRequest
 * @param httpReq
 * @throws NumberFormatException
 * @throws Exception
 */

public void uploadTaiLieu(ActionRequest resourceRequest, ActionResponse httpReq)
        throws NumberFormatException, Exception {

    FormOfflineBusiness formOfflineBusiness = new FormOfflineBusiness();
    formOfflineBusiness.singleFileUpload(resourceRequest, httpReq);
    PortletConfig portletConfig = (PortletConfig) resourceRequest
            .getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
    SessionMessages.add(resourceRequest,
            portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
}

From source file:org.oep.cmon.portlet.ipmslist.action.IPMSListPortlet.java

License:Apache License

/**
 * This is function uploadTaiLieuDoanhNghiep
 * Version: 1.0//from   w  w  w.jav  a2  s .  c  o m
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 * @param resourceRequest
 * @param httpReq
 * @throws NumberFormatException
 * @throws Exception
 */
public void uploadTaiLieuDoanhNghiep(ActionRequest resourceRequest, ActionResponse httpReq)
        throws NumberFormatException, Exception {

    FormOfflineBusiness formOfflineBusiness = new FormOfflineBusiness();
    formOfflineBusiness.singleFileUploadDoanhNghiep(resourceRequest, httpReq);
    PortletConfig portletConfig = (PortletConfig) resourceRequest
            .getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
    SessionMessages.add(resourceRequest,
            portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
}