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
#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 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 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 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 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 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 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 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.* | |
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
############################################################ | |
# Step 0: Open on Miller page the Javascript console # | |
############################################################ | |
############################################################ | |
# Step 1 : Find first 50 records with only 1 select option # | |
############################################################ | |
counter=0; | |
$('select').each(function() { | |
if(this.length==1){ |
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.service.*; | |
try{ | |
companyId = 5015832 | |
def start = -1 | |
def end = -1 | |
def privateLayout = false; | |
groups = GroupLocalServiceUtil.getGroups(start,end); | |
println('groups found='+groups.size()+ groups[0]) |
NewerOlder