Package | Description |
---|---|
org.wso2.carbon.governance.api.policies | |
org.wso2.carbon.governance.api.policies.dataobjects | |
org.wso2.carbon.governance.api.services.dataobjects |
Modifier and Type | Method and Description |
---|---|
Policy[] |
PolicyManager.findPolicies(PolicyFilter criteria)
Finds all policy artifacts matching the given filter criteria.
|
Policy[] |
PolicyManager.getAllPolicies()
Finds all policy artifacts on the registry.
|
Policy |
PolicyManager.getPolicy(String policyId)
Fetches the given policy artifact on the registry.
|
Policy |
PolicyManager.newPolicy(byte[] content)
Create a new Schema based on content either embedded or passed to a service.
|
Policy |
PolicyManager.newPolicy(byte[] content,
String name)
Create a new Schema based on content either embedded or passed to a service.
|
Policy |
PolicyManager.newPolicy(String url)
Creates a new policy artifact from the given URL.
|
Modifier and Type | Method and Description |
---|---|
void |
PolicyManager.addPolicy(Policy policy)
Adds the given policy artifact to the registry.
|
boolean |
PolicyFilter.matches(Policy policy)
Whether the given policy artifact matches the expected filter criteria.
|
protected void |
PolicyManager.setContent(Policy policy,
org.wso2.carbon.registry.core.Resource policyResource)
Sets content of the given policy artifact to the given resource on the
registry.
|
void |
PolicyManager.updatePolicy(Policy policy)
Updates the given policy artifact on the registry.
|
Modifier and Type | Class and Description |
---|---|
class |
PolicyImpl
This represents a policy artifact stored on the Registry.
|
Modifier and Type | Method and Description |
---|---|
Policy[] |
ServiceImpl.getAttachedPolicies()
Method to retrieve all policies attached to this service artifact.
|
Policy[] |
Service.getAttachedPolicies()
Method to retrieve all policies attached to this service artifact.
|
Modifier and Type | Method and Description |
---|---|
void |
ServiceImpl.attachPolicy(Policy policy)
Attach a policy artifact to a service artifact.
|
void |
Service.attachPolicy(Policy policy)
Attach a policy artifact to a service artifact.
|
Copyright © 2019 WSO2. All Rights Reserved.