Class ESIBlobUtility

java.lang.Object
com.ptc.windchill.esi.utl.ESIBlobUtility

public class ESIBlobUtility extends Object
Convenience class for ESI Blob API's.

Supported API: true
Extendable: false

  • Method Details

    • writeTextToAzureBlob

      public static boolean writeTextToAzureBlob(String blobNameExcludingContainerName, String text) throws WTException, IOException
      Convenience wrapper for
      invalid reference
      ESIBlobUtility#writeTextToAzureBlob(String, String, String, Charset, boolean)

      Supported API: true

      Throws:
      WTException
      IOException
    • writeTextToAzureBlob

      public static boolean writeTextToAzureBlob(String blobNameExcludingContainerName, String text, Charset charSet, boolean overwriteIfPresent) throws WTException, IOException
      Writes text to content of a blob on the first Azure Storage Account configured on Windchill server.

      Pre-requisites to use this API:

      1. Command windchill com.ptc.windchill.objectstorage.azureblob.tools.BlobConfigurationTool should to be run
      2. Property esi.azure.storage.container needs to point to a pre-created container under the same storage account
      3. Restart Windchill after the storage account and key has been provided
      Parameters:
      blobNameExcludingContainerName - blobName (can contain "/") ending with file name (e.g. /parent-folder-under-container/child-folder/filename.extension)
      text - the text to write as blob content
      charSet - defaults to UTF-8
      overwriteIfPresent - set this to true if the blob content needs to be overwritten
      Returns:
      true if number of bytes written exceeds zero, false otherwise

      Supported API: true

      Throws:
      WTException
      IOException