com.gentics.cr.util
Class StandardPortalPLinkReplacer

java.lang.Object
  extended by com.gentics.cr.util.StandardPortalPLinkReplacer
All Implemented Interfaces:
com.gentics.api.portalnode.connector.PLinkReplacer

public class StandardPortalPLinkReplacer
extends Object
implements com.gentics.api.portalnode.connector.PLinkReplacer

Generic implementation of a PLinkReplacer.

 

Field Summary
private  com.gentics.api.lib.expressionparser.ExpressionEvaluator evaluator
          instance of the expression evaluator (for finding out, whether the linked object is a resource or a page).
(package private)  boolean isVersionDisplayed
          if the version number to be display in the URLS
private  org.apache.log4j.Logger logger
          The logger.
private  com.gentics.cr.RequestProcessor requestProcessor
          Request processor.
private  com.gentics.api.lib.expressionparser.Expression resourceRule
          expression to determine, whether an object is a resource or a normal page.
private  javax.portlet.MimeResponse response
          current render response.
 
Constructor Summary
StandardPortalPLinkReplacer(javax.portlet.PortletRequest request, javax.portlet.MimeResponse resp, com.gentics.cr.RequestProcessor rp, com.gentics.api.lib.expressionparser.Expression rr, boolean isVersionDisplayed)
          Create an instance of the PLinkReplacer.
 
Method Summary
 String replacePLink(com.gentics.api.portalnode.connector.PLinkInformation pLink)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

response

private javax.portlet.MimeResponse response
current render response.


evaluator

private com.gentics.api.lib.expressionparser.ExpressionEvaluator evaluator
instance of the expression evaluator (for finding out, whether the linked object is a resource or a page).


requestProcessor

private com.gentics.cr.RequestProcessor requestProcessor
Request processor.


resourceRule

private com.gentics.api.lib.expressionparser.Expression resourceRule
expression to determine, whether an object is a resource or a normal page.


logger

private org.apache.log4j.Logger logger
The logger.


isVersionDisplayed

boolean isVersionDisplayed
if the version number to be display in the URLS

Constructor Detail

StandardPortalPLinkReplacer

public StandardPortalPLinkReplacer(javax.portlet.PortletRequest request,
                                   javax.portlet.MimeResponse resp,
                                   com.gentics.cr.RequestProcessor rp,
                                   com.gentics.api.lib.expressionparser.Expression rr,
                                   boolean isVersionDisplayed)
Create an instance of the PLinkReplacer.

Parameters:
request - render request
resp - render response
rp - the rp
rr - the resource rule
isVersionDisplayed - if the version number to be display in the URLS
Method Detail

replacePLink

public String replacePLink(com.gentics.api.portalnode.connector.PLinkInformation pLink)
Specified by:
replacePLink in interface com.gentics.api.portalnode.connector.PLinkReplacer
Parameters:
pLink -
Returns:
String the replaced link.


Copyright © 2014 Gentics Software GmbH. All Rights Reserved.