Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IContentItemManager Interface

`IContentItemManager` is an interface for managing `IContentItem` instances. It handles content item creation, removal, retrieval, check-in, check-out, and publishing.

To retrieve or update property values of an existing content item call `CheckOutItem` to check-out the item then `IContentItem.Get/SetPropertyValue` to modify the property values. When you are finished use `IContentItemManager.CheckInItem` to check-in the item and persist the changes.

For information about the conditions that make a content item searchable in the Search Server, refer to IPresentationTemplate.`Searchable`.

Refer to the Administrator Guide for Content Server for additional details on Content Item functionality.

The following example demonstrates creating and publishing a content item.

    // Create a property to use in the content item
    ITextLineProperty textLineProperty = propertyManager.CreateTextLineProperty("TextLineProperty", "A line of text.");
    String templateText = "TextLineProperty=<pcs:value expr=\"TextLineProperty\">unset</pcs:value>\n";
    IPresentationTemplate presentationTemplate = presentationTemplateManager.CreatePresentationTemplate(containingFolder, "PresentationTemplate", templateText);
    presentationTemplate.Store();

    // Create Presentation Template text that uses the property
    IDataEntryTemplate dataEntryTemplate = dataEntryTemplateManager.CreateDataEntryTemplate(containingFolder, "DataEntryTemplate");
    dataEntryTemplate.AddProperty(textLineProperty);
    dataEntryTemplate.AttachPresentationTemplate(presentationTemplate);
    dataEntryTemplate.Store();

    // Create a content item and set a value for the property
    IContentItem contentItem = contentItemManager.CreateContentItem(containingFolder, "ContentItem", dataEntryTemplate);
    contentItem.SetTextLinePropertyValue(textLineProperty, "This is the string value that will appear in the published content item.");
    contentItemManager.CheckInItem(contentItem, "Initial checkin.");

    // Publish the content item
    contentItemManager.PublishContentItem(contentItem);
    // Use contentItem.PublishURL to access the published item

For a list of all members of this type, see IContentItemManager Members.

public interface IContentItemManager

#### Requirements

Namespace: Plumtree.Remote.PRC.Content.Item

Assembly: edk (in edk.dll)

#### See Also

IContentItemManager Members | Plumtree.Remote.PRC.Content.Item Namespace