## Uses of Interface
org.wso2.carbon.governance.api.policies.dataobjects.Policy

- Packages that use Policy
  Package | Description
  --- | ---
  org.wso2.carbon.governance.api.policies |
  org.wso2.carbon.governance.api.policies.dataobjects |
  org.wso2.carbon.governance.api.services.dataobjects |

- - ### Uses of Policy in org.wso2.carbon.governance.api.policies

    Methods in org.wso2.carbon.governance.api.policies that return Policy
    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.

    Methods in org.wso2.carbon.governance.api.policies with parameters of type Policy
    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.

  - ### Uses of Policy in org.wso2.carbon.governance.api.policies.dataobjects

    Classes in org.wso2.carbon.governance.api.policies.dataobjects that implement Policy
    Modifier and Type | Class and Description
    --- | ---
    `class` | `PolicyImpl` This represents a policy artifact stored on the Registry.

  - ### Uses of Policy in org.wso2.carbon.governance.api.services.dataobjects

    Methods in org.wso2.carbon.governance.api.services.dataobjects that return Policy
    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.

    Methods in org.wso2.carbon.governance.api.services.dataobjects with parameters of type Policy
    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 © 2017 WSO2. All rights reserved.