Package com.uc4.api
Class StorageItem
java.lang.Object
com.uc4.api.StorageItem
This class represents one resource in storage object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Represents usage type of the resource. -
Constructor Summary
ConstructorsConstructorDescriptionStorageItem
(ConnectionAttributes session, Element e) Constructs aStorareRessource
using a XML Element. -
Method Summary
Modifier and TypeMethodDescriptionReturns checksum string of the resource content.Returns file name represented by the resource.Return the type of data representation.Returns the hardware type attribute.Returns the host type attribute.Returns the item id of this itemReturns the modified date of the file in local time zone of the user who uploaded the file.getName()
Returns name of the resource.int
Returns the type of this resource.long
getSize()
Returns the size of resource content.Returns the software type attribute.Returns the oh idnr of the parent storageReturns the specified usage type of the resource.Returns the version of the resource.boolean
Indicate whether variables for this resource should be replaced.toString()
-
Constructor Details
-
StorageItem
Constructs aStorareRessource
using a XML Element. Internal use only.- Parameters:
session
- Session infoe
- XML element
-
-
Method Details
-
getStorageId
Returns the oh idnr of the parent storage -
getItemId
Returns the item id of this item -
getSize
public long getSize()Returns the size of resource content.- Returns:
- the size
-
getUsageType
Returns the specified usage type of the resource.- Returns:
- the usageType or
null
-
getName
Returns name of the resource.- Returns:
- the name
-
getFileName
Returns file name represented by the resource.- Returns:
- the fileName
-
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
Return the type of data representation. (Text, Binary)- Returns:
- The Type as
UploadBinary.ContentType
-
getChecksum
Returns checksum string of the resource content.- Returns:
- checksum string or
null
-
getVersion
Returns the version of the resource.- Returns:
- version or
null
-
getHostType
Returns the host type attribute.- Returns:
- the hostType or
null
-
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
Returns the hardware type attribute.- Returns:
- the hardwareType or
null
-
toString
-