|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.svc.ui.formhandlers.KnowledgeQueryPredicateBuilder
public class KnowledgeQueryPredicateBuilder
Analyzes solution constraints and converts them into KnowledgeQueryPredicate[] for future searches.
Field Summary | |
---|---|
protected static KnowledgeQueryAttrDescription[] |
ATTRIBUTES
|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
DATE_FORMAT
|
static java.lang.String |
GREATEREQ
|
static java.lang.String |
LESSEQ
|
protected static java.util.Map |
OPERATORS
|
static java.lang.String |
WITHIN
|
Constructor Summary | |
---|---|
KnowledgeQueryPredicateBuilder()
|
Method Summary | |
---|---|
protected static atg.svc.repository.beans.KnowledgeQueryPredicate |
buildListPredicate(KnowledgeQuerySubtypeEnum pListType,
java.lang.String pFieldName,
atg.svc.repository.beans.KnowledgeQueryPredicateOperator pOper,
java.util.List pValues,
QueryService pQService)
|
static java.util.Set |
buildPredicates(SolutionSearchFormHandler pForm)
Returns a list of newly constructed query predicate beans. |
protected static java.lang.Object |
createPredicate(QueryService queryService,
KnowledgeQueryAttrDescription attr)
Factory method. |
static java.lang.String |
escapeString(java.lang.String source)
Escapes source string. |
protected static java.lang.String |
firstCharToUpperCase(java.lang.String pValue)
|
static java.lang.String |
getDateFormat()
|
static atg.svc.repository.beans.KnowledgeQueryPredicateOperator |
getOperator(java.lang.String pOperator)
|
static java.util.List |
parseAttributes(SearchBaseFormHandler pForm)
Parses request and returns List of KnowledgeQueryAttrDescription objects. |
protected static java.util.List |
parseFieldValues(SearchBaseFormHandler pForm)
Auxiliary method for parsing values of Solution Class-Specific Constraints. |
static java.util.List |
splitEscapedString(java.lang.String source)
Auxiliary method for spliting escaped, ';'-delimitered strings |
static java.lang.String |
unescapeString(java.lang.String source)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String DATE_FORMAT
public static final java.lang.String WITHIN
public static final java.lang.String GREATEREQ
public static final java.lang.String LESSEQ
protected static final KnowledgeQueryAttrDescription[] ATTRIBUTES
protected static final java.util.Map OPERATORS
Constructor Detail |
---|
public KnowledgeQueryPredicateBuilder()
Method Detail |
---|
public static java.util.Set buildPredicates(SolutionSearchFormHandler pForm) throws ObjectNotFoundException, javax.ejb.CreateException
pForm
- Query builder form
ObjectNotFoundException
javax.ejb.CreateException
protected static java.lang.Object createPredicate(QueryService queryService, KnowledgeQueryAttrDescription attr) throws ObjectNotFoundException, javax.ejb.CreateException
queryService
- QueryService object.attr
- Attribute description.
ObjectNotFoundException
javax.ejb.CreateException
public static atg.svc.repository.beans.KnowledgeQueryPredicateOperator getOperator(java.lang.String pOperator)
protected static atg.svc.repository.beans.KnowledgeQueryPredicate buildListPredicate(KnowledgeQuerySubtypeEnum pListType, java.lang.String pFieldName, atg.svc.repository.beans.KnowledgeQueryPredicateOperator pOper, java.util.List pValues, QueryService pQService) throws ObjectNotFoundException, javax.ejb.CreateException
ObjectNotFoundException
javax.ejb.CreateException
protected static java.lang.String firstCharToUpperCase(java.lang.String pValue)
protected static java.util.List parseFieldValues(SearchBaseFormHandler pForm) throws ObjectNotFoundException
pForm
- SolutionFormHandler object
ObjectNotFoundException
public static java.util.List splitEscapedString(java.lang.String source)
source
- Source string for spliting
public static java.util.List parseAttributes(SearchBaseFormHandler pForm)
pForm
- SolutionSearchFormHandler form. Used for access to
request parameters.
public static java.lang.String escapeString(java.lang.String source)
source
- Source string
public static java.lang.String unescapeString(java.lang.String source)
public static java.lang.String getDateFormat()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |