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_Markup_PortType; 12 import org.exoplatform.services.wsrp.producer.MarkupOperationsInterface; 13 import org.exoplatform.services.wsrp.type.*; 14 15 16 20 public class WSRP_v1_Markup_Binding_SOAPImpl implements WSRP_v1_Markup_PortType{ 21 22 private MarkupOperationsInterface markupOperationsInterface; 23 24 public WSRP_v1_Markup_Binding_SOAPImpl() { 25 PortalContainer manager = PortalContainer.getInstance(); 26 markupOperationsInterface = (MarkupOperationsInterface)manager. 27 getComponentInstanceOfType(MarkupOperationsInterface.class); 28 } 29 30 public MarkupResponse getMarkup(MarkupRequest markupRequest) 31 throws RemoteException , InconsistentParametersFault, InvalidRegistrationFault, 32 MissingParametersFault, OperationFailedFault, UnsupportedMimeTypeFault, 33 UnsupportedModeFault, UnsupportedLocaleFault, InvalidUserCategoryFault, 34 InvalidSessionFault, InvalidCookieFault, AccessDeniedFault, InvalidHandleFault, 35 UnsupportedWindowStateFault { 36 return markupOperationsInterface.getMarkup(markupRequest.getRegistrationContext(), 37 markupRequest.getPortletContext(), 38 markupRequest.getRuntimeContext(), 39 markupRequest.getUserContext(), 40 markupRequest.getMarkupParams()); 41 } 42 43 public BlockingInteractionResponse performBlockingInteraction(BlockingInteractionRequest blockingInteractionRequest) 44 throws RemoteException , InconsistentParametersFault, 45 InvalidRegistrationFault, MissingParametersFault, 46 OperationFailedFault, UnsupportedMimeTypeFault, 47 UnsupportedModeFault, UnsupportedLocaleFault, 48 InvalidUserCategoryFault, InvalidSessionFault, 49 InvalidCookieFault, PortletStateChangeRequiredFault, 50 AccessDeniedFault, InvalidHandleFault, UnsupportedWindowStateFault { 51 return markupOperationsInterface.performBlockingInteraction(blockingInteractionRequest.getRegistrationContext(), 52 blockingInteractionRequest.getPortletContext(), 53 blockingInteractionRequest.getRuntimeContext(), 54 blockingInteractionRequest.getUserContext(), 55 blockingInteractionRequest.getMarkupParams(), 56 blockingInteractionRequest.getInteractionParams()); 57 } 58 59 public ReturnAny releaseSessions(ReleaseSessionsRequest releaseSessionsRequest) 60 throws RemoteException , InvalidRegistrationFault, OperationFailedFault, 61 MissingParametersFault, AccessDeniedFault { 62 return markupOperationsInterface.releaseSessions(releaseSessionsRequest.getRegistrationContext(), 63 releaseSessionsRequest.getSessionIDs()); 64 } 65 66 public ReturnAny initCookie(InitCookieRequest initCookie) 67 throws RemoteException , InvalidRegistrationFault, 68 OperationFailedFault, AccessDeniedFault { 69 return markupOperationsInterface.initCookie(initCookie.getRegistrationContext()); 70 } 71 72 } 73 | Popular Tags |