Plumtree EDK (Enterprise Web Development Kit) 5.4.0

IPortletManager.CreatePortletInstance Method 

Returns an IPortlet object that represents a new Portlet instance in the portal.

IPortlet CreatePortletInstance(
   int parentFolderID,
   int templateID
);

Parameters

parentFolderID
the folder in which to create the new Portlet instance
templateID
the template with which to create this Portlet instance

Return Value

an object representing the new Portlet instance; the client must call IPortlet.Save() to save the Portlet instance in the portal.

Remarks

Note: This Portlet will not be created in the portal until the IPortlet.Save() method is called.

Exceptions

Exception Type Condition
NoSuchObjectException if there is no object with the specified ID
HttpException if the query interface URL is not valid
PortalException if the operation resulted in an error on the portal

See Also

IPortletManager Interface | Plumtree.Remote.PRC Namespace