Package com.uc4.api

Class StorageItem


  • public class StorageItem
    extends java.lang.Object
    This class represents one resource in storage object.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  StorageItem.UsageType
      Represents usage type of the resource.
    • Constructor Summary

      Constructors 
      Constructor Description
      StorageItem​(ConnectionAttributes session, org.w3c.dom.Element e)
      Constructs a StorareRessource using a XML Element.
    • Constructor Detail

      • StorageItem

        public StorageItem​(ConnectionAttributes session,
                           org.w3c.dom.Element e)
        Constructs a StorareRessource using a XML Element. Internal use only.
        Parameters:
        session - Session info
        e - XML element
    • Method Detail

      • getStorageId

        public java.lang.String getStorageId()
        Returns the oh idnr of the parent storage
      • getItemId

        public java.lang.String getItemId()
        Returns the item id of this item
      • getSize

        public long getSize()
        Returns the size of resource content.
        Returns:
        the size
      • getUsageType

        public StorageItem.UsageType getUsageType()
        Returns the specified usage type of the resource.
        Returns:
        the usageType or null
      • getName

        public UC4ObjectName getName()
        Returns name of the resource.
        Returns:
        the name
      • getFileName

        public java.lang.String getFileName()
        Returns file name represented by the resource.
        Returns:
        the fileName
      • getModifiedDate

        public DateTime getModifiedDate()
        Returns the modified date of the file in local time zone of the user who uploaded the file.
        Returns:
        the modifiedDate can be empty
      • getResourceType

        public int getResourceType()
        Returns the type of this resource. 1 - RA Solution
        Returns:
        the resourceType
        • 1 - RA Solution
        • 2 - ERT Model
        • 3 - File
        • 4 - ECC Plug-In
      • getChecksum

        public java.lang.String getChecksum()
        Returns checksum string of the resource content.
        Returns:
        checksum string or null
      • getVersion

        public java.lang.String getVersion()
        Returns the version of the resource.
        Returns:
        version or null
      • getHostType

        public java.lang.String getHostType()
        Returns the host type attribute.
        Returns:
        the hostType or null
      • getSoftwareType

        public java.lang.String getSoftwareType()
        Returns the software type attribute.
        Returns:
        the softwareType or null
      • isReplaceVariable

        public boolean isReplaceVariable()
        Indicate whether variables for this resource should be replaced.
        Returns:
        the replaceVariable
      • getHardware

        public java.lang.String getHardware()
        Returns the hardware type attribute.
        Returns:
        the hardwareType or null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object