[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

CollectContactsAction

inherits from RuleAction

Object <- RuleAction <- CollectContactsAction



Operations

Get list of all operations

ChooseContactsToCollect
PerformRule


Attributes

Get list of all attributes

Class CollectContactsAction defines no new attributes.


Fields

Field Type
CollectContactsAction: collectSender: Boolean
collectToRecipients: Boolean
collectCopyRecipients: Boolean
collectBlindCopyRecipients: Boolean
collectReplyTo: Boolean


Instance template

instance CollectContactsAction tag;
  collectSender: false;
collectToRecipients: false;
collectCopyRecipients: false;
collectBlindCopyRecipients: false;
 collectReplyTo: false;
end instance;

Class definition

Define Class CollectContactsAction;
    inherits from RuleAction;
    
    field collectSender:                Boolean;
        // set if the sender's contact should be collected
    field collectToRecipients:          Boolean;
        // set if contacts for the recipients should be collected
    field collectCopyRecipients:        Boolean;
        // set if contacts for cc recipients should be collected
    field collectBlindCopyRecipients:   Boolean;
        // set if contacts for bcc recipients should be collected
    field collectReplyTo:               Boolean;
        // set if contacts in the reply-to list should be collected
    
    overrides PerformRule;
        // overridden to collect contacts chosen by ChooseCardsToCollect.
        // Ensures that each contact is unique so ChooseCardsToCollect doesn't have to
        
    operation ChooseContactsToCollect(incoming: Telecard; collection: ObjectList);
        // fills collection with desired contacts from incoming cards.
        // override to choose contacts some way other than using the boolean fields
end class;