Plumtree EDK (Enterprise Web Development Kit) 5.4.0

IPublishablePresentationTemplateManager.PublishPresentationTemplate Method 

Publishes the IPresentationTemplate and copies it to a publishing target set in Content Server.

void PublishPresentationTemplate(
   IPresentationTemplate presentationTemplate
);

Parameters

presentationTemplate
The Presentation Template to be published; cannot be null.

Remarks

This method should be called prior to retrieving the publish URL via IPresentationTemplate.PublishURL property, otherwise an InvalidOperationException will be thrown. An InvalidOperationException will also be thrown if the IPresentationTemplate has an associated IDataEntryTemplate. IPresentationTemplate.GetAttachedDataEntryTemplate can be used to check this.

Refer to the Administrator Guide for Content Server for more details about publishing.

For an example of using PublishPresentationTemplate, refer to IPublishablePresentationTemplateManager

Exceptions

Exception Type Condition
ContentSecurityException The user does not have permission to publish the item.
InvalidOperationException The Presentation Template has an associated IDataEntryTemplate.
ContentException The method call resulted in a Content Server exception. This includes situations where the attached IPresentationTemplate contains invalid template text.
SoapException There was a communication problem during the execution of the remote method call.

See Also

IPublishablePresentationTemplateManager Interface | Plumtree.Remote.PRC.Content.PresentationTemplate Namespace