public class ConditionParser extends Object
ics variables or flex search conditon - SearchState| Modifier and Type | Method and Description |
|---|---|
static List<String> |
parseBasicCondition(ICS ics, Long site, AssetTypeDef atd, Condition c, String prefix, FTValList attributes)
This method is used to convert a condition to an asset search format.
|
static com.openmarket.gator.interfaces.ISearchState |
parseFlexCondition(ICS ics, AssetTypeDef atd, 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 String |
validAttributes(ICS ics, AssetTypeDef atd, List<String> attributes)
validate whether any of the attribute specified in the list does not belong to the specified assettype/subtype
|
public static com.openmarket.gator.interfaces.ISearchState parseFlexCondition(ICS ics, AssetTypeDef atd, String attributeType, Condition c) throws AssetAccessException
ics - the ICS objectatd - the asset type definition objectattributeType - The flex asset attribute typec - The condition to parseAssetAccessException - throws this exception if error met parsing the Conditionpublic static List<String> parseBasicCondition(ICS ics, Long site, AssetTypeDef atd, Condition c, 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 methodAssetAccessException - throws this exception if errors occur in parsingpublic static String validAttributes(ICS ics, AssetTypeDef atd, List<String> attributes)
ics - the ICS objectatd - the asset type definition objectattributes - list of string names to validate