|
|||||||||||
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.StoredFirmwareImpl
public class StoredFirmwareImpl
Persists all Firmware related information. This includes the device type, model type, strict features list, and non-strict feature list. It acts as a container for all the FirmwareVersions for this device type. The firmware that is deployed to devices is persisted in separate bin files in the local file system. Below is a sample firmware element which can contain multiple firmware versions
<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;"> ... </firmwares>
StoredFirmware
,
StoredFirmwareVersion
,
Firmware
,
FirmwareVersion
Field Summary |
---|
Fields inherited from interface com.ibm.datapower.wamt.dataAPI.StoredFirmware |
---|
COPYRIGHT_2009_2010, SCM_REVISION |
Method Summary | |
---|---|
void |
delete()
Deletes the persisted instance of this StoredFirmware. |
DeviceType |
getDeviceType()
Gets the deviceType of this StoredFirmware. |
int |
getHighestVersionNumber()
Gets the highest version number that has EVER been used for a version of this object. |
ModelType |
getModelType()
Gets the modelType of this StoredFirmware. |
StringCollection |
getNonstrictFeatures()
Gets the StringCollection that represents the nonstrict features supported by this firmware. |
java.lang.String |
getPrimaryKey()
Returns the unique identifier for this StoredFirmware. |
StringCollection |
getStrictFeatures()
Gets the StringCollection that represents the strict features supported by this firmware. |
StoredFirmwareVersion[] |
getVersions()
Returns all the FirmwareVersions contained by this StoredFirmware object. |
void |
remove(StoredFirmwareVersion firmwareVersion)
Removes the specifed StoredFirmwareVersion from this StoredFirmware. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public DeviceType getDeviceType()
StoredFirmware
setDeviceType
method. This is invoked by
Firmware.getDeviceType()
Note: The Local File System implementation persists device type as an attribute on firmwares element in the WAMT.repository.xml file.
getDeviceType
in interface StoredFirmware
public ModelType getModelType()
StoredFirmware
setModelType
method. This is invoked by
Firmware.getModelType()
Note: The Local File System implementation persists device model type as an attribute on firmwares element in the WAMT.repository.xml file.
getModelType
in interface StoredFirmware
public StringCollection getStrictFeatures()
StoredFirmware
StoredFirmware is specific to a combination of device type + model type +
strictfeatures + nonstrictFeatures. The strictFeatures attribute is
immutable, so there is no setStrictFeatures
method. This is invoked by
Firmware.getStrictFeatures()
Note: The Local File System implementation persists the collection of strict features as an attribute on firmwares element in the WAMT.repository.xml file.
getStrictFeatures
in interface StoredFirmware
public StringCollection getNonstrictFeatures()
StoredFirmware
StoredFirmware is specific to a combination of device type + model type +
strictfeatures + nonstrictFeatures. The nonstrictFeatures attribute is
immutable, so there is no setNonstrictFeatures
method. This is invoked by
Firmware.getNonstrictFeatures()
Note: The Local File System implementation persists the collection of non-strict features as an attribute on firmwares element in the WAMT.repository.xml file.
getNonstrictFeatures
in interface StoredFirmware
public StoredFirmwareVersion[] getVersions()
StoredFirmware
Firmware.getVersions()
getVersions
in interface StoredFirmware
public java.lang.String getPrimaryKey()
StoredFirmware
Firmware.getPrimaryKey()
.
There is no setPrimaryKey
exposed since it is managed by the
dataAPI implementation.
Note: The Local File System implementation combines the device type, model type, strict features and non-strict features as the unique identifier of this object.
getPrimaryKey
in interface Persistable
getPrimaryKey
in interface StoredFirmware
public void remove(StoredFirmwareVersion firmwareVersion) throws NotExistInRepositoryException
StoredFirmware
Firmware.remove(com.ibm.datapower.wamt.clientAPI.Version)
.
remove
in interface StoredFirmware
firmwareVersion
- the StoredFirmwareVersion to removeRepository.createFirmwareVersion(StoredFirmware, Blob, String, Date, String, Date)
public void delete()
StoredFirmware
Manager.remove(com.ibm.datapower.wamt.clientAPI.Firmware)
which
also contains the logic to removes any contained FirmwareVersions.
delete
in interface StoredFirmware
public int getHighestVersionNumber()
StoredFirmware
Firmware.getHighestVersionNumber()
Note: The Local File System implementation persists the highest version number as an attribute on firmwares element in the WAMT.repository.xml file.
getHighestVersionNumber
in interface StoredFirmware
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |