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 Type
    Method
    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.
  • Method Details

    • deploy

      void deploy(T itemURI, Object item, File file, Function<File,byte[]> contentReader, BiConsumer<File,byte[]> contentWriter) throws com.tridion.broker.StorageException
      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

      void undeploy(T itemURI) throws com.tridion.broker.StorageException
      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

      void undeploy(int publicationId, T itemURI) throws com.tridion.broker.StorageException
      The deploy-method is called by the DeploymentHandler for the deployment of an item, for instance a Page or a Component.
      Parameters:
      publicationId - publication Id
      itemURI - The TCDURI indicating the item to be deployed.
      Throws:
      com.tridion.broker.StorageException