You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by dl...@apache.org on 2005/08/30 02:51:41 UTC

cvs commit: ws-wsrp4j/sandbox/wsrp4j/commons-producer/src/java/org/apache/wsrp4j/commons/producer/binding WSRPMarkupBindingImpl.java WSRPPortletManagementBindingImpl.java WSRPRegistrationBindingImpl.java WSRPServiceDescriptionBindingImpl.java

dlouzan     2005/08/29 17:51:41

  Added:       sandbox/wsrp4j/commons-producer/src/java/org/apache/wsrp4j/commons/producer/binding
                        WSRPMarkupBindingImpl.java
                        WSRPPortletManagementBindingImpl.java
                        WSRPRegistrationBindingImpl.java
                        WSRPServiceDescriptionBindingImpl.java
  Log:
  Initial commit.
  
  Revision  Changes    Path
  1.1                  ws-wsrp4j/sandbox/wsrp4j/commons-producer/src/java/org/apache/wsrp4j/commons/producer/binding/WSRPMarkupBindingImpl.java
  
  Index: WSRPMarkupBindingImpl.java
  ===================================================================
  /*
   * Copyright 2003-2005 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package org.apache.wsrp4j.commons.producer.binding;
  
  import java.rmi.RemoteException;
  
  import oasis.names.tc.wsrp.v1.bind.WSRP_v1_Markup_Binding_SOAPImpl;
  import oasis.names.tc.wsrp.v1.types.AccessDeniedFault;
  import oasis.names.tc.wsrp.v1.types.BlockingInteractionResponse;
  import oasis.names.tc.wsrp.v1.types.GetMarkup;
  import oasis.names.tc.wsrp.v1.types.InconsistentParametersFault;
  import oasis.names.tc.wsrp.v1.types.InitCookie;
  import oasis.names.tc.wsrp.v1.types.InvalidCookieFault;
  import oasis.names.tc.wsrp.v1.types.InvalidHandleFault;
  import oasis.names.tc.wsrp.v1.types.InvalidRegistrationFault;
  import oasis.names.tc.wsrp.v1.types.InvalidSessionFault;
  import oasis.names.tc.wsrp.v1.types.InvalidUserCategoryFault;
  import oasis.names.tc.wsrp.v1.types.MarkupResponse;
  import oasis.names.tc.wsrp.v1.types.MissingParametersFault;
  import oasis.names.tc.wsrp.v1.types.OperationFailedFault;
  import oasis.names.tc.wsrp.v1.types.PerformBlockingInteraction;
  import oasis.names.tc.wsrp.v1.types.PortletStateChangeRequiredFault;
  import oasis.names.tc.wsrp.v1.types.ReleaseSessions;
  import oasis.names.tc.wsrp.v1.types.ReturnAny;
  import oasis.names.tc.wsrp.v1.types.UnsupportedLocaleFault;
  import oasis.names.tc.wsrp.v1.types.UnsupportedMimeTypeFault;
  import oasis.names.tc.wsrp.v1.types.UnsupportedModeFault;
  import oasis.names.tc.wsrp.v1.types.UnsupportedWindowStateFault;
  
  import org.apache.wsrp4j.commons.producer.driver.WSRPEngine;
  
  
  /**
   * Implements the binding methods for the PortletManagement interface,
   * linking the request to the actual WSRP implementation.
   *
   * @version $Id
   */
  public class WSRPMarkupBindingImpl extends WSRP_v1_Markup_Binding_SOAPImpl {
      
      public MarkupResponse getMarkup(GetMarkup getMarkup)
      throws RemoteException, InconsistentParametersFault, 
              InvalidRegistrationFault, MissingParametersFault, 
              OperationFailedFault, UnsupportedMimeTypeFault, 
              UnsupportedModeFault, UnsupportedLocaleFault, 
              InvalidUserCategoryFault, InvalidSessionFault, InvalidCookieFault, 
              AccessDeniedFault, InvalidHandleFault, UnsupportedWindowStateFault {
          
          return WSRPEngine.getInstance().getMarkup(getMarkup);
      }
  
      public BlockingInteractionResponse performBlockingInteraction(
              PerformBlockingInteraction performBlockingInteraction)
      throws RemoteException, InconsistentParametersFault, 
              InvalidRegistrationFault, MissingParametersFault, 
              OperationFailedFault, UnsupportedMimeTypeFault, 
              UnsupportedModeFault, UnsupportedLocaleFault, 
              InvalidUserCategoryFault, InvalidSessionFault, InvalidCookieFault, 
              PortletStateChangeRequiredFault, AccessDeniedFault, 
              InvalidHandleFault, UnsupportedWindowStateFault {
          
          return WSRPEngine.getInstance().
                  performBlockingInteraction(performBlockingInteraction);
      }
  
      public ReturnAny releaseSessions(ReleaseSessions releaseSessions)
      throws RemoteException, InvalidRegistrationFault, OperationFailedFault, 
              MissingParametersFault, AccessDeniedFault {
          
          return WSRPEngine.getInstance().releaseSessions(releaseSessions);
      }
  
      public ReturnAny initCookie(InitCookie initCookie)
      throws RemoteException, InvalidRegistrationFault, OperationFailedFault, 
              AccessDeniedFault {
          
          return WSRPEngine.getInstance().initCookie(initCookie);
      }
      
  }
  
  
  
  1.1                  ws-wsrp4j/sandbox/wsrp4j/commons-producer/src/java/org/apache/wsrp4j/commons/producer/binding/WSRPPortletManagementBindingImpl.java
  
  Index: WSRPPortletManagementBindingImpl.java
  ===================================================================
  /*
   * Copyright 2003-2005 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package org.apache.wsrp4j.commons.producer.binding;
  
  import java.rmi.RemoteException;
  
  import oasis.names.tc.wsrp.v1.bind.WSRP_v1_PortletManagement_Binding_SOAPImpl;
  import oasis.names.tc.wsrp.v1.types.AccessDeniedFault;
  import oasis.names.tc.wsrp.v1.types.ClonePortlet;
  import oasis.names.tc.wsrp.v1.types.DestroyPortlets;
  import oasis.names.tc.wsrp.v1.types.DestroyPortletsResponse;
  import oasis.names.tc.wsrp.v1.types.GetPortletDescription;
  import oasis.names.tc.wsrp.v1.types.GetPortletProperties;
  import oasis.names.tc.wsrp.v1.types.GetPortletPropertyDescription;
  import oasis.names.tc.wsrp.v1.types.InconsistentParametersFault;
  import oasis.names.tc.wsrp.v1.types.InvalidHandleFault;
  import oasis.names.tc.wsrp.v1.types.InvalidRegistrationFault;
  import oasis.names.tc.wsrp.v1.types.InvalidUserCategoryFault;
  import oasis.names.tc.wsrp.v1.types.MissingParametersFault;
  import oasis.names.tc.wsrp.v1.types.OperationFailedFault;
  import oasis.names.tc.wsrp.v1.types.PortletContext;
  import oasis.names.tc.wsrp.v1.types.PortletDescriptionResponse;
  import oasis.names.tc.wsrp.v1.types.PortletPropertyDescriptionResponse;
  import oasis.names.tc.wsrp.v1.types.PropertyList;
  import oasis.names.tc.wsrp.v1.types.SetPortletProperties;
  
  import org.apache.wsrp4j.commons.producer.driver.WSRPEngine;
  
  
  /**
   * Implements the binding methods for the PortletManagement interface,
   * linking the request to the actual WSRP implementation.
   *
   * @version $Id
   */
  public class WSRPPortletManagementBindingImpl 
          extends WSRP_v1_PortletManagement_Binding_SOAPImpl {
      
      public PortletDescriptionResponse getPortletDescription(
              GetPortletDescription getPortletDescription)
      throws RemoteException, InvalidUserCategoryFault,
              InconsistentParametersFault, InvalidRegistrationFault, 
              OperationFailedFault, MissingParametersFault, AccessDeniedFault,
              InvalidHandleFault {
          
          return WSRPEngine.getInstance().
                  getPortletDescription(getPortletDescription);
      }
  
      public PortletContext clonePortlet(ClonePortlet clonePortlet)
      throws RemoteException, InvalidUserCategoryFault, 
              InconsistentParametersFault, InvalidRegistrationFault, 
              OperationFailedFault, MissingParametersFault, AccessDeniedFault, 
              InvalidHandleFault {
          
          return WSRPEngine.getInstance().clonePortlet(clonePortlet);
      }
  
      public DestroyPortletsResponse destroyPortlets(
              DestroyPortlets destroyPortlets)
      throws RemoteException, InconsistentParametersFault, 
              InvalidRegistrationFault, OperationFailedFault, 
              MissingParametersFault {
          
          return WSRPEngine.getInstance().destroyPortlets(destroyPortlets);
      }
  
      public PortletContext setPortletProperties(
              SetPortletProperties setPortletProperties)
      throws RemoteException, InvalidUserCategoryFault, 
              InconsistentParametersFault, InvalidRegistrationFault, 
              OperationFailedFault, MissingParametersFault, AccessDeniedFault, 
              InvalidHandleFault {
          
          return WSRPEngine.getInstance().
                  setPortletProperties(setPortletProperties);
      }
  
      public PropertyList getPortletProperties(
              GetPortletProperties getPortletProperties)
      throws RemoteException, InvalidUserCategoryFault, 
              InconsistentParametersFault, InvalidRegistrationFault, 
              OperationFailedFault, MissingParametersFault, AccessDeniedFault, 
              InvalidHandleFault {
          
          return WSRPEngine.getInstance().
                  getPortletProperties(getPortletProperties);
      }
  
      public PortletPropertyDescriptionResponse getPortletPropertyDescription(
              GetPortletPropertyDescription getPortletPropertyDescription)
      throws RemoteException, InvalidUserCategoryFault, 
              InconsistentParametersFault, InvalidRegistrationFault, 
              OperationFailedFault, MissingParametersFault, AccessDeniedFault, 
              InvalidHandleFault {
          
          return WSRPEngine.getInstance().
                  getPortletPropertyDescription(getPortletPropertyDescription);
      }
      
  }
  
  
  
  1.1                  ws-wsrp4j/sandbox/wsrp4j/commons-producer/src/java/org/apache/wsrp4j/commons/producer/binding/WSRPRegistrationBindingImpl.java
  
  Index: WSRPRegistrationBindingImpl.java
  ===================================================================
  /*
   * Copyright 2003-2005 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package org.apache.wsrp4j.commons.producer.binding;
  
  import java.rmi.RemoteException;
  
  import oasis.names.tc.wsrp.v1.bind.WSRP_v1_Registration_Binding_SOAPImpl;
  import oasis.names.tc.wsrp.v1.types.InvalidRegistrationFault;
  import oasis.names.tc.wsrp.v1.types.MissingParametersFault;
  import oasis.names.tc.wsrp.v1.types.ModifyRegistration;
  import oasis.names.tc.wsrp.v1.types.OperationFailedFault;
  import oasis.names.tc.wsrp.v1.types.RegistrationContext;
  import oasis.names.tc.wsrp.v1.types.RegistrationData;
  import oasis.names.tc.wsrp.v1.types.RegistrationState;
  import oasis.names.tc.wsrp.v1.types.ReturnAny;
  
  import org.apache.wsrp4j.commons.producer.driver.WSRPEngine;
  
  
  /**
   * Implements the binding methods for the Registration interface,
   * linking the request to the actual WSRP implementation.
   *
   * @version $Id
   */
  public class WSRPRegistrationBindingImpl
          extends WSRP_v1_Registration_Binding_SOAPImpl {
      
      public RegistrationContext register(RegistrationData register)
      throws RemoteException, OperationFailedFault, MissingParametersFault {
          
          return WSRPEngine.getInstance().register(register);
      }
  
      public ReturnAny deregister(RegistrationContext deregister)
      throws RemoteException, InvalidRegistrationFault, OperationFailedFault {
          
          return WSRPEngine.getInstance().deregister(deregister);
      }
  
      public RegistrationState modifyRegistration(
              ModifyRegistration modifyRegistration)
      throws RemoteException, InvalidRegistrationFault, OperationFailedFault, 
              MissingParametersFault {
          
          return WSRPEngine.getInstance().modifyRegistration(modifyRegistration);
      }
      
  }
  
  
  
  1.1                  ws-wsrp4j/sandbox/wsrp4j/commons-producer/src/java/org/apache/wsrp4j/commons/producer/binding/WSRPServiceDescriptionBindingImpl.java
  
  Index: WSRPServiceDescriptionBindingImpl.java
  ===================================================================
  /*
   * Copyright 2003-2005 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package org.apache.wsrp4j.commons.producer.binding;
  
  import java.rmi.RemoteException;
  
  import oasis.names.tc.wsrp.v1.bind.WSRP_v1_ServiceDescription_Binding_SOAPImpl;
  import oasis.names.tc.wsrp.v1.types.GetServiceDescription;
  import oasis.names.tc.wsrp.v1.types.InvalidRegistrationFault;
  import oasis.names.tc.wsrp.v1.types.OperationFailedFault;
  import oasis.names.tc.wsrp.v1.types.ServiceDescription;
  
  import org.apache.wsrp4j.commons.producer.driver.WSRPEngine;
  
  
  /**
   * Implements the binding methods for the ServiceDescription interface,
   * linking the request to the actual WSRP implementation.
   *
   * @version $Id
   */
  public class WSRPServiceDescriptionBindingImpl 
          extends WSRP_v1_ServiceDescription_Binding_SOAPImpl {
      
      public ServiceDescription getServiceDescription(
              GetServiceDescription getServiceDescription)
      throws RemoteException, InvalidRegistrationFault, OperationFailedFault {
          
          return WSRPEngine.getInstance().
                  getServiceDescription(getServiceDescription);
      }
      
  }