1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.sf.asterisk.manager.event;
18
19 /***
20 * A RenameEvent is triggered when the name of a channel is changed.<br>
21 * It is implemented in <code>channel.c</code>
22 *
23 * @author srt
24 * @version $Id: RenameEvent.java,v 1.3 2005/02/23 22:56:41 srt Exp $
25 */
26 public class RenameEvent extends ManagerEvent
27 {
28 /***
29 * Serializable version identifier
30 */
31 static final long serialVersionUID = 3400165738000349767L;
32
33 /***
34 * Old name of the channel before renaming occured.
35 */
36 protected String oldname;
37
38 /***
39 * New name of the channel after renaming occured.
40 */
41 protected String newname;
42
43 /***
44 * Unique id of the channel.
45 */
46 protected String uniqueId;
47
48 /***
49 * @param source
50 */
51 public RenameEvent(Object source)
52 {
53 super(source);
54 }
55
56 /***
57 * Returns the new name of the channel.
58 * @return the new name of the channel.
59 */
60 public final String getNewname()
61 {
62 return newname;
63 }
64
65 /***
66 * Sets the new name of the channel.
67 * @param newname the new name of the channel.
68 */
69 public final void setNewname(final String newname)
70 {
71 this.newname = newname;
72 }
73
74 /***
75 * Returns the old name of the channel.
76 * @return the old name of the channel.
77 */
78 public final String getOldname()
79 {
80 return oldname;
81 }
82
83 /***
84 * Sets the old name of the channel.
85 * @param oldname the old name of the channel.
86 */
87 public final void setOldname(final String oldname)
88 {
89 this.oldname = oldname;
90 }
91
92 /***
93 * Returns the unique id of the channel.
94 * @return the unique id of the channel.
95 */
96 public final String getUniqueId()
97 {
98 return uniqueId;
99 }
100
101 /***
102 * Sets the unique id of the channel.
103 * @param uniqueId the unique id of the channel.
104 */
105 public final void setUniqueId(final String uniqueId)
106 {
107 this.uniqueId = uniqueId;
108 }
109 }