This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery | |
import com.liferay.portal.kernel.dao.orm.DynamicQuery | |
import com.liferay.portal.kernel.dao.orm.Property | |
import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil | |
import com.liferay.portal.kernel.exception.PortalException | |
import com.liferay.portal.kernel.exception.SystemException | |
import com.liferay.portal.model.Layout | |
import com.liferay.portal.service.LayoutLocalServiceUtil | |
import com.liferay.portal.service.persistence.LayoutActionableDynamicQuery | |
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Find and delete old versions of docs per site... | |
import com.liferay.portal.model.User; | |
import com.liferay.portal.service.UserLocalServiceUtil; | |
import java.util.List; | |
import com.liferay.portal.kernel.repository.model.FileEntry; | |
import com.liferay.portal.kernel.repository.model.FileVersion; | |
import com.liferay.portal.kernel.repository.model.Folder; | |
import com.liferay.portlet.documentlibrary.service.DLAppServiceUtil; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery | |
import com.liferay.portal.kernel.exception.PortalException | |
import com.liferay.portal.kernel.exception.SystemException | |
import com.liferay.portal.util.PropsValues | |
import com.liferay.portlet.documentlibrary.model.DLFileEntry | |
import com.liferay.portlet.documentlibrary.model.DLFileVersion | |
import com.liferay.portlet.documentlibrary.service.DLAppServiceUtil | |
import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalServiceUtil | |
import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryActionableDynamicQuery | |
import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionActionableDynamicQuery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Delete files that have no dlfileversion record... | |
// Use this query to find them...: | |
// select fileEntryId from dlfileentry where fileEntryId NOT IN | |
// (select dlfe.fileEntryId from dlfileentry dlfe, dlfileversion dlfv where dlfe.fileEntryId=dlfv.fileEntryId and dlfv.version=dlfe.version); | |
import com.liferay.portal.model.User; | |
import com.liferay.portal.service.UserLocalServiceUtil; | |
import java.util.List; | |
import com.liferay.portal.kernel.repository.model.FileEntry; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.liferay.portal.service.ServiceContext | |
import com.liferay.portlet.journal.service.JournalArticleServiceUtil | |
import com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceUtil | |
import java.util.List | |
import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery | |
import com.liferay.portal.kernel.exception.PortalException | |
import com.liferay.portal.kernel.exception.SystemException | |
import com.liferay.portal.util.PropsValues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery | |
import com.liferay.portal.kernel.exception.PortalException | |
import com.liferay.portal.kernel.exception.SystemException | |
import com.liferay.portal.util.PropsValues | |
import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil | |
import com.liferay.portal.kernel.dao.orm.DynamicQuery | |
import com.liferay.portal.kernel.dao.orm.Conjunction | |
import com.liferay.portlet.journal.service.persistence.JournalArticleResourceActionableDynamicQuery | |
import com.liferay.portlet.journal.service.JournalArticleServiceUtil |