Sets the portlet ID associated with this content item.
InvalidOperationException
will be thrown if this method is called on an item that has not been checked out. The content item can only be associated with one portlet ID at a time. If this method is called several times on the same item, the last call will override the previous calls. The portlet ID must refer to a valid portlet otherwise a ContentException
will be thrown when IContentItemManager.CheckInItem
is called on the item. A portlet can only be associated with one content item or Presentation Template at a time. If the portlet ID is already associated with another content item or Presentation Template, an InvalidOperationException
will be thrown when IContentItemManager.CheckInItem
is called on the item. 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 IContentItemManager.CheckInItem
is called. Exception Type | Condition |
---|---|
InvalidOperationException | The item is not checked out or has been deleted. |
ArgumentException | The portlet ID less than or equal to 0. |
IContentItem Interface | Plumtree.Remote.PRC.Content.Item Namespace | Searchable | AddAssociatedPortletID