|
|||||||||||
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.StoredDomainVersionImpl
public class StoredDomainVersionImpl
A version of Domain object persisted in the repository that can be deployed to a DataPower device. It is contained within the Domain on which it is deployed. It is persisted when a domain configuration is successfully deployed by the manager. Below is a sample domain version element as well as the deployment policy and deployment version that are also created and persisted with the domain version by the clientAPI.
<domains xmi:id="DPDomain_0" highestVersion="1" name="domain1" SourceURL="device://9.42.112.79/domain1" SynchDate="0" OutOfSynch="false" checkVersionSynch="false" quiesceTimeout="60" SyncMode="MANUAL"> <versions xmi:id="DPDomainVersion_0" timeCreatedInManager="1276807490921" userComment="Version generated from Domain.deployConfiguration()" versionImageFileLocation="Blob9074270970331689053.bin" versionNumber="1" xsi:type="dat:DPDomainVersion" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/> <deploymentPolicy xmi:id="DPPolicy_0" highestVersion="1" policyName="domain1" SynchDate="1276806718906" SourceURL="file:///C:/DataPower2010/DatapowerTest/domain.zip" policyType="EXPORT" domainName="domain1"> <versions xmi:id="DPPolicyVersion_0" timeCreatedInManager="1276807490921" userComment="Version generated from Domain.deployConfiguration()" versionImageFileLocation="Blob9198776463933681699.bin" versionNumber="1" policyType="EXPORT" domainName="domain1" policyName="domain1"/> </deploymentPolicy> </domains>
Field Summary |
---|
Fields inherited from interface com.ibm.datapower.wamt.dataAPI.StoredDomainVersion |
---|
COPYRIGHT_2009_2010, SCM_REVISION |
Method Summary | |
---|---|
void |
delete()
Note: The Local File System implementation clears the Stored object and removes the version element from the WAMT.repository.xml file. |
Blob |
getBlob()
Note: The Local File System implementation stores each image as a separate bin file. |
StoredDomain |
getDomain()
Note: In the Local File System implementation the Domain element contains version elements in the WAMT.repository.xml file. |
java.lang.String |
getPrimaryKey()
Note: The Local File System implementation uses the unique identifier of the StoredDomain
combined with the version number of this StoredDomainVersion . |
java.util.Date |
getTimestamp()
Note: The Local File System implementation stores the timestamp as an attribute on the version element |
java.lang.String |
getUserComment()
Note: The Local File System implementation stores the getUserComment as an attribute on the version elements |
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 |
recordDomainVersion(java.io.OutputStream outputStream)
Note: The Local File System implementation is provided for the convenience of customers that wish to write their own dataAPI implementation. |
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 getPrimaryKey()
Note: The Local File System implementation uses the unique identifier of the StoredDomain
combined with the version number of this StoredDomainVersion
.
getPrimaryKey
in interface Persistable
getPrimaryKey
in interface StoredDomainVersion
public StoredDomain getDomain()
Note: In the Local File System implementation the Domain element contains version elements in the WAMT.repository.xml file.
getDomain
in interface StoredDomainVersion
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()
Note: The Local File System implementation stores the timestamp as an attribute on the version element
getTimestamp
in interface StoredVersion
public java.lang.String getUserComment()
Note: The Local File System implementation stores the getUserComment as an attribute on the version elements
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()
Note: The Local File System implementation stores each image as a separate bin file. The name of the file is stored as an attribute on the version element in the WAMT.repository.xml file.
getBlob
in interface StoredVersion
public void delete()
Note: The Local File System implementation clears the Stored object and removes the version element from the WAMT.repository.xml file. It does not modify any other elements. The corresponding deployment policy version is deleted by logic in clientAPI.
delete
in interface StoredVersion
public void recordDomainVersion(java.io.OutputStream outputStream)
Note: The Local File System implementation is provided for the convenience of customers that wish to write their own dataAPI implementation.
recordDomainVersion
in interface StoredDomainVersion
outputStream
- that will be used to write the report
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |