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_PortletManagement_PortType; 12 import org.exoplatform.services.wsrp.producer.PortletManagementOperationsInterface; 13 import org.exoplatform.services.wsrp.type.*; 14 15 16 20 public class WSRP_v1_PortletManagement_Binding_SOAPImpl 21 implements WSRP_v1_PortletManagement_PortType{ 22 23 private PortletManagementOperationsInterface portletManagementOperationsInterface; 24 25 public WSRP_v1_PortletManagement_Binding_SOAPImpl() { 26 PortalContainer manager = PortalContainer.getInstance(); 27 portletManagementOperationsInterface = (PortletManagementOperationsInterface)manager. 28 getComponentInstanceOfType(PortletManagementOperationsInterface.class); 29 } 30 31 public PortletDescriptionResponse getPortletDescription(PortletDescriptionRequest getPortletDescription) 32 throws RemoteException , InvalidUserCategoryFault, InconsistentParametersFault, 33 InvalidRegistrationFault, OperationFailedFault, MissingParametersFault, 34 AccessDeniedFault, InvalidHandleFault { 35 return portletManagementOperationsInterface.getPortletDescription(getPortletDescription.getRegistrationContext(), 36 getPortletDescription.getPortletContext(), 37 getPortletDescription.getUserContext(), 38 getPortletDescription.getDesiredLocales()); 39 } 40 41 public PortletContext clonePortlet(ClonePortletRequest clonePortlet) 42 throws RemoteException , InvalidUserCategoryFault, InconsistentParametersFault, 43 InvalidRegistrationFault, OperationFailedFault, MissingParametersFault, 44 AccessDeniedFault, InvalidHandleFault { 45 return portletManagementOperationsInterface.clonePortlet(clonePortlet.getRegistrationContext(), 46 clonePortlet.getPortletContext(), 47 clonePortlet.getUserContext()); 48 } 49 50 public DestroyPortletsResponse destroyPortlets(DestroyPortletsRequest destroyPortlets) 51 throws RemoteException , InconsistentParametersFault, InvalidRegistrationFault, 52 OperationFailedFault, MissingParametersFault { 53 return portletManagementOperationsInterface.destroyPortlets(destroyPortlets.getRegistrationContext(), 54 destroyPortlets.getPortletHandles()); 55 } 56 57 public PortletContext setPortletProperties(SetPortletPropertiesRequest setPortletProperties) 58 throws RemoteException , InvalidUserCategoryFault, InconsistentParametersFault, 59 InvalidRegistrationFault, OperationFailedFault, MissingParametersFault, 60 AccessDeniedFault, InvalidHandleFault { 61 return portletManagementOperationsInterface.setPortletProperties(setPortletProperties.getRegistrationContext(), 62 setPortletProperties.getPortletContext(), 63 setPortletProperties.getUserContext(), 64 setPortletProperties.getPropertyList()); 65 } 66 67 public PropertyList getPortletProperties(GetPortletPropertiesRequest getPortletProperties) 68 throws RemoteException , InvalidUserCategoryFault, InconsistentParametersFault, 69 InvalidRegistrationFault, OperationFailedFault, MissingParametersFault, 70 AccessDeniedFault, InvalidHandleFault { 71 return portletManagementOperationsInterface.getPortletProperties(getPortletProperties.getRegistrationContext(), 72 getPortletProperties.getPortletContext(), 73 getPortletProperties.getUserContext(), 74 getPortletProperties.getNames()); 75 } 76 77 public PortletPropertyDescriptionResponse getPortletPropertyDescription(PortletPropertyDescriptionRequest getPortletPropertyDescription) 78 throws RemoteException , InvalidUserCategoryFault, InconsistentParametersFault, 79 InvalidRegistrationFault, OperationFailedFault, MissingParametersFault, 80 AccessDeniedFault, InvalidHandleFault { 81 return portletManagementOperationsInterface.getPortletPropertyDescription(getPortletPropertyDescription.getRegistrationContext(), 82 getPortletPropertyDescription.getPortletContext(), 83 getPortletPropertyDescription.getUserContext(), 84 getPortletPropertyDescription.getDesiredLocales()); 85 } 86 87 } 88 | Popular Tags |