com.ibm.datapower.wamt.dataAPI
Interface StoredDeployablePolicy

All Superinterfaces:
Persistable
All Known Subinterfaces:
StoredDeploymentPolicy
All Known Implementing Classes:
StoredDeploymentPolicyImpl

public interface StoredDeployablePolicy
extends Persistable

The information related to a DeploymentPolicy that must be managed and persisted when domain configuration is deployed to a DataPower device. The information relates to the versions of a deployment policy used in domain configuration deployment. The highest version is the latest deployment policy version used in domain deployment. This interface is extended by StoredDeploymentPolicy.


Field Summary
static java.lang.String COPYRIGHT_2009_2010
           
static java.lang.String SCM_REVISION
           
 
Method Summary
 void delete()
          Deletes this StoredDeployablePolicy.
 int getHighestVersionNumber()
          Gets the highest version number that has EVER been used for a version of this object.
 StoredDeploymentPolicyVersion[] getVersions()
          Gets the versions of the specified StoredDeployablePolicy from the repository.
 
Methods inherited from interface com.ibm.datapower.wamt.dataAPI.Persistable
getPrimaryKey
 

Field Detail

COPYRIGHT_2009_2010

static final java.lang.String COPYRIGHT_2009_2010
See Also:
Constant Field Values

SCM_REVISION

static final java.lang.String SCM_REVISION
See Also:
Constant Field Values
Method Detail

getVersions

StoredDeploymentPolicyVersion[] getVersions()
Gets the versions of the specified StoredDeployablePolicy from the repository. This is invoked from DeploymentPolicy.getVersions()

Returns:
the Versions of the specified StoredDeployablePolicy. The array is in chronological order with the oldest version first in the array.

getHighestVersionNumber

int getHighestVersionNumber()
Gets the highest version number that has EVER been used for a version of this object. Used to create unique identifiers for the versions of this object. It is OK for this number to wrap as long as it doesn't create duplicated identifiers among the current set of versions. The version number is calculated and maintained by the repository and there is no setHighestVersion. This is called by DeploymentPolicy.getHighestVersionNumber()

Returns:
The highest version number that has EVER been for a version of this object

delete

void delete()
            throws DatastoreException,
                   NotEmptyInRepositoryException
Deletes this StoredDeployablePolicy. The StoredDeploymentPolicy will be removed from the StoredDomain that contains it. The logic to create and remove the StoredDeploymentPolicy is handled by the clientAPI and is not visible via the clientAPI. This is invoked from Device.removeManagedDomain(String)

Note: The Local File System implementation clears the StoredDeploymetPolicy object and removes the element from the WAMT.repository.xml file. It does not remove any contained elements. The logic to remove the contained elements is handled in the clientAPI.



© Copyright IBM Corp. 2006, 2010 All Rights Reserved.