T
- - type of itemId.
This is the TypeHandler interface that allows deploy/undeploy storage handling.public interface TypeHandler<T>
Modifier and Type | Method and Description |
---|---|
void |
deploy(T itemURI,
Object item,
File file,
Function<File,byte[]> contentReader,
BiConsumer<File,byte[]> contentWriter)
The deploy-method is called by the DeploymentHandler for the deployment
of an item, for instance a Page or a Component.
|
void |
undeploy(int publicationId,
T itemURI)
The deploy-method is called by the DeploymentHandler for the deployment
of an item, for instance a Page or a Component.
|
void |
undeploy(T itemURI)
The deploy-method is called by the DeploymentHandler for the deployment
of an item, for instance a Page or a Component.
|
void deploy(T itemURI, Object item, File file, Function<File,byte[]> contentReader, BiConsumer<File,byte[]> contentWriter) throws StorageException
itemURI
- The TCDURI indicating the item to be deployed.item
- The object that needs to be deployed.file
- The file that holds the content to be deployed.contentReader
- returns file content by filename.contentWriter
- writes content to a file.StorageException
void undeploy(T itemURI) throws StorageException
itemURI
- The TCDURI indicating the item to be deployed.StorageException
void undeploy(int publicationId, T itemURI) throws StorageException
publicationId
- publication IditemURI
- The TCDURI indicating the item to be deployed.StorageException
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries