public class DeploymentHandler extends Object
Modifier and Type | Method and Description |
---|---|
static void |
deploy(TCDURI itemURI,
Object item,
File file,
Function<File,byte[]> contentReader,
BiConsumer<File,byte[]> contentWriter)
Deploys an item represented by a
TCDURI and also updates any references. |
static void |
deploy(TCDURI itemURI,
Object item,
File file,
Set<TCDURI> references,
Function<File,byte[]> contentReader,
BiConsumer<File,byte[]> contentWriter)
Deploys an item represented by a
TCDURI and also updates any references. |
static void |
deploy(TCDURI itemURI,
Object item,
Function<File,byte[]> contentReader,
BiConsumer<File,byte[]> contentWriter)
Deploys an item represented by a
TCDURI and also updates any references. |
static void |
deploy(TCDURI itemURI,
Object item,
Set<TCDURI> references,
Function<File,byte[]> contentReader,
BiConsumer<File,byte[]> contentWriter)
Deploys an item represented by a
TCDURI and also updates any references. |
static void |
deployExternalSchema(String externalId,
com.tridion.transport.transportpackage.SchemaKey item,
Set<TCDURI> references,
File file,
Function<File,byte[]> contentReader,
BiConsumer<File,byte[]> contentWriter)
Deploys an item represented by a
TCDURI and also updates any references. |
static void |
undeploy(TCDURI itemURI)
Undeploys an item represented by a
TCDURI and also removes any references. |
static void |
undeployExternal(int publicationId,
Long itemType,
String sourceId)
Undeploys an item represented by a
TCDURI and also removes any references. |
public static void deploy(TCDURI itemURI, Object item, Function<File,byte[]> contentReader, BiConsumer<File,byte[]> contentWriter) throws StorageException
TCDURI
and also updates any references.itemURI
- The TCDURI
of the item to deploy.item
- The item to deploy.StorageException
- If something goes wrong deploying the item.public static void deploy(TCDURI itemURI, Object item, File file, Function<File,byte[]> contentReader, BiConsumer<File,byte[]> contentWriter) throws StorageException
TCDURI
and also updates any references.itemURI
- The TCDURI
of the item to deploy.item
- The item to deploy.file
- The file that holds the content to be deployed.StorageException
- If something goes wrong deploying the item.public static void deployExternalSchema(String externalId, com.tridion.transport.transportpackage.SchemaKey item, Set<TCDURI> references, File file, Function<File,byte[]> contentReader, BiConsumer<File,byte[]> contentWriter) throws StorageException
TCDURI
and also updates any references.externalId
- The external Id of the item to deploy.item
- The item to deploy.references
- references to storefile
- The file that holds the content to be deployed.StorageException
- If something goes wrong deploying the item.public static void deploy(TCDURI itemURI, Object item, Set<TCDURI> references, Function<File,byte[]> contentReader, BiConsumer<File,byte[]> contentWriter) throws StorageException
TCDURI
and also updates any references.itemURI
- The TCDURI
of the item to deploy.item
- The item to deploy.references
- Hashset
of item TCDURI
's that the item being deployed refers to.StorageException
- If something goes wrong deploying the item or replacing its references.public static void deploy(TCDURI itemURI, Object item, File file, Set<TCDURI> references, Function<File,byte[]> contentReader, BiConsumer<File,byte[]> contentWriter) throws StorageException
TCDURI
and also updates any references.itemURI
- The TCDURI
of the item to deploy.item
- The item to deploy.file
- The file that holds the content to be deployed.references
- Hashset
of item TCDURI
's that the item being deployed refers to.StorageException
- If something goes wrong deploying the item or replacing its references.public static void undeploy(TCDURI itemURI) throws StorageException
TCDURI
and also removes any references.itemURI
- The TCDURI
of the item to undeploy.StorageException
- If something goes wrong undeploying the item or removing its references.public static void undeployExternal(int publicationId, Long itemType, String sourceId) throws StorageException
TCDURI
and also removes any references.publicationId
- publication idsourceId
- The TCDURI
of the item to undeploy.StorageException
- If something goes wrong undeploying the item or removing its references.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries