Plumtree EDK (Enterprise Web Development Kit) 5.4.0

IContentItemManager.CheckInItem Method 

Checks-in and stores a content item.

void CheckInItem(
   IContentItem contentItem,
   string checkInComment
);

Parameters

contentItem
The content item to check-in; cannot be null.
checkInComment
A string containing a comment that will be inserted into the content item history as a check-in comment of the new version; cannot be null.

Remarks

When an item is checked-in a new version of the item will be saved, the version number will be incremented and the version check-in comments will be updated.

This method is used to store a newly-created content item or to persist property value and name changes. A content item must be checked-out before updating the name or property values.

Exceptions

Exception TypeCondition
ContentSecurityException The user does not have permission to check-in the content item.
NameAlreadyInUseException If there is already a content item with the given name in the same folder.
ContentException The content item is associated with an invalid portlet ID, or if the method call resulted in a Content Server exception.
SoapException There was a communication problem during the execution of the remote method call.
InvalidOperationException The item has has been removed, the containing folder has been removed, the item is not checked-out, or there was an attempt to associate the item with a portlet ID that was already associated with another content item.
ArgumentException If an invalid selection list value was set for an ISelectionListProperty.

See Also

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