587
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
package com.nokia.helium.signal.ant.types;
|
|
20 |
|
628
|
21 |
import java.util.Vector;
|
587
|
22 |
|
628
|
23 |
import org.apache.tools.ant.types.DataType;
|
587
|
24 |
|
628
|
25 |
import com.nokia.helium.signal.Notifier;
|
587
|
26 |
|
|
27 |
|
|
28 |
/**
|
|
29 |
* Helper class to store the list of notifiers.
|
|
30 |
*
|
|
31 |
* Example:
|
|
32 |
* <pre>
|
|
33 |
* <hlm:notifierList id="defaultSignalFailNotifier">
|
|
34 |
* <hlm:emailNotifier templateSrc="${helium.dir}/tools/common/templates/log/email_new.html.ftl" title="[signal] ${signal.name}"
|
|
35 |
* smtp="${email.smtp.server}" ldap="${email.ldap.server}" notifyWhen="fail">
|
|
36 |
* </hlm:emailNotifier>
|
|
37 |
* </hlm:notifierList>
|
|
38 |
* </pre>
|
|
39 |
* @ant.task name="notifierList" category="Signaling"
|
|
40 |
*/
|
|
41 |
public class SignalNotifierList extends DataType {
|
|
42 |
|
|
43 |
private Vector<Notifier> notifierlist = new Vector<Notifier>();
|
|
44 |
|
|
45 |
/**
|
|
46 |
* Adding a Notifier.
|
|
47 |
* @param notifier
|
|
48 |
*/
|
|
49 |
public void add(Notifier notifier) {
|
|
50 |
notifierlist.add(notifier);
|
|
51 |
}
|
|
52 |
|
|
53 |
/**
|
|
54 |
* Returns the list of variables available in the VariableSet
|
|
55 |
* @return variable list
|
|
56 |
*/
|
|
57 |
public Vector<Notifier> getNotifierList() {
|
|
58 |
return notifierlist;
|
|
59 |
}
|
|
60 |
}
|