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
SELECT * FROM group_ | |
UPDATE `liferay`.`group_` | |
SET | |
`friendlyURL` = '/guest' | |
WHERE | |
`friendlyURL` = '/parnassiagroep |
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
### Layout scripts | |
############## | |
print all layouts | |
############# | |
import com.liferay.portal.service.* | |
try { |
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.* | |
try { | |
plid = 12345 | |
layout = LayoutLocalServiceUtil.getLayout(plid) | |
println(layout.getName()) | |
layout.setLayoutPrototypeLinkEnabled(false) | |
layout.setLayoutPrototypeUuid(null) | |
layout2 = LayoutLocalServiceUtil.updateLayout(layout) | |
println(layout2.getName()+' |'+layout2.getLayoutPrototypeUuid() +'| |'+layout2.getLayoutPrototypeLinkEnabled() ) |
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
## all users of specific instance | |
+(companyId:10157) | |
+(entryClassName:com.liferay.portal.model.User) | |
## all JournalArticles of specific instance | |
+(companyId:10157) | |
+(entryClassName:com.liferay.portlet.journal.model.JournalArticle) | |
### JournalArticle ids specific to a lot |
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.* | |
import com.liferay.portal.service.impl.* | |
try { | |
companyId = 10154; | |
sc = new com.liferay.portal.service.ServiceContext() | |
users = UserServiceUtil.getCompanyUsers(companyId, -1,-1 ) | |
println(users.size()) | |
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{ | |
def start = -1 | |
def end = -1 | |
def layouts = LayoutLocalServiceUtil.getLayouts(start, end ) |
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.* | |
try { | |
list= OrganizationLocalServiceUtil.getOrganizations(-1,-1) | |
println('found:'+list.size()) | |
for(int i = 0; i<list.size();i++){ | |
obj = list.get(i); | |
println('id:'+obj.getOrganizationId()+' name'+obj.getName() ) | |
// DELETE | |
//OrganizationLocalServiceUtil.deleteOrganization(obj.getOrganizationId()) |
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.portal.model.* | |
try{ | |
layouts = LayoutLocalServiceUtil.getLayouts(-1,-1); | |
println("layouts.size()="+layouts.size()); | |
for(int i = 0; i<layouts.size();i++){ | |
layout = layouts.get(i); | |
//println('id:'+layout.getLayoutId()+' name'+layout.getName() ); | |
if(!layout.getThemeId().equals("")){ | |
println('id:'+layout.getLayoutId()+' name:'+layout.getName()+' theme:'+layout.getThemeId() ); |
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
try{ | |
out.println('start'); | |
users = Packages.com.liferay.portal.service.UserLocalServiceUtil.getUsers(-1,-1); | |
var count = 1; | |
var now = new Date(); | |
now.setDate(now.getDate() - 7); | |
for(i=0;i< users.size();i++){ | |
user = users.get(i); |
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
############################ | |
##### Removing SPIDP ###### | |
############################ | |
import com.liferay.portal.template.*; | |
import com.liferay.portal.util.*; | |
try{ | |
long companyId2 = PortalUtil.getCompanyId(actionRequest) | |
customLocalService = ServiceLocator.getInstance().findService('saml-portlet', 'com.liferay.saml.service.SamlSpIdpConnectionLocalService') |