@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class FileRepositoryThing extends Thing implements IRepository
| Modifier and Type | Class and Description |
|---|---|
static class |
FileRepositoryThing.CompressionType |
static class |
FileRepositoryThing.FileMode |
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_MAX_FILE_SIZE |
static double |
DEFAULT_TRANSFER_BLOCK_SIZE |
static java.lang.String |
DIRECTORY_DATASHAPE |
static java.lang.String |
FILE_DATASHAPE |
static java.lang.String |
FILE_DATASHAPE_WITH_LINKS |
_logger, DATASHAPE_INCOMING_LOCAL_PROPERTY_BINDING, DEFAULT_SETTINGS_TABLE, ENTITYLIST_SHAPE, GENERIC_THING_TEMPLATE, TYPE_THINGBASIC_PROPERTIESNAME_COMPARATOR| Constructor and Description |
|---|
FileRepositoryThing() |
| Modifier and Type | Method and Description |
|---|---|
void |
AppendToBinaryFile(java.lang.String path,
byte[] data) |
void |
AppendToTextFile(java.lang.String path,
java.lang.String data)
Service Category: Files
Service Description: Append to a text file.
|
InfoTable |
BrowseDirectory(java.lang.String path)
Service Category: Transfers
Service Description: Get a list of files and/or directories on the Edge Thing.
|
InfoTable |
BrowseFileSystem(java.lang.String path)
Service Category: Files
Service Description: Browse file system for directories and files.
|
void |
CancelFileTransfer(InfoTable job) |
void |
CompleteFileTransfer(InfoTable job) |
java.lang.String |
computeChecksum(java.lang.String path)
Deprecated.
|
java.lang.String |
computeChecksum(java.lang.String path,
java.lang.String checksumAlgorithm) |
java.lang.Boolean |
CreateArchive(java.lang.String newFileName,
java.lang.String path,
java.lang.String compressionType,
java.lang.String files)
Service Category: Compression
Service Description: Create an archive/compressed file within this File Repository.
|
void |
CreateBinaryFile(java.lang.String path,
byte[] data,
java.lang.Boolean overwrite) |
java.lang.Boolean |
CreateFolder(java.lang.String path)
Service Category: Directories
Service Description: Create a folder.
|
java.lang.Boolean |
CreateFolderInParent(java.lang.String parentFolderPath,
java.lang.String folderName)
Service Category: Directories
Service Description: Create a folder in a specific location.
|
void |
CreateTextFile(java.lang.String path,
java.lang.String data,
java.lang.Boolean overwrite)
Service Category: Files
Service Description: Create a text file.
|
java.lang.Boolean |
CreateZipArchive(java.lang.String newFileName,
java.lang.String path,
java.lang.String files)
Service Category: Compression
Service Description: Create a zip file archive within this File Repository.
|
java.lang.Boolean |
DeleteFile(java.lang.String path)
Service Category: Files
Service Description: Delete a file.
|
java.lang.Boolean |
DeleteFolder(java.lang.String path)
Service Category: Directories
Service Description: Delete a folder.
|
java.lang.Boolean |
ExtractArchive(java.lang.String archiveFileName,
java.lang.String path,
java.lang.String compressionType)
Service Category: Compression
Service Description: Extract the contents of an archive within this File Repository.
|
java.lang.Boolean |
ExtractZipArchive(java.lang.String zipFileName,
java.lang.String path)
Service Category: Compression
Service Description: Extract the contents of a zip file archive within this File Repository.
|
java.lang.Boolean |
FlatExtractArchive(java.lang.String archiveFileName,
java.lang.String path,
java.lang.String compressionType)
Service Category: Services
Service Description: Extract all contents of an archive into the specified path within this File Repository.
|
InfoTable |
GetDataExportListing(java.lang.String path)
Service Category: Exports
Service Description: Lists exported data directories on the given path.
|
InfoTable |
GetDirectoryStructure()
Service Category: Directories
Service Description: Get directory structure.
|
InfoTable |
GetEntityExportListing(java.lang.String path)
Service Category: Exports
Service Description: Lists exported entity files on the given path.
|
java.lang.String |
GetFileChecksum(java.lang.String path)
Deprecated.
|
java.lang.String |
GetFileChecksum(java.lang.String path,
java.lang.String checksumAlgorithm)
Gets the checksum of a file in this repository, using the cryptographic algorithm whose name was passed into the service as an argument. |
InfoTable |
GetFileInfo(java.lang.String path)
Service Category: Files
Service Description: Get file info.
|
InfoTable |
GetFileListing(java.lang.String path,
java.lang.String nameMask)
Service Category: Files
Service Description: Get file system listing.
|
InfoTable |
GetFileListingWithLinks(java.lang.String path,
java.lang.String nameMask)
Service Category: Files
Service Description: Get file system listing with download links.
|
java.lang.Long |
getFileSize(java.lang.String path) |
java.lang.String |
getRootPath() |
InfoTable |
GetSupportedFileChecksumAlgorithms() |
InfoTable |
GetTransferInfo() |
InfoTable |
ListDirectories(java.lang.String path,
java.lang.String nameMask)
Service Category: Transfers
Service Description: Get list of directories.
|
InfoTable |
ListFiles(java.lang.String path,
java.lang.String nameMask)
Service Category: Transfers
Service Description: Get file system listing.
|
byte[] |
LoadBinary(java.lang.String path)
Service Category: Files
Service Description: Load binary content from a file.
|
byte[] |
LoadImage(java.lang.String path)
Service Category: Files
Service Description: Load image content from a file.
|
org.json.JSONObject |
LoadJSON(java.lang.String path)
Service Category: Files
Service Description: Load JSON from a file.
|
java.lang.String |
LoadText(java.lang.String path)
Service Category: Files
Service Description: Load Text from a file.
|
org.w3c.dom.Document |
LoadXML(java.lang.String path)
Service Category: Files
Service Description: Load XML from a file.
|
void |
MoveFile(java.lang.String sourcePath,
java.lang.String targetPath,
java.lang.Boolean overwrite)
Service Category: Files
Service Description: Move a file.
|
java.io.FileInputStream |
openFileForRead(java.lang.String path) |
java.io.FileOutputStream |
openFileForWrite(java.lang.String path,
FileRepositoryThing.FileMode mode) |
InfoTable |
ReadFromBinaryFile(java.lang.String path,
java.lang.Double offset,
java.lang.Integer count) |
void |
RenameFile(java.lang.String path,
java.lang.String name,
java.lang.Boolean overwrite)
Service Category: Files
Service Description: Rename a file.
|
java.lang.Boolean |
SaveBinary(java.lang.String path,
byte[] content)
Service Category: Files
Service Description: Save binary data to a file.
|
java.lang.Boolean |
SaveImage(java.lang.String path,
byte[] content)
Service Category: Files
Service Description: Save image data to a file.
|
java.lang.Boolean |
SaveJSON(java.lang.String path,
org.json.JSONObject content)
Service Category: Files
Service Description: Save JSON to a file.
|
java.lang.Boolean |
SaveText(java.lang.String path,
java.lang.String content)
Service Category: Files
Service Description: Save text to a file.
|
java.lang.Boolean |
SaveXML(java.lang.String path,
org.w3c.dom.Document content)
Service Category: Files
Service Description: Save XML to a file.
|
void |
StartFileTransfer(java.lang.String tid,
java.lang.String path,
java.lang.String mode) |
void |
WriteToBinaryFile(java.lang.String path,
java.lang.Double offset,
byte[] data) |
void |
WriteToTextFile(java.lang.String path,
java.lang.Double offset,
java.lang.String data)
Service Category: Files
Service Description: Write to a text file.
|
AcknowledgeAlert, acknowledgeAlertByProperty, acknowledgeAlertByPropertyAndName, acknowledgeAllAlerts, AcknowledgeAllAlerts, AddBooleanValueStreamEntry, AddDateTimeValueStreamEntry, AddDynamicSubscription, AddEventDefinition, AddImageValueStreamEntry, AddInfoTableValueStreamEntry, AddIntegerValueStreamEntry, AddLocationValueStreamEntry, AddLongValueStreamEntry, AddNumberValueStreamEntry, AddOrUpdateAlert, addProperty, AddPropertyDefinition, AddPropertyDefinition, AddPropertyDefinitions, AddPropertyTransformDefinition, AddServiceDefinition, AddStringValueStreamEntry, AddTags, AddThingCodeValueStreamEntry, AddVec2ValueStreamEntry, AddVec3ValueStreamEntry, AddVec4ValueStreamEntry, checkDemandRead, checkPropertyName, checkValueStream, cleanupThing, cleanupThing, DisableAlertsForProperty, DisableAllAlerts, DisableSubscription, DisableThing, dispatchBackgroundEvent, dispatchEvent, dispose, EnableAlertsForProperty, EnableAllAlerts, EnableSubscription, EnableThing, fireEvent, getAlertConfigurations, GetAlertDefinition, GetAlertDefinitions, getAlerts, getAlertsForProperty, GetAlertStatus, GetAlertStatuses, GetAlertStatusesForProperty, GetAlertSummary, GetAlertSummaryForProperty, GetAllAnomalyAlertTrainingStatistics, getAllImplementedThingShapes, getAllImplementedThingTemplates, GetAnomalyAlertTrainingStatisticsForAlert, GetAnomalyAlertTrainingStatisticsForProperty, GetAvatar, GetBooleanAlertParameter, GetBooleanPropertyValue, GetDateTimeAlertParameter, GetDateTimePropertyValue, getDependencies, getEffectiveAlertConfiguration, getEffectiveAlertDefinition, getEffectiveEventDefinition, getEffectiveIdentifier, GetEffectiveLocalPropertyBinding, getEffectiveLocalPropertyBindings, GetEffectiveLocalPropertyBindings, getEffectivePropertyDefinition, GetEffectivePropertyLogging, getEffectiveRemoteEventBindings, getEffectiveRemotePropertyBindings, getEffectiveRemoteServiceBindings, getEffectiveServiceDefinition, getEffectiveValueStreamName, getEntityType, GetHomeMashup, getIdentifier, GetIdentifier, GetImagePropertyValue, GetImplementedShapes, getImplementedThingTemplates, GetIncomingLocalPropertyBinding, GetIncomingLocalPropertyBindings, getInstanceEventDefinition, getInstanceEventDefinitions, getInstancePropertyDefinition, getInstancePropertyDefinitions, getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, getInstanceShape, getInstanceSubscriptions, GetIntegerAlertParameter, GetIntegerPropertyValue, GetLocalAlertDefinitions, GetLocallyImplementedShapes, GetLocalPropertyBinding, GetLocationAlertParameter, GetLocationPropertyValue, GetLoggedProperties, GetLongAlertParameter, GetLongPropertyValue, GetMashups, GetNamedProperties, GetNamedPropertyValues, GetNamedPropertyValuesVTQ, GetNamedPropertyValuesVTQA, GetNetworks, GetNumberAlertParameter, GetNumberPropertyValue, GetNumericLoggedProperties, getProperties, getProperty, getPropertyAckStatus, getPropertyAlertStatus, GetPropertyLogging, getPropertyQuality, GetPropertyQuality, getPropertyTime, GetPropertyTime, getPropertyType, getPropertyValue, getPropertyValue, getPropertyValues, GetPropertyValues, getPropertyValuesAsInfoTable, GetPropertyValuesAsMultiRowTable, GetPropertyValuesVTQ, GetPropertyValuesVTQA, GetPublished, GetRemoteEventBinding, GetRemotePropertyBinding, GetRemoteServiceBinding, getState, GetStringAlertParameter, GetStringPropertyValue, GetThingCodePropertyValue, GetThingRelationships, GetThingSummaryInformation, getThingTemplate, GetThingTemplate, getThingTemplateName, GetValueStream, getValueStreamName, GetVec2PropertyValue, GetVec3PropertyValue, GetVec4PropertyValue, HasAlert, hasEventDefinition, hasLocalEventDefinition, hasLocalPropertyDefinition, hasLocalServiceDefinition, hasProperty, hasPropertyDefinition, hasServiceDefinition, HavePropertiesChangedSince, implementsShape, ImplementsShape, implementsTemplate, initializeEntity, initializeProperty, initializeThing, initializeThing, isAlwaysAvailableService, isBuiltInEvent, isBuiltInProperty, IsDerivedFromTemplate, IsDynamicSubscriptionCreated, isEnabled, IsEnabled, isEventRemote, isExternallySubscribed, IsInNetwork, isLocallySubscribed, isLocalProperty, isPropertyEvent, isPropertyRemote, isPublished, isRunning, isServiceRemote, isSubscribed, preprocessSetPropertyVTQ, processAPIServiceRequest, processServiceRequest, processStartNotification, processStartNotification, PurgeAllPropertyHistory, PurgePropertyHistory, PurgeSelectedPropertyHistory, QueryAlertHistory, QueryAlertSummary, QueryBooleanPropertyHistory, QueryDateTimePropertyHistory, QueryImagePropertyHistory, QueryInfoTablePropertyHistory, QueryIntegerPropertyHistory, QueryLocationPropertyHistory, QueryLongPropertyHistory, QueryNamedPropertyHistory, QueryNumberPropertyHistory, QueryPropertyHistory, QueryStringPropertyHistory, QueryThingCodePropertyHistory, QueryVec2PropertyHistory, QueryVec3PropertyHistory, QueryVec4PropertyHistory, RemoveAlert, RemoveDynamicSubscription, RemoveEventDefinition, RemoveLocalPropertyBinding, RemovePropertyDefinition, RemoveRemoteEventBinding, RemoveRemotePropertyBinding, RemoveRemoteServiceBinding, RemoveServiceDefinition, RestartThing, SetBooleanAlertParameter, SetDateTimeAlertParameter, SetDescription, SetIdentifier, SetIntegerAlertParameter, SetLocalPropertyBinding, SetLocalPropertyBinding, SetLocationAlertParameter, SetNumberAlertParameter, SetPropertyLogging, setPropertyValue, SetPropertyValues, setPropertyVTQ, setPropertyVTQ, SetPublished, SetRemoteEventBinding, SetRemotePropertyBinding, SetRemotePropertyBinding, SetRemoteServiceBinding, SetStringAlertParameter, SetTags, setThingTemplateName, SetUnitsForNumericPropertyDefinition, SetValueStream, startThing, startThing, stopThing, UpdatePropertyValues, validateConfiguration, WritePropertiesToStreamAddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, getAspects, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, preInitializeEntity, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinitiongetID, hasID, isTransientgetDescription, getName, setDescription, setName, toValueCollectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamegetID, hasIDgetDescriptiongetID, getNamepublic static final java.lang.String DIRECTORY_DATASHAPE
public static final java.lang.String FILE_DATASHAPE
public static final java.lang.String FILE_DATASHAPE_WITH_LINKS
public static final double DEFAULT_TRANSFER_BLOCK_SIZE
public static final double DEFAULT_MAX_FILE_SIZE
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetDirectoryStructure() throws java.lang.Exception
java.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetTransferInfo() throws java.lang.Exception
java.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetFileInfo(java.lang.String path) throws java.lang.Exception
path - File path - STRINGjava.lang.Exception - If an error occurs@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,4,0}) public java.lang.String GetFileChecksum(java.lang.String path) throws java.lang.Exception
java.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={8,4}) public java.lang.String GetFileChecksum(java.lang.String path, java.lang.String checksumAlgorithm) throws java.lang.Exception
path - The path to the file to conduct a checksum onchecksumAlgorithm - The name of the checksum algorithm to usejava.lang.Exception - Thrown if the cryptographic algorithm provided is invalid or is not recognized by the server@ThingworxExtensionApiMethod(since={8,4}) public InfoTable GetSupportedFileChecksumAlgorithms() throws java.lang.Exception
java.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetFileListing(java.lang.String path, java.lang.String nameMask) throws java.lang.Exception
path - Directory path - STRINGnameMask - Name mask - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable ListFiles(java.lang.String path, java.lang.String nameMask) throws java.lang.Exception
path - Directory path - STRINGnameMask - Name mask - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable ListDirectories(java.lang.String path, java.lang.String nameMask) throws java.lang.Exception
path - Directory path - STRINGnameMask - Name mask - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable BrowseFileSystem(java.lang.String path) throws java.lang.Exception
path - Directory path - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable BrowseDirectory(java.lang.String path) throws java.lang.Exception
path - Directory path - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetFileListingWithLinks(java.lang.String path, java.lang.String nameMask) throws java.lang.Exception
path - Directory path - STRINGnameMask - Name mask - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void StartFileTransfer(java.lang.String tid, java.lang.String path, java.lang.String mode) throws java.lang.Exception
tid - Transfer Id - STRINGpath - File path - STRINGmode - Indicates if the file will be open in 'read' or 'write' mode - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void CompleteFileTransfer(InfoTable job) throws java.lang.Exception
job - The transfer job being completed - INFOTABLEjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void CancelFileTransfer(InfoTable job) throws java.lang.Exception
job - The transfer job being completed - INFOTABLEjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void CreateBinaryFile(java.lang.String path, byte[] data, java.lang.Boolean overwrite) throws java.lang.Exception
path - File path - STRINGdata - Initial data - BLOBoverwrite - Overwrite existing file - BOOLEANjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void CreateTextFile(java.lang.String path, java.lang.String data, java.lang.Boolean overwrite) throws java.lang.Exception
path - File path - STRINGdata - Initial data - STRINGoverwrite - Overwrite existing file - BOOLEANjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable ReadFromBinaryFile(java.lang.String path, java.lang.Double offset, java.lang.Integer count) throws java.lang.Exception
path - File path - STRINGoffset - File offset in bytes - NUMBERcount - Number of bytes to read - INTEGERjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AppendToBinaryFile(java.lang.String path, byte[] data) throws java.lang.Exception
path - File path - STRINGdata - Initial data - BLOBjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void WriteToBinaryFile(java.lang.String path, java.lang.Double offset, byte[] data) throws java.lang.Exception
path - File path - STRINGoffset - File offset in bytes - NUMBERdata - Initial data - BLOBjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void WriteToTextFile(java.lang.String path, java.lang.Double offset, java.lang.String data) throws java.lang.Exception
path - File path - STRINGoffset - File offset in bytes - NUMBERdata - Initial data - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AppendToTextFile(java.lang.String path, java.lang.String data) throws java.lang.Exception
path - File path - STRINGdata - Initial data - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void RenameFile(java.lang.String path, java.lang.String name, java.lang.Boolean overwrite) throws java.lang.Exception
path - File path - STRINGname - New file name - STRINGoverwrite - Overwrite existing file - BOOLEANjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void MoveFile(java.lang.String sourcePath, java.lang.String targetPath, java.lang.Boolean overwrite) throws java.lang.Exception
sourcePath - Path of file to move - STRINGtargetPath - Path of target file - STRINGoverwrite - Overwrite existing file - BOOLEANjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean DeleteFile(java.lang.String path) throws java.lang.Exception
path - File path - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean CreateFolderInParent(java.lang.String parentFolderPath, java.lang.String folderName) throws java.lang.Exception
parentFolderPath - Parent folder full path - STRINGfolderName - New Folder to be created - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean CreateFolder(java.lang.String path) throws java.lang.Exception
path - Folder path - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean DeleteFolder(java.lang.String path) throws java.lang.Exception
path - Folder path - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean SaveJSON(java.lang.String path, org.json.JSONObject content) throws java.lang.Exception
path - File path - STRINGcontent - JSON content - JSONjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject LoadJSON(java.lang.String path) throws java.lang.Exception
path - File path - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean SaveXML(java.lang.String path, org.w3c.dom.Document content) throws java.lang.Exception
path - File path - STRINGcontent - XML content - XMLjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public org.w3c.dom.Document LoadXML(java.lang.String path) throws java.lang.Exception
path - File path - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean SaveText(java.lang.String path, java.lang.String content) throws java.lang.Exception
path - File path - STRINGcontent - Text content - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String LoadText(java.lang.String path) throws java.lang.Exception
path - File path - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean SaveBinary(java.lang.String path, byte[] content) throws java.lang.Exception
path - File path - STRINGcontent - Binary content - BLOBjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public byte[] LoadBinary(java.lang.String path) throws java.lang.Exception
path - File path - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean SaveImage(java.lang.String path, byte[] content) throws java.lang.Exception
path - File path - STRINGcontent - Binary content - IMAGEjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public byte[] LoadImage(java.lang.String path) throws java.lang.Exception
path - File path - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean CreateZipArchive(java.lang.String newFileName, java.lang.String path, java.lang.String files) throws java.lang.Exception
newFileName - Name of zip file to be created - STRINGpath - Path within the File Repository to create the zip file - STRINGfiles - Comma separated list of full path names for files in the repository to add to the archive - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={7,3}) public java.lang.Boolean CreateArchive(java.lang.String newFileName, java.lang.String path, java.lang.String compressionType, java.lang.String files) throws java.lang.Exception
newFileName - Name of file to be created - STRINGpath - Path within the File Repository to create the file - STRINGcompressionType - Compression type of archive file (valid types are zip and targz). If not provided, it will default to 'zip' - STRINGfiles - Comma separated list of full path names for files in the repository to add to the archive - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean ExtractZipArchive(java.lang.String zipFileName, java.lang.String path) throws java.lang.Exception
zipFileName - Full path of zip file within the File Repository - STRINGpath - Path within the File Repository to extract the zip file contents to - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={7,3}) public java.lang.Boolean ExtractArchive(java.lang.String archiveFileName, java.lang.String path, java.lang.String compressionType) throws java.lang.Exception
archiveFileName - Full path of archive file within the File Repository - STRINGpath - Path within the File Repository to extract the archive file contents to - STRINGcompressionType - Compression type of archive file (valid types are zip and targz). If not provided, it will be derived from newFileName if possible - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={8,4}) public java.lang.Boolean FlatExtractArchive(java.lang.String archiveFileName, java.lang.String path, java.lang.String compressionType) throws java.lang.Exception
archiveFileName - Full path of archive file within the File Repository - STRINGpath - Path within the File Repository to extract the archive file contents to - STRINGcompressionType - Compression type of archive file (valid types are zip and targz). If not provided, it will be derived from newFileName if possible - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getRootPath()
getRootPath in interface IRepository@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Long getFileSize(java.lang.String path)
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,4,0}) public java.lang.String computeChecksum(java.lang.String path) throws java.lang.Exception
java.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={8,4}) public java.lang.String computeChecksum(java.lang.String path, java.lang.String checksumAlgorithm) throws java.lang.Exception
java.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.io.FileInputStream openFileForRead(java.lang.String path) throws java.lang.Exception
java.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.io.FileOutputStream openFileForWrite(java.lang.String path, FileRepositoryThing.FileMode mode) throws java.lang.Exception
java.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetDataExportListing(java.lang.String path) throws java.lang.Exception
path - File Repository Relative Path - STRINGjava.lang.Exception - If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetEntityExportListing(java.lang.String path) throws java.lang.Exception
path - File Repository Relative Path - STRINGjava.lang.Exception - If an error occurs