public long[] getLongValues(javax.servlet.http.HttpServletRequest request, java.lang.String param) { return ParamUtil.getLongValues(request, param); }
public long[] getLongValues( com.liferay.portal.kernel.service.ServiceContext serviceContext, java.lang.String param, long[] defaultValue) { return ParamUtil.getLongValues(serviceContext, param, defaultValue); }
public long[] getLongValues(javax.portlet.PortletRequest portletRequest, java.lang.String param, long[] defaultValue) { return ParamUtil.getLongValues(portletRequest, param, defaultValue); }
/** * Returns the request parameter value as a long array. In the returned * array, each parameter value not convertible to a long is replaced by * <code>0</code>. * * @param request the servlet request from which to read the parameter * @param param the name of the parameter * @return the request parameter value as a long array */ public static long[] getLongValues( HttpServletRequest request, String param) { return getLongValues(request, param, new long[0]); }
public long[] getLongValues(javax.servlet.http.HttpServletRequest request, java.lang.String param, long[] defaultValue) { return ParamUtil.getLongValues(request, param, defaultValue); }
public long[] getLongValues(javax.portlet.PortletRequest portletRequest, java.lang.String param) { return ParamUtil.getLongValues(portletRequest, param); }
public long[] getLongValues( com.liferay.portal.kernel.service.ServiceContext serviceContext, java.lang.String param) { return ParamUtil.getLongValues(serviceContext, param); }
/** * Returns the portlet request parameter value as a long array. In the * returned array, each parameter value not convertible to a long is * replaced by <code>0</code>. * * @param portletRequest the portlet request from which to read the * parameter * @param param the name of the parameter * @return the portlet request parameter value as a long array */ public static long[] getLongValues( PortletRequest portletRequest, String param) { return getLongValues(portletRequest, param, new long[0]); }
/** * Returns the service context parameter value as a long array. In the * returned array, each parameter value not convertible to a long is * replaced by <code>0</code>. * * @param serviceContext the service context from which to read the * parameter * @param param the name of the parameter * @return the service context parameter value as a long array */ public static long[] getLongValues( ServiceContext serviceContext, String param) { return getLongValues(serviceContext, param, new long[0]); }
public long[] getLongValues(javax.servlet.http.HttpServletRequest request, java.lang.String param, long[] defaultValue) { return ParamUtil.getLongValues(request, param, defaultValue); }
public long[] getLongValues(javax.portlet.PortletRequest portletRequest, java.lang.String param) { return ParamUtil.getLongValues(portletRequest, param); }
public long[] getLongValues(javax.portlet.PortletRequest portletRequest, java.lang.String param, long[] defaultValue) { return ParamUtil.getLongValues(portletRequest, param, defaultValue); }
public static long[] getLongValues( HttpServletRequest request, String param) { return getLongValues(request, param, new long[0]); }
public static long[] getLongValues( PortletRequest portletRequest, String param) { return getLongValues(portletRequest, param, new long[0]); }
public long[] getLongValues(javax.servlet.http.HttpServletRequest request, java.lang.String param) { return ParamUtil.getLongValues(request, param); }
protected void lockThreads(ActionRequest actionRequest) throws Exception { long[] threadIds = ParamUtil.getLongValues( actionRequest, "rowIdsMBThread"); for (long threadId : threadIds) { _mbThreadService.lockThread(threadId); } }
protected void unlockThreads(ActionRequest actionRequest) throws Exception { long[] threadIds = ParamUtil.getLongValues( actionRequest, "rowIdsMBThread"); for (long threadId : threadIds) { _mbThreadService.unlockThread(threadId); } }
protected void unbanUser(ActionRequest actionRequest) throws Exception { long[] banUserIds = null; long banUserId = ParamUtil.getLong(actionRequest, "banUserId"); if (banUserId > 0) { banUserIds = new long[] {banUserId}; } else { banUserIds = ParamUtil.getLongValues(actionRequest, "rowIds"); } ServiceContext serviceContext = ServiceContextFactory.getInstance( MBBan.class.getName(), actionRequest); for (long curBanUserId : banUserIds) { _mbBanService.deleteBan(curBanUserId, serviceContext); } }
WebKeys.THEME_DISPLAY); long[] threadIds = ParamUtil.getLongValues( actionRequest, "rowIdsMBThread"); long[] categoryIds = ParamUtil.getLongValues( actionRequest, "rowIdsMBCategory");