Package com.uc4.api

Class StorageItem

java.lang.Object
com.uc4.api.StorageItem

public class StorageItem extends Object
This class represents one resource in storage object.
  • Constructor Details

    • StorageItem

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

    • getStorageId

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

      public 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 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
    • getFileType

      public UploadBinary.ContentType getFileType()
      Return the type of data representation. (Text, Binary)
      Returns:
      The Type as UploadBinary.ContentType
    • getChecksum

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

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

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

      public 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 String getHardware()
      Returns the hardware type attribute.
      Returns:
      the hardwareType or null
    • toString

      public String toString()
      Overrides:
      toString in class Object