[jboss-cvs] jboss-portal/portlet/src/main/org/jboss/portal/portlet ...

Julien Viet julien at jboss.com
Thu Aug 24 09:21:37 EDT 2006


  User: julien  
  Date: 06/08/24 09:21:37

  Modified:    portlet/src/main/org/jboss/portal/portlet 
                        PortletInvoker.java
  Log:
  updated the implementation of destroyClone to now destroy a list of ids and return the list of non destroyed ids. updated the InstanceContainer accordingly
  
  Revision  Changes    Path
  1.20      +13 -2     jboss-portal/portlet/src/main/org/jboss/portal/portlet/PortletInvoker.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PortletInvoker.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-portal/portlet/src/main/org/jboss/portal/portlet/PortletInvoker.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -b -r1.19 -r1.20
  --- PortletInvoker.java	23 Aug 2006 12:55:01 -0000	1.19
  +++ PortletInvoker.java	24 Aug 2006 13:21:37 -0000	1.20
  @@ -26,13 +26,14 @@
   import org.jboss.portal.portlet.invocation.PortletInvocation;
   
   import java.util.Set;
  +import java.util.List;
   
   /**
    * The <code>PortletInvoker</code> is an abstraction for a set of portlets. It defines a context for performing
    * operations are possible on a particular portlet among the set.
    *
    * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
  - * @version $Revision: 1.19 $
  + * @version $Revision: 1.20 $
    */
   public interface PortletInvoker
   {
  @@ -76,7 +77,17 @@
       * @throws IllegalArgumentException if the portletId is null
       * @throws UnsupportedOperationException if the invoker does not support this operation
       */
  -   void destroyClone(String portletId) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException;
  +   // void destroyClone(String portletId) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException;
  +
  +   /**
  +    * Destroy a cloned portlet.
  +    *
  +    * @param portletIds a list of portlet ids to destroy
  +    * @return a list of portlet ids that were not destroyed during the operation
  +    * @throws IllegalArgumentException if the portletId is null
  +    * @throws UnsupportedOperationException if the invoker does not support this operation
  +    */
  +   List destroyClones(List portletIds) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException;
   
      /**
       * Return a subset of the properties of the specified portlet.
  
  
  



More information about the jboss-cvs-commits mailing list