Package com.uc4.api
Class StorageItem
- java.lang.Object
-
- com.uc4.api.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 aStorareRessource
using a XML Element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getChecksum()
Returns checksum string of the resource content.java.lang.String
getFileName()
Returns file name represented by the resource.UploadBinary.ContentType
getFileType()
Return the type of data representation.java.lang.String
getHardware()
Returns the hardware type attribute.java.lang.String
getHostType()
Returns the host type attribute.java.lang.String
getItemId()
Returns the item id of this itemDateTime
getModifiedDate()
Returns the modified date of the file in local time zone of the user who uploaded the file.UC4ObjectName
getName()
Returns name of the resource.int
getResourceType()
Returns the type of this resource.long
getSize()
Returns the size of resource content.java.lang.String
getSoftwareType()
Returns the software type attribute.java.lang.String
getStorageId()
Returns the oh idnr of the parent storageStorageItem.UsageType
getUsageType()
Returns the specified usage type of the resource.java.lang.String
getVersion()
Returns the version of the resource.boolean
isReplaceVariable()
Indicate whether variables for this resource should be replaced.java.lang.String
toString()
-
-
-
Constructor Detail
-
StorageItem
public StorageItem(ConnectionAttributes session, org.w3c.dom.Element e)
Constructs aStorareRessource
using a XML Element. Internal use only.- Parameters:
session
- Session infoe
- 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
-
getFileType
public UploadBinary.ContentType getFileType()
Return the type of data representation. (Text, Binary)- Returns:
- The Type as
UploadBinary.ContentType
-
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 classjava.lang.Object
-
-