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.* | |
import com.liferay.portlet.journal.service.persistence.JournalArticleUtil | |
try { | |
// long companyId | |
companyId = 10155 | |
// long groupId | |
groupId = 143401 |
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.persistence.JournalArticleUtil | |
try { | |
// long companyId | |
companyId = 10154 | |
// long groupId | |
groupId = 10192 |
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.* | |
try { | |
groupId = 143401; | |
tmpl = JournalTemplateLocalServiceUtil.getTemplate(groupId,'298777' ); | |
tmpl.setStructureId(""); |
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
############### generates | |
Caused by: java.lang.Exception: java.lang.OutOfMemoryError: Java heap space | |
at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:66) | |
############## | |
import com.liferay.portal.service.ServiceContext; | |
import com.liferay.portal.kernel.util.DateUtil; | |
import com.liferay.portal.kernel.util.OrderByComparator; |
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.*; | |
import com.liferay.portlet.documentlibrary.model.*; | |
import com.liferay.portlet.documentlibrary.service.*; | |
import com.liferay.portlet.documentlibrary.service.persistence.*; | |
try{ | |
companyId = 10154 | |
groupId = 193310 | |
def start = -1 | |
def end = -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
"java.awt.headless=true" | |
-Djava.awt.headless=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
### Install Desktop on minimal | |
http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-gnome-gui-on-centos-7-rhel-7.html#axzz3Qsysvy3Y | |
yum grouplist | |
$ sudo yum groupinstall "Development and Creative Workstation" | |
### autostart Desktop | |
$ ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target | |
### Remote access |
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
(?s)<bodytext(.*?)<\/bodytext> |
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.portlet.journal.service.JournalContentSearchLocalServiceUtil | |
import com.liferay.portal.service.LayoutLocalServiceUtil | |
groupid = new Long(17364) | |
truefalse = Boolean.TRUE | |
articleId= "1209617" | |
println(groupid +","+truefalse +","+ articleId) | |
articlesfound = JournalContentSearchLocalServiceUtil.getLayoutIdsCount(articleId ); | |
println("articlesfound:"+articlesfound) |
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.portal.service.UserServiceUtil | |
try { | |
sc = new com.liferay.portal.service.ServiceContext() | |
users = UserServiceUtil.getCompanyUsers(10157, -1,-1 ) | |
println(users.size()) | |
for(i=0;i<users.size();i++){ | |
user = users.get(i) |
OlderNewer