org.rhq.enterprise.server.search.translation
Class AbstractSearchTranslator

java.lang.Object
  extended by org.rhq.enterprise.server.search.translation.AbstractSearchTranslator
All Implemented Interfaces:
SearchTranslator
Direct Known Subclasses:
GroupSearchTranslator, ResourceSearchTranslator

public abstract class AbstractSearchTranslator
extends Object
implements SearchTranslator

Author:
Joseph Marques

Constructor Summary
AbstractSearchTranslator(org.rhq.core.domain.auth.Subject subject)
           
 
Method Summary
protected  String addFragmentIfParameterNotValue(String fragment, String parameter, String value)
           
protected  String conditionallyAddAuthzFragment(String fragment)
           
protected  String getJPQLForEnum(String fragment, RHQLComparisonOperator operator, String value, Class<? extends Enum<?>> enumClass, boolean useOrdinal)
           
 int getSubjectId()
           
protected  String quote(String data)
           
 boolean requiresAuthorizationFragment()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rhq.enterprise.server.search.translation.SearchTranslator
getSearchFragment
 

Constructor Detail

AbstractSearchTranslator

public AbstractSearchTranslator(org.rhq.core.domain.auth.Subject subject)
Method Detail

getSubjectId

public int getSubjectId()

requiresAuthorizationFragment

public boolean requiresAuthorizationFragment()

conditionallyAddAuthzFragment

protected final String conditionallyAddAuthzFragment(String fragment)

getJPQLForEnum

protected String getJPQLForEnum(String fragment,
                                RHQLComparisonOperator operator,
                                String value,
                                Class<? extends Enum<?>> enumClass,
                                boolean useOrdinal)

quote

protected String quote(String data)

addFragmentIfParameterNotValue

protected final String addFragmentIfParameterNotValue(String fragment,
                                                      String parameter,
                                                      String value)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.