|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A container for instances of component.
| Method Summary | |
void |
addListener(InstanceContainerListener listener)
|
InstanceDefinition |
createInstance(java.lang.String id,
java.lang.String portletId)
Create a new instance of the specified portlet. |
InstanceDefinition |
createInstance(java.lang.String id,
java.lang.String portletId,
boolean clone)
Create a new instance of the specified portlet. |
void |
destroyInstance(java.lang.String id)
Destroy the specified instance. |
AuthorizationDomain |
getAuthorizationDomain()
Return the AuthorizationDomain |
InstanceDefinition |
getInstance(java.lang.String id)
Return the specified instance from its id or null if it does not exist. |
java.util.Collection |
getInstances()
Return all the instances in the container. |
PortletInvoker |
getPortletInvoker()
Return the underlying portlet invoker for the instance container. |
void |
removeListener(InstanceContainerListener listener)
|
| Method Detail |
public PortletInvoker getPortletInvoker()
public InstanceDefinition getInstance(java.lang.String id) throws java.lang.IllegalArgumentException
id - the instance id
java.lang.IllegalArgumentException - if the instance id is nullpublic InstanceDefinition createInstance(java.lang.String id, java.lang.String portletId) throws DuplicateInstanceException, java.lang.IllegalArgumentException, PortletInvokerException
id - portletId - the portlet id
DuplicateInstanceException - if the instance already exist
java.lang.IllegalArgumentException - if the instance id is null
PortletInvokerExceptionpublic InstanceDefinition createInstance(java.lang.String id, java.lang.String portletId, boolean clone) throws DuplicateInstanceException, java.lang.IllegalArgumentException, PortletInvokerException
id - portletId - the portlet idclone - force a clone of the portlet
DuplicateInstanceException - if the instance already exist
java.lang.IllegalArgumentException - if the instance id is null
PortletInvokerException
public void destroyInstance(java.lang.String id)
throws NoSuchInstanceException,
PortletInvokerException,
java.lang.IllegalArgumentException
id -
java.lang.IllegalArgumentException - if the instance id is null
NoSuchInstanceException
PortletInvokerExceptionpublic java.util.Collection getInstances()
public AuthorizationDomain getAuthorizationDomain()
public void addListener(InstanceContainerListener listener)
public void removeListener(InstanceContainerListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||