LongTextExportRequest
using kCura.WinEDDS.Exporters;
using Relativity.Transfer;
using Relativity.Transfer.Http;
using System;
namespace Relativity.DataExchange.Export.VolumeManagerV2.Download
{
public class LongTextExportRequest : ExportRequest
{
public bool FullText { get; set; }
public int FieldArtifactId { get; set; }
private LongTextExportRequest(ObjectExportInfo artifact, string destinationLocation)
: base(artifact.ArtifactID, Guid.NewGuid().ToString(), destinationLocation)
{
}
public static LongTextExportRequest CreateRequestForFullText(ObjectExportInfo artifact, int fieldArtifactId, string destinationLocation)
{
return new LongTextExportRequest(artifact, destinationLocation) {
FullText = true,
FieldArtifactId = fieldArtifactId
};
}
public static LongTextExportRequest CreateRequestForLongText(ObjectExportInfo artifact, int fieldArtifactId, string destinationLocation)
{
return new LongTextExportRequest(artifact, destinationLocation) {
FullText = false,
FieldArtifactId = fieldArtifactId
};
}
protected override TransferPath CreateTransferPath()
{
HttpTransferPathData val = new HttpTransferPathData();
val.set_ArtifactId(base.ArtifactId);
val.set_ExportType((!FullText) ? 1 : 0);
val.set_LongTextFieldArtifactId(FieldArtifactId);
HttpTransferPathData data = val;
return ExportRequest.CreateTransferPath(base.ArtifactId, base.Order, Guid.NewGuid().ToString(), base.DestinationLocation, data);
}
}
}