Beispiel #1
0
  public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupSoap updateRuleGroup(
      long ruleGroupId,
      java.lang.String[] nameMapLanguageIds,
      java.lang.String[] nameMapValues,
      java.lang.String[] descriptionMapLanguageIds,
      java.lang.String[] descriptionMapValues,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws RemoteException {
    try {
      Map<Locale, String> nameMap =
          LocalizationUtil.getLocalizationMap(nameMapLanguageIds, nameMapValues);
      Map<Locale, String> descriptionMap =
          LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds, descriptionMapValues);

      com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup returnValue =
          MDRRuleGroupServiceUtil.updateRuleGroup(
              ruleGroupId, nameMap, descriptionMap, serviceContext);

      return com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
Beispiel #2
0
  public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupSoap getRuleGroup(
      long ruleGroupId) throws RemoteException {
    try {
      com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup returnValue =
          MDRRuleGroupServiceUtil.getRuleGroup(ruleGroupId);

      return com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }