This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependencies> | |
<!-- This is for the JAXWS WsImport --> | |
<dependency> | |
<groupId>com.sun.xml.ws</groupId> | |
<artifactId>jaxws-rt</artifactId> | |
<version>2.2.8</version> | |
</dependency> | |
</dependencies> | |
<build> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void doWorkflow(List<IdentifiableObjectData> updatedComponents) throws Exception { | |
if (updatedComponents.isEmpty()) | |
return; | |
try { | |
// Build the array of components | |
ArrayOfstring arrayOfComponents = new ArrayOfstring(); | |
for (final IdentifiableObjectData component : updatedComponents) { | |
arrayOfComponents.getString().add(component.getId().getValue()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<appSettings> | |
<!-- Properties used by the Core Service --> | |
<add key="HostName" value="hostname-to-the-sdlweb-cme-server.com" /> | |
<add key="ImpersonationUserDomain" value="the-domain"/> | |
<add key="ImpersonationUserName" value="the-username" /> | |
<add key="ImpersonationUserPassword" value="********" /> | |
<add key="ClientSettingsProvider.ServiceUri" value="" /> | |
<!-- Properties used by the Media Manager integration --> | |
<add key="IssuerName" value="http://localhost:89/IWSTrust13" /> | |
<add key="MediaManagerWebServiceAddress" value="https://customerdomain.sdlmedia.com/WebServices/MediaManager2011.svc" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static Dictionary<string, string> DownloadFromTridion(StreamDownloadClient streamDownloadClient, ComponentData multimediaComponent) | |
{ | |
Dictionary<string, string> downloadInfo = null; | |
// Prepare file for download in local file system | |
string originalFileName = Path.GetFileName(multimediaComponent.BinaryContent.Filename); | |
string downloadFile = Options.MigrationSupportDirectory + originalFileName; | |
FileStream fs = File.Create(downloadFile); | |
try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static Dictionary<string, object> UploadToMediaManager(IMediaManager2011 mediaManagerClient, | |
Dictionary<string, string> downloadInfo, long mediaManagerFolderId, long assetTypeId, | |
long outletId, long[] tags) | |
{ | |
// Upload to Media Manager | |
UploadInfoData uploadInfoData = new UploadInfoData | |
{ | |
Author = "Migration Upload Tool", | |
MakeAvailableForWebPublishing = true, | |
ProgramCreation = ProgramCreationOptions.OneProgramPerItem, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<netTcpBinding> | |
<binding name="EclNetTcpBinding" maxReceivedMessageSize="2147483647" receiveTimeout="00:10:00" sendTimeout="00:10:00"> | |
<readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647" /> | |
</binding> | |
</netTcpBinding> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<client> | |
<endpoint name="EclBinaryEndpoint" | |
address="net.tcp://localhost:2660/ExternalContentLibrary/2012/netTcp" | |
binding="netTcpBinding" | |
bindingConfiguration="EclNetTcpBinding" | |
contract="Tridion.ExternalContentLibrary.Service.Client.ISessionAwareEclService"/> | |
</client> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void UpdateWhereUsingComponents(ICoreService coreServiceClient, SessionAwareEclServiceClient eclClient, ComponentData componentData, Dictionary<string, object> uploadInfo) | |
{ | |
Dictionary<string, string> stubInfo = null; | |
try | |
{ | |
stubInfo = eclClient.CreateOrGetStubUris(new List<string> { "ecl:5-mm-" + uploadInfo["distributionId"] + "-dist-file" }); | |
} | |
catch(Exception exception) | |
{ | |
log.Error("Error generating stub for image " + componentData.Id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Migration.MediaManager; | |
using System.ServiceModel; | |
using System.IdentityModel.Tokens; | |
using System.Configuration; | |
using System.ServiceModel.Security; | |
using System.IdentityModel.Protocols.WSTrust; | |
namespace Migration.Helpers | |
{ | |
public class MediaManagerHelper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<appSettings> | |
<add key="IssuerName" value="http://localhost:89/IWSTrust13" /> | |
<add key="MediaManagerWebServiceAddress" value="https://TENANTNAME.sdlmedia.com/WebServices/MediaManager2011.svc" /> | |
<add key="ClientSettingsProvider.ServiceUri" value="" /> | |
</appSettings> | |
<system.serviceModel> | |
<bindings> | |
<ws2007FederationHttpBinding> |
OlderNewer