@Exported public class ConditionParser extends Object
ics variables or
flex search condition - 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 object.atd - the asset type definition object.attributeType - The flex asset attribute type.c - The condition to parse.AssetAccessException - throws this exception if error met parsing the Condition.public static List<String> parseBasicCondition(ICS ics, Long site, AssetTypeDef atd, Condition c, String prefix, FTValList attributes) throws AssetAccessException
ics - the ICS object.site - the Content Server site id of the query.atd - the asset type definition.c - the Query Condition that needs to be parsed.prefix - the prefix that we want to use for converting.attributes - 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 String validAttributes(ICS ics, AssetTypeDef atd, List<String> attributes)
ics - the ICS object.atd - the asset type definition object.attributes - list of string names to validate.