/** * Deletes all the templates of the group. * * @param groupId the primary key of the group * @throws PortalException if a portal exception occurred */ @Override public void deleteTemplates(long groupId) throws com.liferay.portal.kernel.exception.PortalException { _ddmTemplateLocalService.deleteTemplates(groupId); }
@Override public void deleteTemplates(long groupId, long classNameId) throws com.liferay.portal.kernel.exception.PortalException { _ddmTemplateLocalService.deleteTemplates(groupId, classNameId); }
/** * Deletes all the templates of the group. * * @param groupId the primary key of the group * @throws PortalException if a portal exception occurred */ public static void deleteTemplates(long groupId) throws com.liferay.portal.kernel.exception.PortalException { getService().deleteTemplates(groupId); }
public static void deleteTemplates(long groupId, long classNameId) throws com.liferay.portal.kernel.exception.PortalException { getService().deleteTemplates(groupId, classNameId); }
@Override protected PortletPreferences doDeleteData( PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) throws Exception { if (portletDataContext.addPrimaryKey( JournalPortletDataHandler.class, "deleteData")) { return portletPreferences; } _journalArticleLocalService.deleteArticles( portletDataContext.getScopeGroupId()); _journalFolderLocalService.deleteFolders( portletDataContext.getGroupId()); _ddmTemplateLocalService.deleteTemplates( portletDataContext.getScopeGroupId(), _portal.getClassNameId(DDMStructure.class)); _ddmStructureLocalService.deleteStructures( portletDataContext.getScopeGroupId(), _portal.getClassNameId(JournalArticle.class)); return portletPreferences; }