public static com.liferay.portlet.journal.model.JournalTemplateSoap getTemplate( long groupId, java.lang.String templateId) throws RemoteException { try { com.liferay.portlet.journal.model.JournalTemplate returnValue = JournalTemplateServiceUtil.getTemplate(groupId, templateId); return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }
public static com.liferay.portlet.journal.model.JournalTemplateSoap addTemplate( long groupId, java.lang.String templateId, boolean autoTemplateId, java.lang.String structureId, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, java.lang.String xsl, boolean formatXsl, java.lang.String langType, boolean cacheable, 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.journal.model.JournalTemplate returnValue = JournalTemplateServiceUtil.addTemplate( groupId, templateId, autoTemplateId, structureId, nameMap, descriptionMap, xsl, formatXsl, langType, cacheable, serviceContext); return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModel(returnValue); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }