Custom SQL joins with Liferay entities: See: https://web.liferay.com/web/david.truong/blog/-/blogs/custom-finder-for-portal-entities-in-a-plugin
liferay-hook.xml
<?xml version="1.0"?>
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.2.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd">
<hook>
<custom-jsp-dir>/custom_jsps</custom-jsp-dir>
</hook>
This for replacement for AlloyUI Component exercise
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@include file="/html/init.jsp" %>
<%
boolean hasAddPermission = InventoryPermission.contains(
permissionChecker, scopeGroupId, "ADD_MANUFACTURER");
boolean hasConfigurePermission = InventoryPermission.contains(
Add following methods to ManufacturerAssetRendererFactory
@Override
public PortletURL getURLAdd(
LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse) {
try {
ThemeDisplay themeDisplay =
Install java to Debian or Ubuntu
setup-java.sh
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root run: sudo ./setup-java.sh" 1>&2
exit 1
fi
firstName | lastName | emailAddress |
---|---|---|
Adeline | Nimri | [email protected] |
Agatha | Saylor | [email protected] |
Alan | Vangaard | [email protected] |
Alec | Hart | [email protected] |
Alessandro | Mancelli | [email protected] |
Alfred | Wilson | [email protected] |
portalUtilReference=(serviceReference "com.liferay.portal.kernel.util.PortalUtil")
portalUtil=(service $portalUtilReference)
defaultCompanyId=($portalUtil getDefaultCompanyId)
userServiceReference=(serviceReference "com.liferay.portal.kernel.service.UserLocalService")
userService=(service $userServiceReference)
users=$userService getCompanyUsers $defaultCompanyId 0 100
each $users { $it getFullName }
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
/** | |
* ********************************************************************************************************* | |
* | |
* Usage: | |
* | |
* Run this Script Lifeay 6.2 's scripting console to trouble shot caches | |
* | |
* variable MIN_MISS_PERCENTAGE you can limit that itdoes not pring caches that fill rate is low. | |
* variable PRINT_SQL set this true if you want to print SQL statement ready to be inserted | |
* variable NODE_NAME is the node name for printSQL statement. |
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 groovy.io.FileType | |
if ( args.length < 2 ) { | |
println "Scan's thread dump *.log files from directory"; | |
println ""; | |
println "Usage:"; | |
println "groovy ThreadDumpAnalyzer.groovy <directory> <first value to look from thread dump> <second value to look from thread dump> <third value to look from thread dump>"; | |
println ""; | |
return; | |
} |