Class ZmFilterRules
Class Detail
ZmFilterRules(accountName, outgoing)
Creates a filter rules object.
Author: Conrad Damon.
Method Detail
addRule(rule, referenceRule, callback)
Adds a rule to the list.
{AjxVector}
getActiveRules()
Gets the active rules in the list.
{int}
getIndexOfRule(rule)
Gets the numeric index of the rule in the list.
{int}
getNumberOfRules()
Gets the number of rules in the list.
{ZmFilterRule}
getRuleById(id)
Gets a rule based on its ID.
{ZmFilterRule}
getRuleByIndex(index)
Gets a rule based on its index.
{ZmFilterRule}
getRuleByName(name)
Gets a rule by name.
insertRule(rule, index)
Public method to insert rule into internval vectors. Adds to the end if no index is given.
loadRules(force, callback)
Loads the rules from the server.
moveDown(rule)
Moves a rule down in the list. If the rule is the last in the list, it isn't moved.
moveToBottom(rule, skipSave)
Moves a rule to the bottom of the list. If the rule is the last in the list, it isn't moved.
moveUp(rule)
Moves a rule up in the list. If the rule is the first in the list, it isn't moved.
removeRule(rule)
Removes a rule from the list.
saveRules(index, notify, callback)
Public method to save the rules to the server.
setActive(rule, active)
Marks a rule as active/inactive.
|
||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:37 GMT-0400 (EDT)
|