KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > server > engine > dm > ejb > ManagementLocal


1 /**
2  * Copyright (C) 2003-2005 Funambol
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19
20 package sync4j.server.engine.dm.ejb;
21
22 import javax.ejb.EJBLocalObject JavaDoc;
23
24 import sync4j.framework.engine.dm.ManagementException;
25 import sync4j.framework.notification.NotificationException;
26
27 /**
28   *
29   * @author Stefano Nichele
30   * @version $Id: ManagementLocal.java,v 1.1 2005/05/16 17:32:56 nichele Exp $
31   */

32 public interface ManagementLocal extends EJBLocalObject JavaDoc {
33
34      public void bootstrap(int messageType ,
35                            int transportType,
36                            String JavaDoc deviceUri ,
37                            String JavaDoc phoneNumber ,
38                            String JavaDoc username ,
39                            String JavaDoc password ,
40                            String JavaDoc info )
41      throws ManagementException, NotificationException;
42
43      public void sendNotification(int messageType ,
44                                   int transportType,
45                                   String JavaDoc phoneNumber ,
46                                   String JavaDoc operation ,
47                                   String JavaDoc info )
48      throws ManagementException, NotificationException;
49
50      /**
51      * Executes the management sequence identified by the given operation name.
52      *
53      * @param phoneNumber the phone number
54      * @param operation the management operation name
55      * @param info application specific detail information
56      *
57      * @throws ManagementException if a error occurs in the management engine,
58      * NotificationException if an error occurs in the notification process
59      */

60     public void executeManagementOperation( String JavaDoc phoneNumber ,
61                                             String JavaDoc operation ,
62                                             String JavaDoc info )
63     throws ManagementException, NotificationException;
64
65  }
Popular Tags