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
| ThemeDisplay themeDisplay = (ThemeDisplay)actionRequest.getAttribute( | |
| WebKeys.THEME_DISPLAY); | |
| String oldScopeName = getOldScopeName(actionRequest, portlet); | |
| PortletPreferences portletPreferences = actionRequest.getPreferences(); | |
| String scopeType = ParamUtil.getString(actionRequest, "scopeType"); |
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
| APACHE_LOG_FILE=/var/log/apache2/jenkinsrow-access_log | |
| LINES_TO_SCAN=100000 | |
| EXCLUDED_ENTITIES="(router.asus.com|NewRelicPinger|Googlebot|slurp|spider|bingbot)" | |
| tail $APACHE_LOG_FILE -n $LINES_TO_SCAN | egrep -v "$EXCLUDED_ENTITIES" | sed -r 's!^[^ ]* ([^ ]*) .*!\1!g' | uniq -c |
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.util.*; | |
| import com.liferay.portal.service.*; | |
| import com.liferay.portal.model.*; | |
| import com.liferay.portal.kernel.util.*; | |
| import com.liferay.portal.kernel.workflow.*; | |
| import javax.xml.parsers.*; | |
| import javax.xml.xpath.*; | |
| import java.io.*; | |
| import org.xml.sax.*; | |
| import org.w3c.dom.*; |
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
| <#attempt> | |
| <#assign black_list = ["class", "request", "getreader", "getinputstream", "writer"] /> | |
| <#macro dump key data> | |
| <#if data?is_enumerable> | |
| <p><b>${key}</b> | |
| <@printList data,[] /> | |
| <#elseif data?is_hash_ex> | |
| <p><b>${key}</b> |
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
| <#-- dump.ftl | |
| -- | |
| -- Generates tree representations of data model items. | |
| -- | |
| -- Usage: | |
| -- <#import "dump.ftl" as dumper> | |
| -- | |
| -- <#assign foo = something.in["your"].data[0].model /> | |
| -- | |
| -- <@dumper.dump foo /> |
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.io.PrintStream; | |
| import java.util.List; | |
| import com.liferay.portal.kernel.dao.orm.Criterion; | |
| import com.liferay.portal.kernel.dao.orm.DynamicQuery; | |
| import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; | |
| import com.liferay.portal.kernel.exception.SystemException; | |
| import com.liferay.portlet.dynamicdatalists.model.DDLRecord; | |
| import com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalServiceUtil; |
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.Calendar; | |
| import java.util.Date; | |
| import java.util.List; | |
| import com.liferay.portal.kernel.dao.orm.DynamicQuery; | |
| import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; | |
| import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil; | |
| import com.liferay.portal.kernel.dao.orm.Property; | |
| import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; | |
| import com.liferay.portlet.journal.model.JournalArticle; |
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
| function logSortedCSSSelectorsOnStylesheets(stylesheets) { | |
| var ruleset = new Set(); | |
| for (var stylesheet in stylesheets) { | |
| var rules = stylesheets[stylesheet].rules; | |
| for (var rule in rules) { | |
| var stylesheetRule = rules[rule]; | |
| if (stylesheetRule.selectorText) { | |
| ruleset.add(stylesheetRule.selectorText); | |
| } |
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
| All Liferay Variables | |
| See the bottom for the request variable expansion | |
| saxReaderUtil = com.liferay.portal.xml.SAXReaderImpl@aed8447 | |
| Callable methods: | |
| | createXPath | getClass | isProxyClass | createText | hashCode | readURL | class | read | getProxyClass | newProxyInstance | createElement | sort | getInvocationHandler | createDocument | createEntity | selectNodes | createNamespace | createAttribute | equals | createProcessingInstruction | toString | createQName | |
| getterUtil = com.liferay.portal.kernel.util.GetterUtil_IW@68bfc4e8 | |
| Callable methods: | |
| | getClass | getShortStrict | getDouble | getBooleanValues | getInteger | getFloat | getNumber | hashCode | get | getBoolean | getDate | getIntegerStrict | class | getStringValues | getLongStrict | getDateValues | getLongValues | getObject | getFloatValues | getShort | getString | getDoubleValues | getNumberValues | getShortValues | getLong | getIntegerValues | equals | toString | getInstance |
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
| pipeline { | |
| agent any | |
| options { | |
| buildDiscarder(logRotator(numToKeepStr: '21', artifactNumToKeepStr: '50')) | |
| timestamps() | |
| timeout(time: 5, unit: 'MINUTES') | |
| } | |
| parameters{ | |
| string(name: 'JAVA_HOME', defaultValue: '/var/jenkins_home/tools/hudson.model.JDK/JDK_7u80/', description: 'JDK', ) | |
| } |