com.gentics.cr.util.search
Class SearchTermBuilderImpl

java.lang.Object
  extended by com.gentics.cr.util.search.SearchTermBuilderImpl
All Implemented Interfaces:
SearchTermBuilder

public class SearchTermBuilderImpl
extends Object
implements SearchTermBuilder

 

Field Summary
private static org.apache.log4j.Logger log
          The log.
private  List<String> parameters
           
static String SEARCHTEMPLATE_PARAMETER_KEY
           
static String SEARCHTERM_ESCAPE_KEY
           
static String SEARCHTERM_PARAMETERS_KEY
           
static String SEARCHTERM_TEMPLATE_KEY
           
private  boolean shouldEscape
           
private  String template
           
private  org.apache.velocity.app.VelocityEngine vEngine
           
 
Constructor Summary
SearchTermBuilderImpl()
           
 
Method Summary
 String buildTerm(javax.portlet.PortletRequest request)
           
 void init(com.gentics.cr.CRConfig config)
           
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log
The log.


vEngine

private org.apache.velocity.app.VelocityEngine vEngine

SEARCHTERM_PARAMETERS_KEY

public static final String SEARCHTERM_PARAMETERS_KEY
See Also:
Constant Field Values

SEARCHTERM_TEMPLATE_KEY

public static final String SEARCHTERM_TEMPLATE_KEY
See Also:
Constant Field Values

SEARCHTERM_ESCAPE_KEY

public static final String SEARCHTERM_ESCAPE_KEY
See Also:
Constant Field Values

SEARCHTEMPLATE_PARAMETER_KEY

public static final String SEARCHTEMPLATE_PARAMETER_KEY
See Also:
Constant Field Values

shouldEscape

private boolean shouldEscape

parameters

private List<String> parameters

template

private String template
Constructor Detail

SearchTermBuilderImpl

public SearchTermBuilderImpl()
Method Detail

init

public void init(com.gentics.cr.CRConfig config)
Specified by:
init in interface SearchTermBuilder

processAction

public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse response)
Specified by:
processAction in interface SearchTermBuilder

buildTerm

public String buildTerm(javax.portlet.PortletRequest request)
Specified by:
buildTerm in interface SearchTermBuilder


Copyright © 2014 Gentics Software GmbH. All Rights Reserved.