public class PolicyImpl extends GovernanceArtifactImpl implements Policy
attributes, properties| Constructor and Description |
|---|
PolicyImpl(String id,
org.wso2.carbon.registry.core.Registry registry)
Constructor accepting resource path, identifier and a registry instance.
|
PolicyImpl(String id,
String url)
Constructor accepting resource identifier and the policy URL.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPolicyContent()
Method to obtain the policy element of this policy artifact.
|
QName |
getQName()
Returns the QName of the artifact.
|
String |
getUrl()
Method to obtain the policy URL.
|
void |
loadPolicyDetails()
Method to load the policy details into this artifact.
|
void |
setName(String name)
Method to set the name of the policy.
|
void |
setPolicyContent(String policyContent)
Method to set the policy element of this policy artifact.
|
void |
setQName(QName qName)
Method to set the qualified name of this service artifact.
|
addAssociation, addAssociation, addAttribute, addBidirectionalAssociation, addTag, addTags, associateRegistry, attach, attach, attachLifecycle, checkLCItem, checkRegistryResourceAssociation, compareTo, create, create, create, create, createVersion, detach, detachLifecycle, equals, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getAllVotingItems, getArtifactPath, getAssociatedArtifactIds, getAssociatedRegistry, getAssociations, getAttribute, getAttributeKeys, getAttributes, getCurrentStateDuration, getDependencies, getDependents, getId, getLcName, getLcState, getLifecycleName, getLifecycleNames, getLifecycleState, getLifecycleState, getMediaType, getPath, getPropertyKeys, getUniqueAttributes, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setArtifactPath, setAttribute, setAttributes, setId, setLcName, setLcState, setUniqueAttributes, toString, uncheckLCItem, uniqueTo, unvote, unvote, updatePath, updatePath, vote, voteclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAssociation, addAssociation, addAttribute, addBidirectionalAssociation, addTag, addTags, attach, attach, attachLifecycle, checkLCItem, compareTo, detach, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getAllVotingItems, getAssociatedArtifactIds, getAssociations, getAttribute, getAttributeKeys, getAttributes, getCurrentStateDuration, getDependencies, getDependents, getId, getLifecycleName, getLifecycleNames, getLifecycleState, getLifecycleState, getMediaType, getPath, getPropertyKeys, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setAttribute, setAttributes, setId, uncheckLCItem, uniqueTo, unvote, unvote, vote, votepublic PolicyImpl(String id, org.wso2.carbon.registry.core.Registry registry) throws GovernanceException
path - the resource path.id - the resource identifier.registry - the registry instance.GovernanceException - if the construction fails.public QName getQName()
GovernanceArtifactgetQName in interface GovernanceArtifactpublic String getPolicyContent()
getPolicyContent in interface Policypublic void setPolicyContent(String policyContent)
setPolicyContent in interface PolicypolicyContent - the policy element.public String getUrl()
public void setName(String name)
name - the name of the policy.public void loadPolicyDetails()
throws GovernanceException
GovernanceException - if the operation failed.public void setQName(QName qName) throws GovernanceException
setQName in interface GovernanceArtifactqName - the qualified name.GovernanceException - if the operation failed.Copyright © 2017 WSO2. All Rights Reserved.