Skip to content

Instantly share code, notes, and snippets.

public class TcmUri
{
public int ItemId { get; set; }
public int PublicationId { get; set; }
public int ItemTypeId { get; set; }
public int Version { get; set; }
[DebuggerStepThrough]
public TcmUri(string Uri)
{
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" method="xml" cdata-section-elements="script"></xsl:output>
<xsl:template match="/ | node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"></xsl:apply-templates>
</xsl:copy>
</xsl:template>
<xsl:template match="*[ (self::br or self::p or self::div) and normalize-space(translate(., &apos; &apos;, &apos;&apos;)) = &apos;&apos; and not(@*) and not(processing-instruction()) and not(comment()) and not(*[not(self::br) or @* or * or node()]) and not(following::node()[not( (self::text() or self::br or self::p or self::div) and normalize-space(translate(., &apos; &apos;, &apos;&apos;)) = &apos;&apos; and not(@*) and not(processing-instruction()) and not(comment()) and not(*[not(self::br) or @* or * or node()]) )]) ]">
<!-- igno
@quirijnslings
quirijnslings / install-maven.bat
Last active October 5, 2022 16:30
install-maven-custom-deployer-tridion9.bat
call mvn install:install-file -Dfile=scala-java8-compat_2.12-0.8.0.jar -DgroupId=com.tridion.custom -DartifactId=scala-java8-compat_2.12 -Dversion=0.8.0 -Dpackaging=jar
call mvn install:install-file -Dfile=udp-adf-api-11.0.0-1020.jar -DgroupId=com.tridion.custom -DartifactId=udp-adf-api -Dversion=11.0.0-1020 -Dpackaging=jar
call mvn install:install-file -Dfile=udp-adf-client-11.0.0-1020.jar -DgroupId=com.tridion.custom -DartifactId=udp-adf-client -Dversion=11.0.0-1020 -Dpackaging=jar
call mvn install:install-file -Dfile=udp-adf-engine-11.0.0-1020.jar -DgroupId=com.tridion.custom -DartifactId=udp-adf-engine -Dversion=11.0.0-1020 -Dpackaging=jar
call mvn install:install-file -Dfile=udp-cache-11.0.0-1020.jar -DgroupId=com.tridion.custom -DartifactId=udp-cache -Dversion=11.0.0-1020 -Dpackaging=jar
call mvn install:install-file -Dfile=udp-core-11.0.0-1020.jar -DgroupId=com.tridion.custom -DartifactId=udp-core -Dversion=11.0.0-1020 -Dpackaging=jar
call mvn install:install-file -Dfile=udp-core-license-11.0.0-1020.ja
@quirijnslings
quirijnslings / pom.xml
Last active April 2, 2019 11:30
custom-deployer-tridion9-pom
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.acme</groupId>
<artifactId>acme-custom-deployer</artifactId>
<version>1.0-SNAPSHOT</version>
@quirijnslings
quirijnslings / pom.xml
Last active April 2, 2019 11:33
custom-deployer-sdlweb85-pom
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.acme</groupId>
<artifactId>acme-custom-deployer</artifactId>
<version>1.0-SNAPSHOT</version>
@quirijnslings
quirijnslings / install-maven.bat
Last active April 2, 2019 11:33
install-maven-custom-deployer-sdlweb85
call mvn install:install-file -Dfile=deployer-worker-queue-8.5.0-1074.jar -DgroupId=com.tridion -DartifactId=deployer-worker-queue -Dversion=8.5.0-1074 -Dpackaging=jar
call mvn install:install-file -Dfile=easylicense-2.5.jar -DgroupId=com.tridion -DartifactId=easylicense -Dversion=2.5 -Dpackaging=jar
call mvn install:install-file -Dfile=sqljdbc4-6.0.jar -DgroupId=com.tridion -DartifactId=sqljdbc4 -Dversion=6.0 -Dpackaging=jar
call mvn install:install-file -Dfile=web-ambient-api-8.5.0-1032.jar -DgroupId=com.sdl.web -DartifactId=web-ambient-api -Dversion=8.5.0-1032 -Dpackaging=jar
call mvn install:install-file -Dfile=web-ambient-client-8.5.0-1032.jar -DgroupId=com.sdl.web -DartifactId=web-ambient-client -Dversion=8.5.0-1032 -Dpackaging=jar
call mvn install:install-file -Dfile=deployer-web-extension-8.5.0-1069.jar -DgroupId=com.tridion -DartifactId=deployer-web-extension -Dversion=8.5.0-1069 -Dpackaging=jar
call mvn install:install-file -Dfile=ojdbc7-12.1.0.2.jar -DgroupId=com.tridion -DartifactId=ojdbc7 -Dversi
package com.trivident.deployer;
import java.io.File;
import java.io.IOException;
import java.util.List;
import com.tridion.cd.core.configuration.ConfigurationLoader;
import com.tridion.cd.core.configuration.ConfigurationLoaderImpl;
import com.tridion.configuration.Configuration;
import com.tridion.configuration.ConfigurationException;
@quirijnslings
quirijnslings / DefaultBinaryPathProvider
Created June 5, 2017 09:32
Example implementating of IBinaryPathProvider
using DD4T.Templates.Base.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DD4T.Templates.Base.Builder;
using Tridion.ContentManager.Templating;
using Tridion.ContentManager;
using Tridion.ContentManager.ContentManagement;
using Apache.NMS;
using DD4T.ContentModel.Contracts.Caching;
using DD4T.ContentModel.Contracts.Logging;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;