[jboss-cvs] jboss-portal/core/src/main/org/jboss/portal/core/impl/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/impl/model/instance
PersistentInstanceContainer.java
Log:
- test case for instance that destroys the instance and all the CCP for the users
Revision Changes Path
1.49 +8 -3 jboss-portal/core/src/main/org/jboss/portal/core/impl/model/instance/PersistentInstanceContainer.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PersistentInstanceContainer.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/core/src/main/org/jboss/portal/core/impl/model/instance/PersistentInstanceContainer.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -b -r1.48 -r1.49
--- PersistentInstanceContainer.java 30 Jul 2006 12:36:21 -0000 1.48
+++ PersistentInstanceContainer.java 30 Jul 2006 15:49:45 -0000 1.49
@@ -61,7 +61,7 @@
*
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
* @author Anil.Saldhana at jboss.org
- * @version $Revision: 1.48 $
+ * @version $Revision: 1.49 $
*/
public class PersistentInstanceContainer extends AbstractJBossService
implements InstanceContainer, AuthorizationDomain, DomainConfigurator,
@@ -182,7 +182,12 @@
return lookup(session, id);
}
- public Instance createInstance(String id, String portletId) throws DuplicateInstanceException, PortletInvokerException
+ public Instance createInstance(String id, String portletId) throws DuplicateInstanceException, IllegalArgumentException, PortletInvokerException
+ {
+ return createInstance(id, portletId, cloneOnCreate);
+ }
+
+ public Instance createInstance(String id, String portletId, boolean clone) throws DuplicateInstanceException, PortletInvokerException
{
if (id == null)
{
@@ -213,7 +218,7 @@
}
// Clone the portlet if required
- if (cloneOnCreate)
+ if (clone)
{
// Clone the portlet state now and update the instance
String clonedPortletId = portletInvoker.createClone(portletId);
More information about the jboss-cvs-commits
mailing list