public long getLong(javax.servlet.http.HttpServletRequest request, java.lang.String param) { return ParamUtil.getLong(request, param); }
public long getLong( com.liferay.portal.kernel.service.ServiceContext serviceContext, java.lang.String param) { return ParamUtil.getLong(serviceContext, param); }
public long getLong( com.liferay.portal.kernel.service.ServiceContext serviceContext, java.lang.String param, long defaultValue) { return ParamUtil.getLong(serviceContext, param, defaultValue); }
public long getLong(javax.servlet.http.HttpServletRequest request, java.lang.String param, long defaultValue) { return ParamUtil.getLong(request, param, defaultValue); }
public long getLong(javax.portlet.PortletRequest portletRequest, java.lang.String param, long defaultValue) { return ParamUtil.getLong(portletRequest, param, defaultValue); }
public long getLong(javax.portlet.PortletRequest portletRequest, java.lang.String param) { return ParamUtil.getLong(portletRequest, param); }
public static ExportImportConfiguration buildDefaultLocalPublishingExportImportConfiguration( PortletRequest portletRequest) throws PortalException { ThemeDisplay themeDisplay = (ThemeDisplay)portletRequest.getAttribute( WebKeys.THEME_DISPLAY); long sourceGroupId = ParamUtil.getLong(portletRequest, "sourceGroupId"); long targetGroupId = ParamUtil.getLong(portletRequest, "targetGroupId"); boolean privateLayout = ParamUtil.getBoolean( portletRequest, "privateLayout"); Map<String, String[]> parameterMap = _getParameterMap(portletRequest); return buildDefaultLocalPublishingExportImportConfiguration( themeDisplay.getUser(), sourceGroupId, targetGroupId, privateLayout, parameterMap); }
protected static ExportImportConfiguration addExportImportConfiguration( PortletRequest portletRequest, int type) throws PortalException { ThemeDisplay themeDisplay = (ThemeDisplay)portletRequest.getAttribute( WebKeys.THEME_DISPLAY); long groupId = ParamUtil.getLong(portletRequest, "groupId"); if (type == ExportImportConfigurationConstants.TYPE_EXPORT_LAYOUT) { groupId = ParamUtil.getLong(portletRequest, "liveGroupId"); } String name = ParamUtil.getString(portletRequest, "name"); String description = ParamUtil.getString(portletRequest, "description"); Map<String, Serializable> settingsMap = ExportImportConfigurationSettingsMapFactoryUtil.buildSettingsMap( portletRequest, groupId, type); Map<String, String[]> parameterMap = (Map<String, String[]>)settingsMap.get("parameterMap"); if ((parameterMap != null) && (type == ExportImportConfigurationConstants.TYPE_PUBLISH_LAYOUT_LOCAL)) { parameterMap.put( PortletDataHandlerKeys.PERFORM_DIRECT_BINARY_IMPORT, new String[] {Boolean.TRUE.toString()}); } return ExportImportConfigurationLocalServiceUtil. addExportImportConfiguration( themeDisplay.getUserId(), groupId, name, description, type, settingsMap, new ServiceContext()); }
protected static ExportImportConfiguration updateExportImportConfiguration( PortletRequest portletRequest, int type) throws PortalException { ThemeDisplay themeDisplay = (ThemeDisplay)portletRequest.getAttribute( WebKeys.THEME_DISPLAY); long exportImportConfigurationId = ParamUtil.getLong( portletRequest, "exportImportConfigurationId"); long groupId = ParamUtil.getLong(portletRequest, "groupId"); String name = ParamUtil.getString(portletRequest, "name"); String description = ParamUtil.getString(portletRequest, "description"); Map<String, Serializable> settingsMap = ExportImportConfigurationSettingsMapFactoryUtil.buildSettingsMap( portletRequest, groupId, type); return ExportImportConfigurationLocalServiceUtil. updateExportImportConfiguration( themeDisplay.getUserId(), exportImportConfigurationId, name, description, settingsMap, new ServiceContext()); }
public static ExportImportConfiguration buildDefaultRemotePublishingExportImportConfiguration( PortletRequest portletRequest) throws PortalException { ThemeDisplay themeDisplay = (ThemeDisplay)portletRequest.getAttribute( WebKeys.THEME_DISPLAY); long sourceGroupId = ParamUtil.getLong(portletRequest, "sourceGroupId"); boolean privateLayout = ParamUtil.getBoolean( portletRequest, "privateLayout"); String remoteAddress = ParamUtil.getString( portletRequest, "remoteAddress"); int remotePort = ParamUtil.getInteger(portletRequest, "remotePort"); String remotePathContext = ParamUtil.getString( portletRequest, "remotePathContext"); boolean secureConnection = ParamUtil.getBoolean( portletRequest, "secureConnection"); long remoteGroupId = ParamUtil.getLong(portletRequest, "remoteGroupId"); Map<String, String[]> parameterMap = _getParameterMap(portletRequest); return buildDefaultRemotePublishingExportImportConfiguration( themeDisplay.getUser(), sourceGroupId, privateLayout, remoteAddress, remotePort, remotePathContext, secureConnection, remoteGroupId, parameterMap); }
private LayoutSetBranch _getLayoutSetBranch(LayoutSet layoutSet) throws PortalException { ServiceContext serviceContext = ServiceContextThreadLocal.getServiceContext(); if (serviceContext == null) { return null; } long layoutSetBranchId = ParamUtil.getLong( serviceContext, "layoutSetBranchId"); if (layoutSetBranchId > 0) { return LayoutSetBranchLocalServiceUtil.getLayoutSetBranch( layoutSetBranchId); } if (serviceContext.isSignedIn()) { return LayoutSetBranchLocalServiceUtil.getUserLayoutSetBranch( serviceContext.getUserId(), layoutSet.getGroupId(), layoutSet.isPrivateLayout(), layoutSet.getLayoutSetId(), layoutSetBranchId); } return LayoutSetBranchLocalServiceUtil.getMasterLayoutSetBranch( layoutSet.getGroupId(), layoutSet.isPrivateLayout()); }
long formDateLong = ParamUtil.getLong(portletRequest, "formDate");
long formDateLong = ParamUtil.getLong(request, "formDate");
long sourceGroupId = ParamUtil.getLong(request, "p_v_l_s_g_id");
public AssetEntryQuery( long[] classNameIds, SearchContainer<?> searchContainer) { this(); setClassNameIds(classNameIds); _start = searchContainer.getStart(); _end = searchContainer.getEnd(); if (Validator.isNotNull(searchContainer.getOrderByCol())) { setOrderByCol1(searchContainer.getOrderByCol()); setOrderByType1(searchContainer.getOrderByType()); } PortletRequest portletRequest = searchContainer.getPortletRequest(); ThemeDisplay themeDisplay = (ThemeDisplay)portletRequest.getAttribute( WebKeys.THEME_DISPLAY); _groupIds = new long[] {themeDisplay.getScopeGroupId()}; long categoryId = ParamUtil.getLong(portletRequest, "categoryId"); if (categoryId > 0) { _allCategoryIds = new long[] {categoryId}; } String tagName = ParamUtil.getString(portletRequest, "tag"); if (Validator.isNotNull(tagName)) { _allTagIds = AssetTagLocalServiceUtil.getTagIds( PortalUtil.getSiteGroupId(themeDisplay.getScopeGroupId()), new String[] {tagName}); if (_allTagIds.length == 0) { _allTagIds = new long[] {0}; } _allTagIdsArray = new long[][] {_allTagIds}; } }
protected void restoreEntries(ActionRequest actionRequest) throws Exception { long messageId = ParamUtil.getLong(actionRequest, "messageId"); String fileName = ParamUtil.getString(actionRequest, "fileName"); _mbMessageService.restoreMessageAttachmentFromTrash( messageId, fileName); }
protected void subscribeCategory(ActionRequest actionRequest) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)actionRequest.getAttribute( WebKeys.THEME_DISPLAY); long categoryId = ParamUtil.getLong(actionRequest, "mbCategoryId"); _mbCategoryService.subscribeCategory( themeDisplay.getScopeGroupId(), categoryId); }
protected void deleteAttachment( ActionRequest actionRequest, boolean moveToTrash) throws PortalException { long messageId = ParamUtil.getLong(actionRequest, "messageId"); String fileName = ParamUtil.getString(actionRequest, "fileName"); if (moveToTrash) { _mbMessageService.moveMessageAttachmentToTrash(messageId, fileName); } else { _mbMessageService.deleteMessageAttachment(messageId, fileName); } }
@Override public void unschedulePublishToLive(PortletRequest portletRequest) throws PortalException { long stagingGroupId = ParamUtil.getLong( portletRequest, "stagingGroupId"); Group stagingGroup = _groupLocalService.getGroup(stagingGroupId); long liveGroupId = stagingGroup.getLiveGroupId(); String jobName = ParamUtil.getString(portletRequest, "jobName"); String groupName = getSchedulerGroupName( DestinationNames.LAYOUTS_LOCAL_PUBLISHER, liveGroupId); _layoutService.unschedulePublishToLive(liveGroupId, jobName, groupName); }