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
#if(!$UtilMethods.isSet($customPageAssetFieldVar)) | |
#set($customPageAssetFieldVar = 'pageAsset') | |
#end | |
#if(!$UtilMethods.isSet($pageUrlDummyField)) | |
#set($pageUrlDummyField = 'pageUrl') | |
#end | |
#set($pageAssetValue = $context.get($customPageAssetFieldVar)) | |
#if(!$UtilMethods.isSet($hostId)) | |
#set($hostId = $host.identifier) | |
#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
#if(!$UtilMethods.isSet($fieldVar)) | |
#set($fieldVar = 'market') | |
#end | |
#if(!$UtilMethods.isSet($stName)) | |
#set($stName = 'Markets') | |
#end | |
#if(!$UtilMethods.isSet($sortOrder)) | |
#set($sortOrder = "${stName}.title") |
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
## This is the code in the custom field | |
#set($fieldVar = 'market') ## This field's Velocity Var Name | |
#set($stName = 'Markets') ## The Structure Name to Pull From | |
#set($sortOrder = "${stName}.title") ## The order to sort the results in | |
#set($conditions = "") ## Sometimes it is neccessary to pass more conditions to the query | |
#set($limit = 0) ## The Query Limit | |
#set($valueField = "marketId") ## The Name of the field in the structure to get the value from | |
#set($lblField = "name") ## The name of the field in the structure to get the label from |
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
package com.aquent.osgi; | |
import com.aquent.AquentResource; | |
import com.dotcms.repackage.org.apache.felix.http.api.ExtHttpService; | |
import com.dotcms.repackage.org.osgi.framework.BundleContext; | |
import com.dotcms.repackage.org.osgi.framework.ServiceReference; | |
import com.dotcms.repackage.org.osgi.util.tracker.ServiceTracker; | |
import com.dotcms.repackage.org.tuckey.web.filters.urlrewrite.Condition; | |
import com.dotcms.repackage.org.tuckey.web.filters.urlrewrite.NormalRule; |
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
public final class Pushing { | |
public static final Pushing INSTANCE = new Pushing(); | |
private User sysUser = null; | |
private EnvironmentAPI envAPI = APILocator.getEnvironmentAPI(); | |
private BundleAPI bundleAPI = APILocator.getBundleAPI(); | |
private PublisherAPI pubAPI = PublisherAPI.getInstance(); | |
private UserAPI userAPI = APILocator.getUserAPI(); | |
private Pushing() { } |
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
#set($THEFLICKR = "") | |
<div> <h2>What's I got?</h2> | |
<ul> | |
#foreach($key in $context.getKeys()) | |
#if($key.startsWith("contentletList")) | |
#set($cid = $key.replaceAll("contentList", "")) | |
<li>Container id = $cid - Contents: | |
<ul> | |
#foreach($conid in $context.get($key)) | |
<li>$conid |
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
private void createStructure(String stVarName, Host stHost, JSONObject json) throws Exception { | |
Structure st = new Structure(); | |
st.setDefaultStructure(false); | |
st.setFixed(false); | |
st.setStructureType(Structure.STRUCTURE_TYPE_CONTENT); | |
st.setName(json.getString("name")); | |
st.setVelocityVarName(stVarName); | |
st.setHost(stHost.getIdentifier()); | |
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
package com.aquent; | |
import java.util.List; | |
import com.dotmarketing.business.APILocator; | |
import com.dotmarketing.business.UserAPI; | |
import com.dotmarketing.db.HibernateUtil; | |
import com.dotmarketing.portlets.contentlet.business.ContentletAPI; | |
import com.dotmarketing.portlets.contentlet.model.Contentlet; | |
import com.dotmarketing.util.Logger; |
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
2014-01-28 09:41:25 | |
Full thread dump Java HotSpot(TM) 64-Bit Server VM (24.0-b56 mixed mode): | |
"elasticsearch[dotCMS_1][search][T#160]" daemon prio=10 tid=0x00007f411429a000 nid=0xf00 waiting on condition [0x00007f40e85ed000] | |
java.lang.Thread.State: TIMED_WAITING (parking) | |
at sun.misc.Unsafe.park(Native Method) | |
- parking to wait for <0x00000006c1bc1910> (a java.util.concurrent.SynchronousQueue$TransferStack) | |
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226) | |
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460) | |
at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359) |
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
-[ RECORD 1 ]----+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
NewerOlder