This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IContentConversion>() and is defined in Telligent.Evolution.Platform.dll
Events
Events.AfterConvert
Handler
void ContentAfterConvertEventHandler(ContentAfterConvertEventArgs e);
Events.AfterReassign
Handler
void ContentAfterReassignEventHandler(ContentAfterReassignEventArgs e);
Events.BeforeConvert
Handler
void ContentBeforeConvertEventHandler(ContentBeforeConvertEventArgs e);
Events.BeforeReassign
Handler
void ContentBeforeReassignEventHandler(ContentBeforeReassignEventArgs e);
Methods
Content Convert(Guid sourceContentTypeId, Guid sourceContentId, Guid targetContentTypeId, Guid targetApplicationId, IDictionary options);
Attempts to convert content across content types. Requires a matching IContentConverter plugin to be enabled. The override that takes targetAppicationTypeId should be used whenever possible.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| sourceContentTypeId | Guid | Source Content Type Id | Required | ||
| sourceContentId | Guid | Source Content Id | Required | ||
| targetContentTypeId | Guid | Target Content Type Id | Required | ||
| targetApplicationId | Guid | Target Application Id | Required | ||
| options | IDictionary | Extra optional arguments | Required |
Return Type
Content Convert(Guid sourceContentTypeId, Guid sourceContentId, Guid targetContentTypeId, Guid targetApplicationId, Guid targetApplicationTypeId, IDictionary options);
Attempts to convert content across content types. Requires a matching IContentConverter plugin to be enabled.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| sourceContentTypeId | Guid | Source Content Type Id | Required | ||
| sourceContentId | Guid | Source Content Id | Required | ||
| targetContentTypeId | Guid | Target Content Type Id | Required | ||
| targetApplicationId | Guid | Target Application Id | Required | ||
| targetApplicationTypeId | Guid | Target Application Type Id | Required | ||
| options | IDictionary | Extra optional arguments | Required |
Return Type
PropertyGroup[] GetConversionOptions(Guid sourceContentTypeId, Guid sourceContentId, Guid targetContentTypeId, Guid targetApplicationId, Guid targetApplicationTypeId);
Gets conversion configuration metadata
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| sourceContentTypeId | Guid | Source Content Type Id | Required | ||
| sourceContentId | Guid | Source Content Id | Required | ||
| targetContentTypeId | Guid | Target Content Type Id | Required | ||
| targetApplicationId | Guid | Target Application Id | Required | ||
| targetApplicationTypeId | Guid | Target Application Type Id | Required |
Return Type
ApiList<Application> ListTargetApplications(Guid sourceContentTypeId, Guid sourceContentId, Guid targetContentTypeId, Guid containerId);
Lists applications that converted content can be created in
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| sourceContentTypeId | Guid | Source Content Type Id | Required | ||
| sourceContentId | Guid | Source Content Id | Required | ||
| targetContentTypeId | Guid | Target Content Type Id | Required | ||
| containerId | Guid | Container Id | Required |
Return Type
ApiList<Application> ListTargetApplications(Guid sourceContentTypeId, Guid sourceContentId, Guid targetContentTypeId, Guid containerId, string query);
Lists applications that converted content can be created in
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| sourceContentTypeId | Guid | Source Content Type Id | Required | ||
| sourceContentId | Guid | Source Content Id | Required | ||
| targetContentTypeId | Guid | Target Content Type Id | Required | ||
| containerId | Guid | Container Id | Required | ||
| query | string | Search query | Required |
Return Type
ApiList<ContentType> ListTargetContentTypes(Guid sourceContentTypeId, Guid sourceContentId);
Lists content types that source content can be converted to
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| sourceContentTypeId | Guid | Source Content Type Id | Required | ||
| sourceContentId | Guid | Source Content Id | Required |
Return Type
AdditionalInfo Reassign(Guid sourceContentId, Guid sourceContentTypeId, Guid targetContentId, Guid targetContentTypeId);
Reassigns content service data from source content to target content
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| sourceContentId | Guid | Source Content Id | Required | ||
| sourceContentTypeId | Guid | Source Content Type Id | Required | ||
| targetContentId | Guid | Target Content Id | Required | ||
| targetContentTypeId | Guid | Target Content Type Id | Required |