|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
org.wso2.carbon.governance.api.policies.dataobjects.PolicyImpl
public class PolicyImpl
This represents a policy artifact stored on the Registry. Policy artifacts are created as a result of importing or uploading a policy.
| Field Summary |
|---|
| Fields inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl |
|---|
attributes |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl |
|---|
addAttribute, associateRegistry, attach, attachLifecycle, checkLCItem, checkRegistryResourceAssociation, create, create, createVersion, detach, detachLifecycle, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getArtifactPath, getAssociatedRegistry, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLcName, getLcState, getLifecycleName, getLifecycleNames, getLifecycleState, getLifecycleState, getPath, invokeAction, invokeAction, isLCItemChecked, isVoted, removeAttribute, setArtifactPath, setAttribute, setAttributes, setId, setLcName, setLcState, uncheckLCItem, unvote, updatePath, updatePath, vote |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact |
|---|
addAttribute, attachLifecycle, checkLCItem, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLifecycleName, getLifecycleNames, getLifecycleState, getLifecycleState, getPath, invokeAction, invokeAction, isLCItemChecked, isVoted, removeAttribute, setAttribute, setAttributes, setId, uncheckLCItem, unvote, vote |
| Constructor Detail |
|---|
public 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 PolicyImpl(String id,
String url)
id - the resource identifier.url - the policy URL.| Method Detail |
|---|
public QName getQName()
GovernanceArtifact
getQName 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||