This file contains hidden or 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
| # from https://liferay.dev/b/how-to-diagnose-and-recover-liferay-cluster | |
| import com.liferay.portal.kernel.cache.MultiVMPool; | |
| import org.osgi.framework.BundleContext; | |
| import org.osgi.framework.ServiceReference; | |
| import com.liferay.portal.kernel.module.util.SystemBundleUtil; | |
| import com.liferay.portal.kernel.cache.PortalCache; | |
| import com.liferay.portal.kernel.util.PortalUtil; | |
| import com.liferay.portal.kernel.cluster.ClusterExecutorUtil; | |
| import com.liferay.portal.kernel.cluster.ClusterMasterExecutorUtil; |
This file contains hidden or 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.model.Role | |
| import com.liferay.portal.kernel.model.RoleConstants | |
| import com.liferay.portal.kernel.security.auth.PrincipalThreadLocal | |
| import com.liferay.portal.kernel.service.RoleLocalServiceUtil | |
| import com.liferay.portal.kernel.service.persistence.RoleUtil | |
| import com.liferay.portal.kernel.service.persistence.UserUtil | |
| import com.liferay.portal.kernel.util.PortalUtil | |
| // Setup parameters | |
| long companyId = PortalUtil.getDefaultCompanyId() |
This file contains hidden or 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
| #https://liferay.dev/blogs/-/blogs/how-to-diagnose-and-recover-liferay-cluster | |
| import com.liferay.portal.kernel.cache.MultiVMPool; | |
| import com.liferay.registry.RegistryUtil; | |
| import com.liferay.registry.Registry; | |
| import com.liferay.portal.kernel.cache.PortalCache; | |
| import com.liferay.registry.ServiceReference; | |
| import com.liferay.portal.kernel.cluster.ClusterExecutorUtil; | |
| import com.liferay.portal.kernel.cluster.ClusterMasterExecutorUtil; |
This file contains hidden or 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
| // GROOVY DELETE ARTICLE | |
| import com.liferay.dynamic.data.mapping.service.DDMStructureLocalService; | |
| import com.liferay.asset.kernel.model.*; | |
| import com.liferay.asset.kernel.service.*; | |
| import com.liferay.journal.model.JournalArticle; | |
| import com.liferay.journal.service.JournalArticleLocalServiceUtil; | |
| import com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil; | |
| import com.liferay.portal.kernel.service.ClassNameLocalServiceUtil; | |
| import com.liferay.portal.kernel.service.*; |
This file contains hidden or 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
| # Follow the long running reindexing process | |
| com.liferay.portal.search.internal.SearchEngineInitializer | |
| ### more details | |
| com.liferay.portal.search.internal.background.task.ReindexStatusMessageSenderImpl | |
| # Follow BackgroundTaskStatus | |
| com.liferay.portal.background.task.internal.messaging.RemoveOnCompletionBackgroundTaskStatusMessageListener |
This file contains hidden or 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 java.util.List; | |
| import java.util.Date; | |
| import java.time.*; | |
| import java.text.SimpleDateFormat; | |
| import java.nio.file.*; | |
| import com.liferay.portal.kernel.model.*; | |
| import com.liferay.portal.kernel.service.*; | |
| import com.liferay.portal.kernel.repository.model.*; | |
| import com.liferay.portal.kernel.dao.orm.QueryUtil; | |
| import com.liferay.document.library.kernel.model.*; |
This file contains hidden or 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
| // Progress | |
| com.liferay.portal.search.internal.SearchEngineInitializer | |
| // More | |
| com.componence.generic.indexer | |
| com.componence.generic.indexer.JournalIndexerPostProcessor | |
| // DL | |
| com.liferay.portlet.documentlibrary.util | |
| com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer |
This file contains hidden or 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
| /** | |
| https://help.liferay.com/hc/en-us/articles/360045141191-Stuck-reindex-How-to-check-the-progress-of-a-reindex-process-and-remove-blocked-BackgroundTask-and-Lock-records | |
| **/ | |
| /** **/ | |
| import com.liferay.portal.lock.service.LockLocalServiceUtil; | |
| import com.liferay.portal.lock.model.Lock; | |
| try{ | |
| locks = LockLocalServiceUtil.getLocks(-1,-1) |
This file contains hidden or 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.mail.kernel.service.MailServiceUtil; | |
| import javax.mail.internet.AddressException; | |
| import javax.mail.internet.InternetAddress; | |
| import com.liferay.mail.kernel.model.MailMessage; | |
| import com.liferay.portal.util.* | |
| try { | |
| property = "mail.throws.exception.on.failure"; | |
| PropsUtil.set(property,"true") |
This file contains hidden or 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.document.library.kernel.service.* | |
| import com.liferay.document.library.kernel.util.* | |
| import com.liferay.portlet.documentlibrary.util.* | |
| import com.liferay.portlet.documentlibrary.lar.* | |
| import com.liferay.portlet.documentlibrary.service.* | |
| import com.liferay.portal.kernel.service.*; | |
| import com.liferay.portlet.documentlibrary.model.* | |
| import com.liferay.portal.kernel.dao.orm.* | |
NewerOlder