|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.fatwire.assetapi.query.ConditionParser
public class ConditionParser
The parsing utilities to parse the conditions from query into Baisc search ics variables or
flex search conditon - SearchState
| Method Summary | |
|---|---|
static java.util.List<java.lang.String> |
parseBasicCondition(ICS ics,
java.lang.Long site,
AssetTypeDef atd,
Condition c,
java.lang.String prefix,
FTValList attributes)
This method is used to convert a condition to an asset search format. |
static ISearchState |
parseFlexCondition(ICS ics,
AssetTypeDef atd,
java.lang.String attributeType,
Condition c)
Parse a Condition and convert the passed in Condition to an ISearchState that could be used to search for flex assets |
static java.lang.String |
validAttributes(ICS ics,
AssetTypeDef atd,
java.util.List<java.lang.String> attributes)
validate whether any of the attribute specified in the list does not belong to the specified assettype/subtype |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ISearchState parseFlexCondition(ICS ics,
AssetTypeDef atd,
java.lang.String attributeType,
Condition c)
throws AssetAccessException
ics - the ICS objectatd - the asset type definition objectattributeType - The flex asset attribute typec - The condition to parse
AssetAccessException - throws this exception if error met parsing the Condition
public static java.util.List<java.lang.String> parseBasicCondition(ICS ics,
java.lang.Long site,
AssetTypeDef atd,
Condition c,
java.lang.String prefix,
FTValList attributes)
throws AssetAccessException
ics - the ICS objectsite - the Content Server site id of the queryatd - the asset type definitionc - the Query Condition that needs to be parsedprefix - the prefix that we want to use for convertingattributes - the list of attributes that we converted; this will be used to pass into search method
AssetAccessException - throws this exception if errors occur in parsing
public static java.lang.String validAttributes(ICS ics,
AssetTypeDef atd,
java.util.List<java.lang.String> attributes)
ics - the ICS objectatd - the asset type definition objectattributes - list of string names to validate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||