Object
A utility class for converting a new CM expression object tree into an old DocumentManager expression object tree.
Object
ExpressionConverter
Constructor Summary |
Method Summary |
public static |
|
public static void |
|
public static |
|
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExpressionConverter()
Method Detail |
public staticConvert a new CM-expression tree of objects to an old document expression tree of objects.Expression
convert(Expression
newExpr, boolean pathIsId, boolean pathStartsWithSlash)
throwsIllegalArgumentException
IllegalArgumentException
public static void fixExpression(Update any comparisons in the expression tree that need to be different to work against old document.Expression
expr, boolean pathIsId, boolean pathStartsWithSlash)
throwsIllegalArgumentException
Update any comparisons to 'path' in the old style expression tree. This will switch them to compare to either 'identifier' or 'name' based upon pathIsId. Additionally, it might trim a leading / from the rhs of the comparison based upon pathStartsWithSlash.
Update a comparison to 'createdBy' to 'author'.
Update a comparison to 'createDate' or 'createdDate' to 'creationDate'.
Update a comparison to 'fileSize' to 'size'.
Update a comparison to 'fileName' to 'name'.
IllegalArgumentException
public staticUpdate any references in the sorting to things that work in old document spi.SortCriteria
[] fixSortCriteria(SortCriteria
[] orig)
Update a reference to 'path' to 'identifier'.
Update a reference to 'createdBy' to 'author'.
Update a reference to 'createDate' or 'createdDate' to 'creationDate'.
Update a reference to 'fileSize' to 'size'.
Update a reference to 'fileName' to 'name'.