AquaLogic Interaction Development Kit (IDK) 6.0.0

IPresentationTemplate.SetAssociatedPortletID Method 

Sets the portlet ID associated with this Presentation Template.

void SetAssociatedPortletID(
   int portletID
);

Parameters

portletID
The portlet ID to associate with the template.

Remarks

Note: The recommended way to associate a portlet with a Presentation Template is through the portlet administration settings in the portal.

The Presentation Template can only be associated with one portlet ID at a time. If this method is called several times on the same Presentation Template, the last call will override the previous calls.

The portlet ID must refer to a valid portlet otherwise a ContentException will be thrown when Store is called on the template.

A portlet can only be associated with one Presentation Template or content item at a time. If the portlet ID is already associated with another Presentation Template or content item, an InvalidOperationException will be thrown when Store is called on the template.

The ID of a portlet can be retrieved using methods in Plumtree.Remote.PRC.IPortletManager or Plumtree.Remote.PRC.IPortletTemplateManager.

The association will not be persisted until Store is called.

Exceptions

Exception TypeCondition
InvalidOperationException The template has been deleted.
ArgumentException The portlet ID less than or equal to 0.

See Also

IPresentationTemplate Interface | Plumtree.Remote.PRC.Content.PresentationTemplate Namespace | AddAssociatedPortletID