KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > wsrp > bind > WSRP_v1_Registration_Binding_SOAPImpl


1 /*
2  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  *
5  * Created on 15 janv. 2004
6  */

7 package org.exoplatform.services.wsrp.bind;
8
9 import java.rmi.RemoteException JavaDoc;
10 import org.exoplatform.container.PortalContainer;
11 import org.exoplatform.services.wsrp.intf.WSRP_v1_Registration_PortType;
12 import org.exoplatform.services.wsrp.producer.RegistrationOperationsInterface;
13 import org.exoplatform.services.wsrp.type.*;
14
15
16
17 /**
18  * @author Mestrallet Benjamin
19  * benjmestrallet@users.sourceforge.net
20  */

21 public class WSRP_v1_Registration_Binding_SOAPImpl implements WSRP_v1_Registration_PortType{
22
23   private RegistrationOperationsInterface registrationOperationsInterface;
24
25   public WSRP_v1_Registration_Binding_SOAPImpl() {
26     PortalContainer manager = PortalContainer.getInstance();
27     registrationOperationsInterface = (RegistrationOperationsInterface)manager.
28         getComponentInstanceOfType(RegistrationOperationsInterface.class);
29   }
30
31   public RegistrationContext register(RegistrationData data) throws RemoteException JavaDoc, OperationFailedFault, MissingParametersFault {
32     return registrationOperationsInterface.register(data);
33   }
34
35   public ReturnAny deregister(RegistrationContext context) throws RemoteException JavaDoc, InvalidRegistrationFault, OperationFailedFault {
36     return registrationOperationsInterface.deregister(context);
37   }
38
39   public RegistrationState modifyRegistration(ModifyRegistrationRequest modifyRegistration) throws RemoteException JavaDoc, InvalidRegistrationFault, OperationFailedFault, MissingParametersFault {
40     return registrationOperationsInterface.modifyRegistration(modifyRegistration.getRegistrationContext(),
41                                                               modifyRegistration.getRegistrationData());
42   }
43
44 }
45
Popular Tags