|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.datapower.wamt.dataAPI.local.filesystem.StoredFirmwareVersionImpl
public class StoredFirmwareVersionImpl
A persisted version of a Firmware i.e StoredFirmware. FirmwareVersions can be deployed to managed or unmanaged devices. A firmwareVersion can be deployed to all device members that belong to a ManagedSet. Below is a sample firmware version uniquely identified by the level, contained within a firmware which is uniquely identified by its attributes: device type, model type, strict featires and non-strict features.
<firmwares xmi:id="DPFirmware_0" deviceType="XI50" highestVersion="1" modelType="9003" strictFeatures="" nonstrictFeatures="DataGlue;JAXP-API;PKCS7-SMIME;HSM;XG4;Compact-Flash;iSCSI;RaidVolume;LocateLED;AppOpt;MQ;WebSphere-JMS;"> <versions xmi:id="DPFirmwareVersion_0" timeCreatedInManager="1273597277312" userComment="/dev-xi-186298.scrypt2" versionImageFileLocation="Blob302265539053947690.bin" versionNumber="1" manufactureDate="1272586131000" level="3.8.1.0"/> </firmwares>
StoredFirmware
,
StoredFirmwareVersion
,
Firmware
,
FirmwareVersion
Field Summary |
---|
Fields inherited from interface com.ibm.datapower.wamt.dataAPI.StoredFirmwareVersion |
---|
COPYRIGHT_2009_2010, SCM_REVISION |
Method Summary | |
---|---|
void |
delete()
Deletes the version from the repository. |
Blob |
getBlob()
Gets the binary image for this version. |
StoredFirmware |
getFirmware()
Gets the StoredFirmware Object that contains this StoredFirmwareVersion. |
java.lang.String |
getLevel()
Gets the version level of this firmware. |
java.util.Date |
getManufactureDate()
Gets the manufacture date of this firmware. |
java.lang.String |
getPrimaryKey()
Returns the Unique identifier for this StoredFirmwareVersion. |
java.util.Date |
getTimestamp()
Gets the timestamp that signifies when the StoredVersion was created in the repository. |
java.lang.String |
getUserComment()
Gets the user comment that corresponds to this version. |
java.lang.Object |
getVersionedObject()
Gets a reference to the object that this StoredVersion describes. |
int |
getVersionNumber()
Gets the version number that this StoredVersion object represents. |
void |
setUserComment(java.lang.String comment)
This method is used to set the user comment that can be later retrieved via StoredVersion.getUserComment() . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getLevel()
StoredFirmwareVersion
setLevel(String)
method. It
will be automatically populated in this object by the
setImage
method. This is invoked by
FirmwareVersion.getLevel()
Note: The Local File System implementation persists the level an an attribute on this version element in the WAMT.repository.xml
getLevel
in interface StoredFirmwareVersion
3.5.1.12
.public java.util.Date getManufactureDate()
StoredFirmwareVersion
setManufactureDate(Date)
method. It will be automatically populated in this object by the
setImage
method. This is invoked by
FirmwareVersion.getManufactureDate()
Note: The Local File System implementation persists date of manufacture an an attribute on this version element in the WAMT.repository.xml
getManufactureDate
in interface StoredFirmwareVersion
public StoredFirmware getFirmware()
StoredFirmwareVersion
FirmwareVersion.getFirmware()
getFirmware
in interface StoredFirmwareVersion
public java.lang.String getPrimaryKey()
StoredFirmwareVersion
setPrimaryKey
exposed since it is managed by the
dataAPI implementation. This is invoked by
FirmwareVersion.getPrimaryKey()
Note: The Local File System implementation combines the unique identifier of the containing firmware with the firmware level to generate the unique identifier of this object.
getPrimaryKey
in interface Persistable
getPrimaryKey
in interface StoredFirmwareVersion
public int getVersionNumber()
StoredVersion
setVersionNumber(int)
method. The combination of version number and Object reference forms the
primary key for a StoredVersion object in the repository.
getVersionNumber
in interface StoredVersion
public java.lang.Object getVersionedObject()
StoredVersion
getVersionedObject
in interface StoredVersion
public java.util.Date getTimestamp()
StoredVersion
setTimestamp(Date)
method. The timestamp is accessed from
DomainVersion.getTimestamp()
,
FirmwareVersion.getTimestamp()
, and
DeploymentPolicyVersion.getTimestamp()
getTimestamp
in interface StoredVersion
public java.lang.String getUserComment()
StoredVersion
DomainVersion.getUserComment()
,
FirmwareVersion.getUserComment()
,
DeploymentPolicyVersion.getUserComment()
getUserComment
in interface StoredVersion
StoredVersion.setUserComment(String)
public void setUserComment(java.lang.String comment) throws DatastoreException
StoredVersion
StoredVersion.getUserComment()
. Calling this method will cause the
comment to be written to the repository. The comment is set by invoking
DomainVersion.setUserComment(String)
,
FirmwareVersion.setUserComment(String)
,
DeploymentPolicyVersion.setUserComment(String)
setUserComment
in interface StoredVersion
comment
- the user-defined comment to attach to this StoredVersion. It
may have reference to a new function, bug fix, change
management or problem management ticket, etc. This is a
freeform field of unlimited length.StoredVersion.getUserComment()
public Blob getBlob()
StoredVersion
DomainVersion.getBlob()
,
FirmwareVersion.getBlob()
,
DeploymentPolicyVersion.getBlob()
The image is set by the clientAPI and store by the repository, so
there is no setBlob
method.
getBlob
in interface StoredVersion
public void delete()
StoredVersion
delete
in interface StoredVersion
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |