com.wm.app.tn.route
Class RoutingRuleStore

java.lang.Object
  extended by com.wm.app.tn.route.RoutingRuleStore

public class RoutingRuleStore
extends java.lang.Object


Constructor Summary
RoutingRuleStore()
           
 
Method Summary
static java.lang.String add(RoutingRule rule, java.lang.String changeId)
           
static java.lang.String delete(java.lang.String[] ruleIds, java.lang.String changeId)
           
static RoutingRule getFirstMatch(BizDocEnvelope doc)
           
static java.lang.String getLastChangeId()
          Returns the current LastChangeID of this server
static RoutingRuleList getList()
           
static com.wm.data.IData getMetaDataList()
           
static RoutingRule getRule(java.lang.String ruleId)
           
static RoutingRule getRuleByName(java.lang.String ruleName)
           
static void load()
           
static java.lang.String move(java.lang.String[][] rules, int insertAt, java.lang.String changeId)
           
static RoutingRuleList queryRules(java.lang.String regexName)
           
static int save(RoutingRuleList list)
          Deprecated.  
static RoutingRuleList simpleRuleNameSearch(java.lang.String ruleName)
           
static void update(RoutingRule rule)
           
static void updateStatus(RoutingRule rule)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutingRuleStore

public RoutingRuleStore()
Method Detail

add

public static java.lang.String add(RoutingRule rule,
                                   java.lang.String changeId)
                            throws RoutingException,
                                   StaleRuleListException
Throws:
RoutingException
StaleRuleListException

delete

public static java.lang.String delete(java.lang.String[] ruleIds,
                                      java.lang.String changeId)
                               throws RoutingException,
                                      StaleRuleListException
Throws:
RoutingException
StaleRuleListException

move

public static java.lang.String move(java.lang.String[][] rules,
                                    int insertAt,
                                    java.lang.String changeId)
                             throws RoutingException,
                                    StaleRuleListException
Throws:
RoutingException
StaleRuleListException

update

public static void update(RoutingRule rule)
                   throws RoutingException
Throws:
RoutingException

updateStatus

public static void updateStatus(RoutingRule rule)
                         throws RoutingException
Throws:
RoutingException

load

public static void load()
                 throws RoutingException
Throws:
RoutingException

getList

public static RoutingRuleList getList()

getMetaDataList

public static com.wm.data.IData getMetaDataList()
                                         throws RoutingException,
                                                java.sql.SQLException
Throws:
RoutingException
java.sql.SQLException

getRuleByName

public static RoutingRule getRuleByName(java.lang.String ruleName)
                                 throws RoutingException
Throws:
RoutingException

getRule

public static RoutingRule getRule(java.lang.String ruleId)
                           throws RoutingException
Throws:
RoutingException

getFirstMatch

public static RoutingRule getFirstMatch(BizDocEnvelope doc)

save

public static int save(RoutingRuleList list)
                throws RoutingException
Deprecated. 

Throws:
RoutingException

simpleRuleNameSearch

public static RoutingRuleList simpleRuleNameSearch(java.lang.String ruleName)
                                            throws RoutingException
Throws:
RoutingException

getLastChangeId

public static java.lang.String getLastChangeId()
                                        throws java.sql.SQLException,
                                               RoutingException
Returns the current LastChangeID of this server

Returns:
String, the lastChangeID of this server
Throws:
java.sql.SQLException
RoutingException

queryRules

public static RoutingRuleList queryRules(java.lang.String regexName)
                                  throws com.wm.app.b2b.server.ServiceException,
                                         java.sql.SQLException,
                                         java.io.IOException
Throws:
com.wm.app.b2b.server.ServiceException
java.sql.SQLException
java.io.IOException