Class StorageArea


  • public class StorageArea
    extends java.lang.Object
    Storage area plugin
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected StorageArea​(long self)
      Construct a Java object wrapping a C object that is managed by Orthanc.
    • Constructor Detail

      • StorageArea

        protected StorageArea​(long self)
        Construct a Java object wrapping a C object that is managed by Orthanc.
        Parameters:
        self - Pointer to the C object.
    • Method Detail

      • getSelf

        protected long getSelf()
        Return the C object that is associated with this Java wrapper.
        Returns:
        Pointer to the C object.
      • storageAreaCreate

        public void storageAreaCreate​(java.lang.String uuid,
                                      byte[] content,
                                      long size,
                                      ContentType type)
        Create a file inside the storage area. This function creates a new file inside the storage area that is currently used by Orthanc.
        Parameters:
        uuid - The identifier of the file to be created.
        content - The content to store in the newly created file.
        size - The size of the content.
        type - The type of the file content.
      • storageAreaRead

        public byte[] storageAreaRead​(java.lang.String uuid,
                                      ContentType type)
        Read a file from the storage area. This function reads the content of a given file from the storage area that is currently used by Orthanc.
        Parameters:
        uuid - The identifier of the file to be read.
        type - The type of the file content.
        Returns:
        The resulting memory buffer.
      • storageAreaRemove

        public void storageAreaRemove​(java.lang.String uuid,
                                      ContentType type)
        Remove a file from the storage area. This function removes a given file from the storage area that is currently used by Orthanc.
        Parameters:
        uuid - The identifier of the file to be removed.
        type - The type of the file content.
      • reconstructMainDicomTags

        public void reconstructMainDicomTags​(ResourceType level)
        Reconstruct the main DICOM tags. This function requests the Orthanc core to reconstruct the main DICOM tags of all the resources of the given type. This function can only be used as a part of the upgrade of a custom database back-end. A database transaction will be automatically setup.
        Parameters:
        level - The type of the resources of interest.