Package com.uc4.api
Class StorageItem
- java.lang.Object
-
- com.uc4.api.StorageItem
-
public class StorageItem extends java.lang.ObjectThis class represents one resource in storage object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStorageItem.UsageTypeRepresents usage type of the resource.
-
Constructor Summary
Constructors Constructor Description StorageItem(ConnectionAttributes session, org.w3c.dom.Element e)Constructs aStorareRessourceusing a XML Element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetChecksum()Returns checksum string of the resource content.java.lang.StringgetFileName()Returns file name represented by the resource.UploadBinary.ContentTypegetFileType()Return the type of data representation.java.lang.StringgetHardware()Returns the hardware type attribute.java.lang.StringgetHostType()Returns the host type attribute.java.lang.StringgetItemId()Returns the item id of this itemDateTimegetModifiedDate()Returns the modified date of the file in local time zone of the user who uploaded the file.UC4ObjectNamegetName()Returns name of the resource.intgetResourceType()Returns the type of this resource.longgetSize()Returns the size of resource content.java.lang.StringgetSoftwareType()Returns the software type attribute.java.lang.StringgetStorageId()Returns the oh idnr of the parent storageStorageItem.UsageTypegetUsageType()Returns the specified usage type of the resource.java.lang.StringgetVersion()Returns the version of the resource.booleanisReplaceVariable()Indicate whether variables for this resource should be replaced.java.lang.StringtoString()
-
-
-
Constructor Detail
-
StorageItem
public StorageItem(ConnectionAttributes session, org.w3c.dom.Element e)
Constructs aStorareRessourceusing 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:
toStringin classjava.lang.Object
-
-