|
|||||||||||
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.StoredDeploymentPolicyImpl
public class StoredDeploymentPolicyImpl
The deployment policy information includes the domain configuration blob, the policy type, the policy source, and the associated domain name. It is a container for all the deployed versions of this StoredDeploymentPolicy. Below is a sample of a persisted deployment policy.
<deploymentPolicy xmi:id="DPPolicy_0" highestVersion="1" policyName="lathas" SynchDate="1276806718906" SourceURL="file:///C:/DataPower2010/DatapowerTest/lathasdomain.zip" policyType="EXPORT" domainName="lathas"> ... </deploymentPolicy>
StoredDeploymentPolicy
Field Summary |
---|
Fields inherited from interface com.ibm.datapower.wamt.dataAPI.StoredDeploymentPolicy |
---|
COPYRIGHT_2009_2010, SCM_REVISION |
Method Summary | |
---|---|
void |
delete()
Deletes this StoredDeployablePolicy. |
StoredDomain |
getDomain()
Gets the name of the StoredDomain that contains this StoredDeploymentPolicy . |
int |
getHighestVersionNumber()
Gets the highest version number that has EVER been used for a version of this object. |
long |
getLastModifiedOfDeployedSource()
Gets the "last modified" timestamp of the policy source persisted on this deployment policy object. |
java.lang.String |
getPolicyDomainName()
Note: For the Local File System implementation, the policy domain name is stored as an attribute on the deploymentPolicy element. |
java.lang.String |
getPolicyName()
Note: In the Local File System implementation, the policy name is stored as an attribute on the deploymentPolicy element. |
DeploymentPolicyType |
getPolicyType()
Note: In the Local File System implementation, the policy type is stored as an attribute on the deploymentPolicy element. |
URLSource |
getPolicyURL()
Returns the domain configuration source that was persisted on this DeploymentPolicy object. |
java.lang.String |
getPrimaryKey()
Note: The Local File System implementation combines the containing domain identifier with the policy name on this StoredDeploymentPolicy as the unique identifier
of this object. |
StoredDeploymentPolicyVersion |
getVersion(int versionNumber)
Gets the DeploymentPolicyVersion object with the specified version number. |
StoredDeploymentPolicyVersion[] |
getVersions()
Gets the versions of the specified StoredDeployablePolicy from the repository. |
void |
setLastModifiedOfDeployedSource(long synchDate)
Note: In the Local File System implementation, the synchDate is stored as an attribute on the deploymentPolicy element. |
void |
setPolicyDomainName(java.lang.String policyDomainName)
Sets the Domain name that is to find the deployment domain within the configuration URLSource which will be deployed on the device |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void delete() throws DatastoreException, NotEmptyInRepositoryException
StoredDeployablePolicy
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
.
delete
in interface StoredDeployablePolicy
public java.lang.String getPolicyName()
Note: In the Local File System implementation, the policy name is stored as an attribute on the deploymentPolicy element.
getPolicyName
in interface StoredDeploymentPolicy
public java.lang.String getPrimaryKey()
Note: The Local File System implementation combines the containing domain identifier
with the policy name on this StoredDeploymentPolicy
as the unique identifier
of this object.
getPrimaryKey
in interface Persistable
getPrimaryKey
in interface StoredDeploymentPolicy
StoredDeploymentPolicy.getPolicyName()
public StoredDomain getDomain()
StoredDeploymentPolicy
StoredDomain
that contains this StoredDeploymentPolicy
.
There is only one DeploymentPolicy persisted for each Domain.
This name should be human-consumable. This is exposed by DeploymentPolicy.getDomain()
getDomain
in interface StoredDeploymentPolicy
StoredDomain
public StoredDeploymentPolicyVersion getVersion(int versionNumber)
StoredDeploymentPolicy
DeploymentPolicy.getVersion(int)
getVersion
in interface StoredDeploymentPolicy
public StoredDeploymentPolicyVersion[] getVersions()
StoredDeployablePolicy
DeploymentPolicy.getVersions()
getVersions
in interface StoredDeployablePolicy
public int getHighestVersionNumber()
StoredDeployablePolicy
setHighestVersion
.
This is
called by DeploymentPolicy.getHighestVersionNumber()
getHighestVersionNumber
in interface StoredDeployablePolicy
public java.lang.String getPolicyDomainName()
Note: For the Local File System implementation, the policy domain name is stored as an attribute on the deploymentPolicy element.
getPolicyDomainName
in interface StoredDeploymentPolicy
DeploymentPolicy.setPolicyExport(URLSource, String, String)
public void setPolicyDomainName(java.lang.String policyDomainName)
StoredDeploymentPolicy
URLSource
which will be deployed on the device
setPolicyDomainName
in interface StoredDeploymentPolicy
policyDomainName
- domain name that is used index into the configuration source and point to the
domain within the configuration source.StoredDeploymentPolicy.getPolicyDomainName()
public URLSource getPolicyURL()
StoredDeploymentPolicy
Note: In the Local File System implementation, the policy domain name is stored as an string attribute on the policydeployment element.
getPolicyURL
in interface StoredDeploymentPolicy
URLSource
for this StoredDeploymentPolicypublic DeploymentPolicyType getPolicyType()
Note: In the Local File System implementation, the policy type is stored as an attribute on the deploymentPolicy element.
getPolicyType
in interface StoredDeploymentPolicy
DeploymentPolicyType.EXPORT
,
DeploymentPolicyType.XML
,
DeploymentPolicyType.NONE
public void setLastModifiedOfDeployedSource(long synchDate)
Note: In the Local File System implementation, the synchDate is stored as an attribute on the deploymentPolicy element.
setLastModifiedOfDeployedSource
in interface StoredDeploymentPolicy
synchDate
- time stamp on the configuration source fileStoredDeploymentPolicy.getLastModifiedOfDeployedSource()
public long getLastModifiedOfDeployedSource()
StoredDeploymentPolicy
getLastModifiedOfDeployedSource
in interface StoredDeploymentPolicy
StoredDeploymentPolicy.setLastModifiedOfDeployedSource(long)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |