SaaS CMS has officially launched! Learn more now.

Class PropertyContentReferenceTransform

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Transfer the PropertyContentReference property for the transfer functionality.

Inheritance
System.Object
PropertyContentReferenceTransform
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core.Transfer.Internal
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
[ServiceConfiguration(IncludeServiceAccessor = false)]
public class PropertyContentReferenceTransform

Constructors

PropertyContentReferenceTransform(IPermanentLinkMapper, IContentRepository, ServiceAccessor<IDependentContentTransfer>)

Declaration
public PropertyContentReferenceTransform(IPermanentLinkMapper permanentLinkMapper, IContentRepository contentRepository, ServiceAccessor<IDependentContentTransfer> dependentContentTransferAccessor)
Parameters
Type Name Description
IPermanentLinkMapper permanentLinkMapper
IContentRepository contentRepository
ServiceAccessor<IDependentContentTransfer> dependentContentTransferAccessor

Methods

ExportEventHandler(Object, TransformPropertyEventArgs)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Transform a PropertyContentReference property to an exportable format by changing the value of the PropertySource in the event args. If the result is handled by this method and should not be handled by the default handeling the event args property IsHandled has to be set.

Declaration
public void ExportEventHandler(object sender, TransformPropertyEventArgs e)
Parameters
Type Name Description
System.Object sender

The sender has to inherit from a page transfer EPiServer.Core.Transfer.IPageTransfer object.

TransformPropertyEventArgs e

The TransformPropertyEventArgs instance containing the event data.

HandleUnmappedProperties(ICollection<Guid>, IContentRepository)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Will check if there are any stored properties of type PropertyContentReference that has LinkGuid filed set but not PageLink field. For those that has that and LinkGuid matches a page in importedPages the property is resaved to update PageLink.

Declaration
public static void HandleUnmappedProperties(ICollection<Guid> importedPages, IContentRepository contentRepository)
Parameters
Type Name Description
System.Collections.Generic.ICollection<System.Guid> importedPages

The imported pages.

IContentRepository contentRepository

The IContentRepository to use

ImportEventHandler(Object, TransformPropertyEventArgs)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Transform a PropertyPageReference property from a import format to a concrete property. This is done by take the PropertySource from the event args and stores the transformed result in the PropertyDestination property that is used to create the page. If the result is handled by this method and should not be handled by the default handeling the event args property IsHandled has to be set.

Declaration
public void ImportEventHandler(object sender, TransformPropertyEventArgs e)
Parameters
Type Name Description
System.Object sender

The page transfer EPiServer.Core.Transfer.IPageTransfer object.

TransformPropertyEventArgs e

The TransformPropertyEventArgs instance containing the data to be transformed.

Extension Methods