Package com.ptc.windchill.esi.utl
Class ESIBlobUtility
java.lang.Object
com.ptc.windchill.esi.utl.ESIBlobUtility
Convenience class for ESI Blob API's.
Supported API: true
Extendable: false
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanwriteTextToAzureBlob(String blobNameExcludingContainerName, String text) Convenience wrapper forinvalid reference
ESIBlobUtility#writeTextToAzureBlob(String, String, String, Charset, boolean)static booleanwriteTextToAzureBlob(String blobNameExcludingContainerName, String text, Charset charSet, boolean overwriteIfPresent) Writes text to content of a blob on the first Azure Storage Account configured on Windchill server.
-
Method Details
-
writeTextToAzureBlob
public static boolean writeTextToAzureBlob(String blobNameExcludingContainerName, String text) throws WTException, IOException Convenience wrapper forSupported API: trueinvalid reference
ESIBlobUtility#writeTextToAzureBlob(String, String, String, Charset, boolean)- Throws:
WTExceptionIOException
-
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:- Command
windchill com.ptc.windchill.objectstorage.azureblob.tools.BlobConfigurationToolshould to be run - Property esi.azure.storage.container needs to point to a pre-created container under the same storage account
- 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 contentcharSet- defaults to UTF-8overwriteIfPresent- 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:
WTExceptionIOException
- Command
-