[jboss-cvs] jboss-portal/core/src/main/org/jboss/portal/core/model/instance ...
Julien Viet
julien at jboss.com
Sun Jul 30 11:49:45 EDT 2006
User: julien
Date: 06/07/30 11:49:45
Modified: core/src/main/org/jboss/portal/core/model/instance
InstanceContainer.java
Log:
- test case for instance that destroys the instance and all the CCP for the users
Revision Changes Path
1.14 +15 -2 jboss-portal/core/src/main/org/jboss/portal/core/model/instance/InstanceContainer.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: InstanceContainer.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/core/src/main/org/jboss/portal/core/model/instance/InstanceContainer.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- InstanceContainer.java 26 May 2006 14:12:53 -0000 1.13
+++ InstanceContainer.java 30 Jul 2006 15:49:45 -0000 1.14
@@ -31,7 +31,7 @@
* A container for instances of component.
*
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.13 $
+ * @version $Revision: 1.14 $
*/
public interface InstanceContainer
{
@@ -52,9 +52,10 @@
Instance getInstance(String id) throws IllegalArgumentException;
/**
- * Create a new instance of the specified portlet
+ * Create a new instance of the specified portlet.
*
* @param id
+ * @param portletId the portlet id
* @return the newly created instance
* @throws DuplicateInstanceException if the instance already exist
* @throws IllegalArgumentException if the instance id is null
@@ -62,6 +63,18 @@
Instance createInstance(String id, String portletId) throws DuplicateInstanceException, IllegalArgumentException, PortletInvokerException;
/**
+ * Create a new instance of the specified portlet.
+ *
+ * @param id
+ * @param portletId the portlet id
+ * @param clone force a clone of the portlet
+ * @return the newly created instance
+ * @throws DuplicateInstanceException if the instance already exist
+ * @throws IllegalArgumentException if the instance id is null
+ */
+ Instance createInstance(String id, String portletId, boolean clone) throws DuplicateInstanceException, IllegalArgumentException, PortletInvokerException;
+
+ /**
* Destroy the specified instance.
*
* @param id
More information about the jboss-cvs-commits
mailing list