Package com.tridion.deployer
Interface TypeHandler<T>
- Type Parameters:
T- - type of itemId. This is the TypeHandler interface that allows deploy/undeploy storage handling.
public interface TypeHandler<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeploy(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.voidThe deploy-method is called by the DeploymentHandler for the deployment of an item, for instance a Page or a Component.voidThe deploy-method is called by the DeploymentHandler for the deployment of an item, for instance a Page or a Component.
-
Method Details
-
deploy
void deploy(T itemURI, Object item, File file, Function<File, byte[]> contentReader, BiConsumer<File, throws com.tridion.broker.StorageExceptionbyte[]> contentWriter) The deploy-method is called by the DeploymentHandler for the deployment of an item, for instance a Page or a Component.- Parameters:
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.- Throws:
com.tridion.broker.StorageException
-
undeploy
The deploy-method is called by the DeploymentHandler for the deployment of an item, for instance a Page or a Component.- Parameters:
itemURI- The TCDURI indicating the item to be deployed.- Throws:
com.tridion.broker.StorageException
-
undeploy
The deploy-method is called by the DeploymentHandler for the deployment of an item, for instance a Page or a Component.- Parameters:
publicationId- publication IditemURI- The TCDURI indicating the item to be deployed.- Throws:
com.tridion.broker.StorageException
-