To manipulate portlet and portlet template objects in Oracle WebCenter Interaction Administration from a remote application, use the IPortlet* interfaces in the Oracle WebCenter Interaction Development Kit (IDK).
Java
public static int createPortletTemplate(IPortletTemplateManager portletTemplateManager, int parentfolderID, int webserviceID) throws PortalException, MalformedURLException, RemoteException { IPortletTemplate portletTemplate = portletTemplateManager.createPortletTemplate(parentFolderID, webserviceID); portletTemplate.setName("IDK Test Template"); portletTemplate.setDescription("Created in IDK example"); int portletTemplateID = portletTemplate.save(); return portletTemplateID; }
.NET (C#)
public static int CreatePortletTemplate(IPortletTemplateManager portletTemplateManager, int parentfolderID, int webserviceID) { IPortletTemplate portletTemplate = portletTemplateManager.CreatePortletTemplate(parentFolderID, webserviceID); portletTemplate.SetName("IDK Test Template"); portletTemplate.SetDescription("Created in IDK example"); int portletTemplateID = portletTemplate.Save(); return portletTemplateID; }
.NET (VB)
Public Shared Function CreatePortletTemplate( _ ByVal portletTemplateManager As IPortletTemplateManager, ByVal parentfolderID As Integer, ByVal webserviceID As Integer) As Integer Dim portletTemplate As IPortletTemplate = portletTemplateManager.CreatePortletTemplate(parentfolderID,webserviceID) portletTemplate.SetName("IDK Test Template"); portletTemplate.SetDescription("Created in IDK example"); Dim portletTemplateID As Integer = portletTemplateID = portletTemplate.Save() Return portletTemplateID End Function