View Javadoc

1   /*
2    * Copyright  2004-2005 Stefan Reuter
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *
16   */
17  package net.sf.asterisk.manager.event;
18  
19  /***
20   * Abstract base class for several call parking related events.
21   * 
22   * @author srt
23   * @version $Id: AbstractParkedCallEvent.java,v 1.1 2005/08/27 16:16:45 srt Exp $
24   * @since 0.2
25   */
26  public abstract class AbstractParkedCallEvent extends ManagerEvent
27  {
28      /***
29       * Serializable version identifier
30       */
31      private static final long serialVersionUID = -7437833328723536814L;
32      private String exten;
33      private String channel;
34      private String callerId;
35      private String callerIdName;
36  
37      /***
38       * @param source
39       */
40      public AbstractParkedCallEvent(Object source)
41      {
42          super(source);
43      }
44  
45      /***
46       * Returns the extension the channel is or was parked at.
47       */
48      public String getExten()
49      {
50          return exten;
51      }
52  
53      /***
54       * Sets the extension the channel is or was parked at.
55       */
56      public void setExten(String exten)
57      {
58          this.exten = exten;
59      }
60  
61      /***
62       * Returns the name of the channel that is or was parked.
63       */
64      public String getChannel()
65      {
66          return channel;
67      }
68  
69      /***
70       * Sets the name of the channel that is or was parked.
71       */
72      public void setChannel(String channel)
73      {
74          this.channel = channel;
75      }
76  
77      /***
78       * Returns the Caller*ID number of the parked channel.
79       * 
80       * @return the Caller*ID number of the parked channel.
81       */
82      public String getCallerId()
83      {
84          return callerId;
85      }
86  
87      /***
88       * Sets the Caller*ID number of the parked channel.
89       * 
90       * @param callerId the Caller*ID number of the parked channel.
91       */
92      public void setCallerId(String callerId)
93      {
94          this.callerId = callerId;
95      }
96  
97      /***
98       * Returns the Caller*ID name of the parked channel.
99       * 
100      * @return the Caller*ID name of the parked channel.
101      */
102     public String getCallerIdName()
103     {
104         return callerIdName;
105     }
106 
107     /***
108      * Sets the Caller*ID name of the parked channel.
109      * 
110      * @param callerIdName the Caller*ID name of the parked channel.
111      */
112     public void setCallerIdName(String callerIdName)
113     {
114         this.callerIdName = callerIdName;
115     }
116 }