|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.server.util.SubscriptionExpressionUtil
Utility class to support creating subscription expression for the Workflow Subscription expression page.
Constructor Summary | |
SubscriptionExpressionUtil(org.w3c.dom.Document propDescXML,
java.lang.String expression,
java.util.Locale locale)
Constructor to create a new utility. |
Method Summary | |
void |
add(java.lang.String symName,
java.lang.String operator,
java.lang.String value)
Adds a new condition to the expression. |
void |
addExpressionOperator(java.lang.String operator)
Adds a new logical operator (and, or and etc...) to the expression. |
org.w3c.dom.NodeList |
getEventExpressionOperatorNodeList(java.lang.String symName)
Returns the list of supported event expression operators. |
java.util.ArrayList |
getExceptionsArray()
Returns all exceptions encountered when loading the expression into the expression vector. |
java.lang.String |
getExpression()
Returns the workflow or event expression. |
org.w3c.dom.NodeList |
getExpressionNodeList()
Returns the expression as nodelist |
org.w3c.dom.Document |
getPropDescsXML()
Gets the property descriptions XML to be used to build an expression |
org.w3c.dom.NodeList |
getWorkflowExpressionOperatorNodeList(java.lang.String symName)
Returns the list of supported wofkflow expression operators. |
boolean |
hasUnsupportedOperator()
Returns true if the expression has operators that are not currently supported by the expression. |
void |
insert(java.lang.String symName,
java.lang.String operator,
java.lang.String value,
int index)
Inserts a new condition to the expression. |
void |
insertExpressionOperator(java.lang.String operator,
int index)
Inserts a new logical operator (and, or and etc...) to the expression. |
void |
moveDown(java.lang.String[] items)
Moves the selected items down in the expression. |
void |
moveUp(java.lang.String[] items)
Moves the selected items up in the expression. |
void |
remove(int index)
Removes the selected condition or operator using its index. |
void |
setPropDescsXML(org.w3c.dom.Document propDescsXML)
Sets the property descriptions XML to be used to build an expression |
boolean |
validateExpression()
Validates the expression created by the expression builder. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SubscriptionExpressionUtil(org.w3c.dom.Document propDescXML, java.lang.String expression, java.util.Locale locale) throws java.lang.Exception
expression
- String holding the workflow filtered expression or the event filtered expression.locale
- Locale holding the locale information.
java.lang.Exception
Method Detail |
public void add(java.lang.String symName, java.lang.String operator, java.lang.String value) throws java.lang.Exception
symName
- String holding the workflow filtered expression or the event filtered expression.operator
- String holding the condition operator (=, <>, like, in, <, >, >=, <=)value
- String holding the value of the expression condition.
java.lang.Exception
public void insert(java.lang.String symName, java.lang.String operator, java.lang.String value, int index) throws java.lang.Exception
symName
- String The workflow filtered expression or the event filtered expression.operator
- String The condition operator (=, <>, like, in, <, >, >=, <=)value
- String The value of the expression condition.index
- int The position where the new item will be inserted into the expression.
java.lang.Exception
public void remove(int index)
index
- int The index of the selected item.public void addExpressionOperator(java.lang.String operator)
operator
- String The selected logical operator.public void insertExpressionOperator(java.lang.String operator, int index)
operator
- String The selected logical operator.index
- int The position where the new item will be inserted into the expression.public org.w3c.dom.NodeList getExpressionNodeList()
public void moveUp(java.lang.String[] items) throws java.lang.Exception
items
- String[] The items to be moved up in the expression.
java.lang.Exception
public void moveDown(java.lang.String[] items) throws java.lang.Exception
items
- String[] The items to be moved up in the expression.
java.lang.Exception
public org.w3c.dom.NodeList getEventExpressionOperatorNodeList(java.lang.String symName) throws java.lang.Exception
java.lang.Exception
public org.w3c.dom.NodeList getWorkflowExpressionOperatorNodeList(java.lang.String symName) throws java.lang.Exception
java.lang.Exception
public boolean hasUnsupportedOperator()
public java.lang.String getExpression() throws java.lang.Exception
java.lang.Exception
public boolean validateExpression() throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList getExceptionsArray()
public org.w3c.dom.Document getPropDescsXML()
public void setPropDescsXML(org.w3c.dom.Document propDescsXML) throws java.lang.Exception
propDescsXML
- Document The property descriptions XML of the selected target class
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |