001: /******************************************************************************
002: * JBoss, a division of Red Hat *
003: * Copyright 2006, Red Hat Middleware, LLC, and individual *
004: * contributors as indicated by the @authors tag. See the *
005: * copyright.txt in the distribution for a full listing of *
006: * individual contributors. *
007: * *
008: * This is free software; you can redistribute it and/or modify it *
009: * under the terms of the GNU Lesser General Public License as *
010: * published by the Free Software Foundation; either version 2.1 of *
011: * the License, or (at your option) any later version. *
012: * *
013: * This software is distributed in the hope that it will be useful, *
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of *
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
016: * Lesser General Public License for more details. *
017: * *
018: * You should have received a copy of the GNU Lesser General Public *
019: * License along with this software; if not, write to the Free *
020: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
021: * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
022: ******************************************************************************/package org.jboss.portal.test.wsrp.framework;
023:
024: import org.jboss.portal.wsrp.WSRPTypeFactory;
025: import org.jboss.portal.wsrp.core.AccessDeniedFault;
026: import org.jboss.portal.wsrp.core.ClonePortlet;
027: import org.jboss.portal.wsrp.core.DestroyPortlets;
028: import org.jboss.portal.wsrp.core.DestroyPortletsResponse;
029: import org.jboss.portal.wsrp.core.GetPortletDescription;
030: import org.jboss.portal.wsrp.core.GetPortletProperties;
031: import org.jboss.portal.wsrp.core.GetPortletPropertyDescription;
032: import org.jboss.portal.wsrp.core.InconsistentParametersFault;
033: import org.jboss.portal.wsrp.core.InvalidHandleFault;
034: import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
035: import org.jboss.portal.wsrp.core.InvalidUserCategoryFault;
036: import org.jboss.portal.wsrp.core.MissingParametersFault;
037: import org.jboss.portal.wsrp.core.OperationFailedFault;
038: import org.jboss.portal.wsrp.core.PortletContext;
039: import org.jboss.portal.wsrp.core.PortletDescriptionResponse;
040: import org.jboss.portal.wsrp.core.PortletPropertyDescriptionResponse;
041: import org.jboss.portal.wsrp.core.PropertyList;
042: import org.jboss.portal.wsrp.core.SetPortletProperties;
043: import org.jboss.portal.wsrp.core.WSRP_v1_PortletManagement_PortType;
044:
045: import java.rmi.RemoteException;
046:
047: /**
048: * @author <a href="mailto:chris.laprun@jboss.com?subject=org.jboss.portal.test.wsrp.framework.PortletManagementBehavior">Chris
049: * Laprun</a>
050: * @version $Revision: 8784 $
051: * @since 2.6
052: */
053: public class PortletManagementBehavior extends TestProducerBehavior
054: implements WSRP_v1_PortletManagement_PortType {
055: public PortletDescriptionResponse getPortletDescription(
056: GetPortletDescription getPortletDescription)
057: throws AccessDeniedFault, InvalidHandleFault,
058: InvalidUserCategoryFault, InconsistentParametersFault,
059: MissingParametersFault, InvalidRegistrationFault,
060: OperationFailedFault, RemoteException {
061: incrementCallCount();
062: return null;
063: }
064:
065: public PortletContext clonePortlet(ClonePortlet clonePortlet)
066: throws InvalidUserCategoryFault, AccessDeniedFault,
067: OperationFailedFault, InvalidHandleFault,
068: InvalidRegistrationFault, InconsistentParametersFault,
069: MissingParametersFault, RemoteException {
070: incrementCallCount();
071: return null;
072: }
073:
074: public DestroyPortletsResponse destroyPortlets(
075: DestroyPortlets destroyPortlets)
076: throws InconsistentParametersFault, MissingParametersFault,
077: InvalidRegistrationFault, OperationFailedFault,
078: RemoteException {
079: incrementCallCount();
080: return null;
081: }
082:
083: public PortletContext setPortletProperties(
084: SetPortletProperties setPortletProperties)
085: throws OperationFailedFault, InvalidHandleFault,
086: MissingParametersFault, InconsistentParametersFault,
087: InvalidUserCategoryFault, AccessDeniedFault,
088: InvalidRegistrationFault, RemoteException {
089: incrementCallCount();
090: return null;
091: }
092:
093: public PropertyList getPortletProperties(
094: GetPortletProperties getPortletProperties)
095: throws InvalidHandleFault, MissingParametersFault,
096: InvalidRegistrationFault, AccessDeniedFault,
097: OperationFailedFault, InconsistentParametersFault,
098: InvalidUserCategoryFault, RemoteException {
099: incrementCallCount();
100: return null;
101: }
102:
103: public PortletPropertyDescriptionResponse getPortletPropertyDescription(
104: GetPortletPropertyDescription getPortletPropertyDescription)
105: throws MissingParametersFault, InconsistentParametersFault,
106: InvalidUserCategoryFault, InvalidRegistrationFault,
107: AccessDeniedFault, InvalidHandleFault,
108: OperationFailedFault, RemoteException {
109: incrementCallCount();
110: return WSRPTypeFactory
111: .createPortletPropertyDescriptionResponse(null);
112: }
113: }
|