1 7 package org.exoplatform.services.wsrp.bind; 8 9 import java.rmi.RemoteException ; 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 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 , OperationFailedFault, MissingParametersFault { 32 return registrationOperationsInterface.register(data); 33 } 34 35 public ReturnAny deregister(RegistrationContext context) throws RemoteException , InvalidRegistrationFault, OperationFailedFault { 36 return registrationOperationsInterface.deregister(context); 37 } 38 39 public RegistrationState modifyRegistration(ModifyRegistrationRequest modifyRegistration) throws RemoteException , InvalidRegistrationFault, OperationFailedFault, MissingParametersFault { 40 return registrationOperationsInterface.modifyRegistration(modifyRegistration.getRegistrationContext(), 41 modifyRegistration.getRegistrationData()); 42 } 43 44 } 45 | Popular Tags |