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.admin.portlet.action.AdminActionPortlet.java

License:Apache License

/**
 * This is  function edit or add system request
 * 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 editOrAddHeThongRequest(ActionRequest actionRequest, ActionResponse actionResponse)
        throws Exception {
    HeThongAction action = new HeThongAction();
    action.editOrAddHeThongRequest(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.admin.portlet.action.AdminActionPortlet.java

License:Apache License

/**
 * This is  function edit administrative unit request
 * Version: 1.0//from w ww  . 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 editOrAddDanhMucDonViHanhChinhRequest(ActionRequest actionRequest, ActionResponse actionResponse)
        throws Exception {
    DanhMucDonViHanhChinhAction action = new DanhMucDonViHanhChinhAction();
    action.editOrAddDanhMucDonViHanhChinhRequest(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.admin.portlet.action.AdminActionPortlet.java

License:Apache License

/**
 * This is  function edit or add minisgtry request
 * Version: 1.0/*from  w w  w .  j  av a2  s.  c o m*/
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 * @param actionRequest
 * @param actionResponse
 * @throws Exception
 */
public void editOrAddChucVuRequest(ActionRequest actionRequest, ActionResponse actionResponse)
        throws Exception {
    ChucVuAction action = new ChucVuAction();
    action.editOrAddChucVuRequest(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.admin.portlet.action.AdminActionPortlet.java

License:Apache License

public void addCapCoQuanQuanLy(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
    CapCoQuanQuanLyAction action = new CapCoQuanQuanLyAction();
    action.addCapCoQuanQuanLy(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.admin.portlet.action.AdminActionPortlet.java

License:Apache License

public void updateCapCoQuanQuanLy(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
    CapCoQuanQuanLyAction action = new CapCoQuanQuanLyAction();
    action.updateCapCoQuanQuanLy(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.admin.portlet.action.AdminActionPortlet.java

License:Apache License

/**
 * This is  function add or edit user account
 * Version: 1.0/*w w  w .  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 addEditTaiKhoanNguoiDung(ActionRequest actionRequest, ActionResponse actionResponse)
        throws Exception {
    new TaiKhoanNguoiDungAction().addEditTaiKhoanNguoiDung(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.admin.portlet.action.AdminActionPortlet.java

License:Apache License

/**
 * This is  function add edit civil servants
 * Version: 1.0/*w w  w.  j av  a  2  s  .  co m*/
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 * @param actionRequest
 * @param actionResponse
 * @throws Exception
 */
public void addEditCongChuc(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
    new CongChucAction().addEditCongChuc(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.admin.portlet.action.AdminActionPortlet.java

License:Apache License

/**
 * This is  function delete role of civil servants
 * Version: 1.0/*from www  .  jav  a  2s . c o m*/
 *  
 * History: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  ------------------------------------------------- 
 *  3-March-2013  Nam Dinh    Create new
 * @param actionRequest
 * @param actionResponse
 * @throws Exception
 */
public void deleteRoleCongChuc(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
    new CongChucAction().deleteRoleCongChuc(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.admin.portlet.action.AdminActionPortlet.java

License:Apache License

/**
 * This is  function deleteRoleCongChucRiengChuaAdd
 * Version: 1.0//from w  w w . ja  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 deleteRoleCongChucRiengChuaAdd(ActionRequest actionRequest, ActionResponse actionResponse)
        throws Exception {
    new CongChucAction().deleteRoleCongChucRiengChuaAdd(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.admin.portlet.action.AdminActionPortlet.java

License:Apache License

/**
 * This is  function add role own civil servants
 * Version: 1.0//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 addRoleCongChucRieng(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {
    new CongChucAction().addRoleCongChucRieng(actionRequest, actionResponse);
    PortletConfig portletConfig = (PortletConfig) actionRequest
            .getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
    SessionMessages.add(actionRequest,
            portletConfig.getPortletName() + SessionMessages.KEY_SUFFIX_HIDE_DEFAULT_ERROR_MESSAGE);
}