## Uses of Class
org.wso2.carbon.governance.api.exception.GovernanceException

- Packages that use GovernanceException
  Package | Description
  --- | ---
  org.wso2.carbon.governance.api.common |
  org.wso2.carbon.governance.api.common.dataobjects |
  org.wso2.carbon.governance.api.endpoints |
  org.wso2.carbon.governance.api.endpoints.dataobjects |
  org.wso2.carbon.governance.api.generic |
  org.wso2.carbon.governance.api.generic.dataobjects |
  org.wso2.carbon.governance.api.policies |
  org.wso2.carbon.governance.api.policies.dataobjects |
  org.wso2.carbon.governance.api.schema |
  org.wso2.carbon.governance.api.schema.dataobjects |
  org.wso2.carbon.governance.api.services |
  org.wso2.carbon.governance.api.services.dataobjects |
  org.wso2.carbon.governance.api.util |
  org.wso2.carbon.governance.api.wsdls |
  org.wso2.carbon.governance.api.wsdls.dataobjects |

- - ### Uses of GovernanceException in org.wso2.carbon.governance.api.common

    Methods in org.wso2.carbon.governance.api.common that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | GovernanceArtifactManager.`addGovernanceArtifact(GovernanceArtifact artifact)` Adds the given artifact to the registry.
    `GovernanceArtifact[]` | GovernanceArtifactManager.`findGovernanceArtifacts(GovernanceArtifactFilter criteria)` Finds all artifacts matching the given filter criteria.
    `GovernanceArtifact[]` | GovernanceArtifactManager.`findGovernanceArtifacts(Map<String,List<String>> criteria)` Finds all artifacts matching the given filter criteria.
    `GovernanceArtifact[]` | GovernanceArtifactManager.`findGovernanceArtifacts(String query)` Finds and returns all GovernanceArtifacts that match the search query.
    `String[]` | GovernanceArtifactManager.`getAllGovernanceArtifactIds()` Finds all identifiers of the artifacts on the registry.
    `GovernanceArtifact[]` | GovernanceArtifactManager.`getAllGovernanceArtifacts()` Finds all artifacts of a given type on the registry.
    `GovernanceArtifact[]` | GovernanceArtifactManager.`getAllGovernanceArtifactsByLifecycle(String lcName)` Retrieve all the governance artifacts which associated with the given lifecycle
    `GovernanceArtifact[]` | GovernanceArtifactManager.`getAllGovernanceArtifactsByLIfecycleStatus(String lcName, String lcState)` Retrieve all the governance artifacts which associated with the given lifecycle in the given lifecycle state
    `GovernanceArtifact` | GovernanceArtifactManager.`getGovernanceArtifact(String artifactId)` Fetches the given artifact on the registry.
    `List<String>` | GovernanceArtifactManager.`getPaginatedGovernanceArtifacts()`
    `org.wso2.carbon.registry.common.TermData[]` | GovernanceArtifactManager.`getTermData(Map<String,List<String>> criteria, String facetField, boolean authRequired)` Find all possible terms and its count for the given facet field and query criteria
    `boolean` | GovernanceArtifactManager.`isExists(GovernanceArtifact artifact)` Check whether GovernanceArtifact is exists in the Registry without loading whole artifact into memory.
    `boolean` | GovernanceArtifactFilter.`matches(GovernanceArtifact artifact)` Whether the given artifact matches the expected filter criteria.
    `GovernanceArtifact` | GovernanceArtifactManager.`newGovernanceArtifact()` Creates a new artifact from the given qualified name.
    `GovernanceArtifact` | GovernanceArtifactManager.`newGovernanceArtifact(org.apache.axiom.om.OMElement content)` Creates a new artifact from the given content.
    `void` | GovernanceArtifactManager.`removeGenericArtifact(GenericArtifact artifact)`
    `void` | GovernanceArtifactManager.`removeGovernanceArtifact(String artifactId)` Removes the given artifact from the registry.
    `protected void` | GovernanceArtifactManager.`setContent(GovernanceArtifact artifact, org.wso2.carbon.registry.core.Resource resource)` Sets content of the given artifact to the given resource on the registry.
    `void` | GovernanceArtifactManager.`setContent(org.wso2.carbon.registry.core.Resource resource, GovernanceArtifact artifact)` Sets content of the given artifact to the given resource on the registry.
    `void` | GovernanceArtifactManager.`updateGovernanceArtifact(GovernanceArtifact artifact)` Updates the given artifact on the registry.

  - ### Uses of GovernanceException in org.wso2.carbon.governance.api.common.dataobjects

    Methods in org.wso2.carbon.governance.api.common.dataobjects that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | GovernanceArtifact.`addAssociation(String associationType, GovernanceArtifact attachedToArtifact)`
    `void` | GovernanceArtifactImpl.`addAssociation(String associationType, GovernanceArtifact attachedToArtifact)`
    `void` | GovernanceArtifact.`addAssociation(String associationType, String artifactId)`
    `void` | GovernanceArtifactImpl.`addAssociation(String associationType, String artifactId)`
    `void` | GovernanceArtifact.`addAttribute(String key, String value)` Adding an attribute to the artifact.
    `void` | GovernanceArtifactImpl.`addAttribute(String key, String value)` Adding an attribute to the artifact.
    `void` | GovernanceArtifact.`addBidirectionalAssociation(String forwardType, String backwardType, GovernanceArtifact attachedToArtifact)`
    `void` | GovernanceArtifactImpl.`addBidirectionalAssociation(String forwardType, String backwardType, GovernanceArtifact attachedToArtifact)`
    `void` | GovernanceArtifact.`addTag(String tag)`
    `void` | GovernanceArtifactImpl.`addTag(String tag)`
    `void` | GovernanceArtifact.`addTags(List<String> tags)`
    `void` | GovernanceArtifactImpl.`addTags(List<String> tags)`
    `void` | GovernanceArtifactImpl.`associateRegistry(org.wso2.carbon.registry.core.Registry registry)` Associate a registry, this is mostly used by the artifact manager when creating the artifact.
    `void` | GovernanceArtifact.`attach(GovernanceArtifact attachedToArtifact)` Attach the current artifact to an another artifact.
    `void` | GovernanceArtifactImpl.`attach(GovernanceArtifact attachedToArtifact)` Attach the current artifact to an another artifact.
    `void` | GovernanceArtifact.`attach(String artifactId)`
    `void` | GovernanceArtifactImpl.`attach(String artifactId)`
    `void` | GovernanceArtifact.`attachLifecycle(String name)` Associates the named lifecycle with the artifact
    `void` | GovernanceArtifactImpl.`attachLifecycle(String name)` Associates the named lifecycle with the artifact
    `void` | GovernanceArtifact.`checkLCItem(int order, String aspectName)` Check the checklist item
    `void` | GovernanceArtifactImpl.`checkLCItem(int order, String aspectName)` Check the checklist item
    `protected void` | GovernanceArtifactImpl.`checkRegistryResourceAssociation()` Validate the resource is associated with a registry
    `static GovernanceArtifactImpl` | GovernanceArtifactImpl.`create(org.wso2.carbon.registry.core.Registry registry, String artifactId)`
    `static GovernanceArtifactImpl` | GovernanceArtifactImpl.`create(org.wso2.carbon.registry.core.Registry registry, String artifactId, List<String> uniqueAttributes)`
    `static GovernanceArtifactImpl` | GovernanceArtifactImpl.`create(org.wso2.carbon.registry.core.Registry registry, String artifactId, org.apache.axiom.om.OMElement content)`
    `static GovernanceArtifactImpl` | GovernanceArtifactImpl.`create(org.wso2.carbon.registry.core.Registry registry, String artifactId, org.apache.axiom.om.OMElement content, List<String> uniqueAttributes)`
    `void` | GovernanceArtifactImpl.`createVersion()` Create a version of the artifact.
    `void` | GovernanceArtifact.`detach(String artifactId)` Detach the current artifact from the provided artifact.
    `void` | GovernanceArtifactImpl.`detach(String artifactId)` Detach the current artifact from the provided artifact.
    `void` | GovernanceArtifactImpl.`detachLifecycle(String lifecycleName)` De-associate lifecycle associated with the artifact
    `String[]` | GovernanceArtifact.`getAllCheckListItemNames(String aspectName)` Retrieve name set of the checklist items
    `String[]` | GovernanceArtifactImpl.`getAllCheckListItemNames(String aspectName)` Retrieve name set of the checklist items
    `String[]` | GovernanceArtifact.`getAllLifecycleActions(String lifeCycleName)` Get all lifecycle actions for the current state of the lifecycle
    `String[]` | GovernanceArtifactImpl.`getAllLifecycleActions(String lifeCycleName)` Get all lifecycle actions for the current state of the lifecycle
    `String[]` | GovernanceArtifact.`getAllVotingItems()` Retrieve action set which need votes
    `String[]` | GovernanceArtifactImpl.`getAllVotingItems()` Retrieve action set which need votes.
    `String[]` | GovernanceArtifact.`getAllVotingItems(String aspectName)` Retrieve action set which need votes
    `String[]` | GovernanceArtifactImpl.`getAllVotingItems(String aspectName)` Retrieve action set which need votes.
    `Map<String,List<String>>` | GovernanceArtifact.`getAssociatedArtifactIds()`
    `Map<String,List<String>>` | GovernanceArtifactImpl.`getAssociatedArtifactIds()`
    `Map<String,List<GovernanceArtifact>>` | GovernanceArtifact.`getAssociations()`
    `Map<String,List<GovernanceArtifact>>` | GovernanceArtifactImpl.`getAssociations()`
    `String` | GovernanceArtifact.`getAttribute(String key)` Returns the attribute of a given key.
    `String` | GovernanceArtifactImpl.`getAttribute(String key)` Returns the attribute of a given key.
    `String[]` | GovernanceArtifact.`getAttributeKeys()` Returns the available attribute keys
    `String[]` | GovernanceArtifactImpl.`getAttributeKeys()` Returns the available attribute keys
    `String[]` | GovernanceArtifact.`getAttributes(String key)` Returns the attribute values for a key.
    `String[]` | GovernanceArtifactImpl.`getAttributes(String key)` Returns the attribute values for a key.
    `Map<String,String>` | GovernanceArtifact.`getCurrentStateDuration(String artifactID, String lcName)` This method is used to get a lifecycle's current state duration information.
    `Map<String,String>` | GovernanceArtifactImpl.`getCurrentStateDuration(String artifactID, String lcName)` This method is used to get a lifecycle's current state duration information.
    `GovernanceArtifact[]` | GovernanceArtifact.`getDependencies()` Get dependencies of an artifacts.
    `GovernanceArtifact[]` | GovernanceArtifactImpl.`getDependencies()` Get dependencies of an artifacts.
    `GovernanceArtifact[]` | GovernanceArtifact.`getDependents()` Get dependents of an artifact.
    `GovernanceArtifact[]` | GovernanceArtifactImpl.`getDependents()` Get dependents of an artifact.
    `String` | GovernanceArtifact.`getLifecycleName()` Returns the name of the default lifecycle associated with this artifact.
    `String` | GovernanceArtifactImpl.`getLifecycleName()` Returns the name of the lifecycle associated with this artifact.
    `String[]` | GovernanceArtifact.`getLifecycleNames()` Returns the names of the lifecycle associated with this artifact.
    `String[]` | GovernanceArtifactImpl.`getLifecycleNames()` Returns the name of the lifecycle associated with this artifact.
    `String` | GovernanceArtifact.`getLifecycleState()` Returns the state of the default lifecycle associated with this artifact.
    `String` | GovernanceArtifactImpl.`getLifecycleState()` Returns the state of the lifecycle associated with this artifact.
    `String` | GovernanceArtifact.`getLifecycleState(String lifeCycleName)` Returns the state of the lifecycle associated with this artifact.
    `String` | GovernanceArtifactImpl.`getLifecycleState(String lifeCycleName)` Returns the state of the lifecycle associated with this artifact.
    `String` | GovernanceArtifact.`getPath()` Returns the path of the artifact, need to save the artifact before getting the path.
    `String` | GovernanceArtifactImpl.`getPath()` Returns the path of the artifact, need to save the artifact before getting the path.
    `String[]` | GovernanceArtifact.`getPropertyKeys()` Returns the available attribute keys
    `String[]` | GovernanceArtifactImpl.`getPropertyKeys()` Returns the available attribute keys
    `void` | GovernanceArtifact.`invokeAction(String action, Map<String,String> parameters, String aspectName)` Promote the artifact to the next state of the lifecycle
    `void` | GovernanceArtifactImpl.`invokeAction(String action, Map<String,String> parameters, String aspectName)` Invoke lifecycle action
    `void` | GovernanceArtifact.`invokeAction(String action, String aspectName)` Promote the artifact to the next state of the lifecycle
    `void` | GovernanceArtifactImpl.`invokeAction(String action, String aspectName)` Invoke lifecycle action
    `boolean` | GovernanceArtifact.`isLCItemChecked(int order, String aspectName)` Check whether the given ordered lifecycle checklist item is checked or not
    `boolean` | GovernanceArtifactImpl.`isLCItemChecked(int order, String aspectName)` Check whether the given ordered lifecycle checklist item is checked or not
    `boolean` | GovernanceArtifact.`isVoted(int order)` Check whether the current user voted for given order event
    `boolean` | GovernanceArtifactImpl.`isVoted(int order)` Check whether the current user voted for given order event.
    `boolean` | GovernanceArtifact.`isVoted(int order, String aspectName)` Check whether the current user voted for given order event
    `boolean` | GovernanceArtifactImpl.`isVoted(int order, String aspectName)` Check whether the current user voted for given order event
    `List<String>` | GovernanceArtifact.`listTags()`
    `List<String>` | GovernanceArtifactImpl.`listTags()`
    `void` | GovernanceArtifact.`removeAssociation(String artifactId)`
    `void` | GovernanceArtifactImpl.`removeAssociation(String artifactId)`
    `void` | GovernanceArtifact.`removeAssociation(String associationType, String artifactId)`
    `void` | GovernanceArtifactImpl.`removeAssociation(String associationType, String artifactId)`
    `void` | GovernanceArtifact.`removeAttribute(String key)` Remove attribute with the given key.
    `void` | GovernanceArtifactImpl.`removeAttribute(String key)` Remove attribute with the given key.
    `void` | GovernanceArtifact.`removeTag(String tag)`
    `void` | GovernanceArtifactImpl.`removeTag(String tag)`
    `void` | GovernanceArtifact.`removeTags(List<String> tags)`
    `void` | GovernanceArtifactImpl.`removeTags(List<String> tags)`
    `void` | GovernanceArtifact.`setAttribute(String key, String newValue)` Set/Update an attribute with a single value.
    `void` | GovernanceArtifactImpl.`setAttribute(String key, String newValue)` Set/Update an attribute with a single value.
    `void` | GovernanceArtifact.`setAttributes(String key, String[] newValues)` Set/Update an attribute with multiple values.
    `void` | GovernanceArtifactImpl.`setAttributes(String key, String[] newValues)` Set/Update an attribute with multiple values.
    `void` | GovernanceArtifact.`setQName(QName qName)` Set the QName of the artifact.
    `void` | GovernanceArtifact.`uncheckLCItem(int order, String aspectName)` Un-check the checklist item
    `void` | GovernanceArtifactImpl.`uncheckLCItem(int order, String aspectName)` Un-check the checklist item
    `void` | GovernanceArtifact.`unvote(int order)` Unvote for an action
    `void` | GovernanceArtifactImpl.`unvote(int order)` Unvote for an action.
    `void` | GovernanceArtifact.`unvote(int order, String aspectName)` Unvote for an action
    `void` | GovernanceArtifactImpl.`unvote(int order, String aspectName)` Unvote for an action
    `void` | GovernanceArtifactImpl.`updatePath()` update the path after moving the resource.
    `void` | GovernanceArtifactImpl.`updatePath(String artifactId)` update the path after moving the resource.
    `void` | GovernanceArtifact.`vote(int order)` Vote for an action
    `void` | GovernanceArtifactImpl.`vote(int order)` Vote for an action.
    `void` | GovernanceArtifact.`vote(int order, String aspectName)` Vote for an action
    `void` | GovernanceArtifactImpl.`vote(int order, String aspectName)` Vote for an action.

    Constructors in org.wso2.carbon.governance.api.common.dataobjects that throw GovernanceException
    Constructor and Description
    `GovernanceArtifactImpl(String id, org.apache.axiom.om.OMElement contentElement)` Constructor accepting resource identifier and the XML content.
    `GovernanceArtifactImpl(String id, org.apache.axiom.om.OMElement contentElement, List<String> uniqueAttributes)`

  - ### Uses of GovernanceException in org.wso2.carbon.governance.api.endpoints

    Methods in org.wso2.carbon.governance.api.endpoints that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | EndpointManager.`addEndpoint(Endpoint endpoint)` Adds the given endpoint artifact to the registry.
    `Endpoint[]` | EndpointManager.`getAllEndpoints()` Finds all Endpoint artifacts on the registry.
    `Endpoint` | EndpointManager.`getEndpoint(String endpointId)` Fetches the given endpoint artifact on the registry.
    `Endpoint` | EndpointManager.`getEndpointByUrl(String url)` Finds the endpoint artifact that matches the given URL.
    `Endpoint` | EndpointManager.`newEndpoint(String url)` Creates a new endpoint artifact from the given URL.
    `void` | EndpointManager.`removeEndpoint(String endpointId)` Removes the given endpoint artifact from the registry.
    `void` | EndpointManager.`setContent(Endpoint endpoint, org.wso2.carbon.registry.core.Resource endpointResource)` Sets content of the given endpoint artifact to the given resource on the registry.
    `void` | EndpointManager.`updateEndpoint(Endpoint endpoint)` Updates the given endpoint artifact on the registry.

  - ### Uses of GovernanceException in org.wso2.carbon.governance.api.endpoints.dataobjects

    Methods in org.wso2.carbon.governance.api.endpoints.dataobjects that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `org.apache.axiom.om.OMElement` | EndpointImpl.`buildOMElement(String content)`
    `void` | EndpointImpl.`loadEndpointDetails()` Method to load the endpoint details into this artifact.
    `void` | EndpointImpl.`setQName(QName qName)`

    Constructors in org.wso2.carbon.governance.api.endpoints.dataobjects that throw GovernanceException
    Constructor and Description
    `EndpointImpl(String id, org.wso2.carbon.registry.core.Registry registry)` Constructor accepting resource path, identifier and a registry instance.

  - ### Uses of GovernanceException in org.wso2.carbon.governance.api.generic

    Methods in org.wso2.carbon.governance.api.generic that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | GenericArtifactManager.`addGenericArtifact(GenericArtifact artifact)` Adds the given artifact to the registry.
    `GenericArtifact[]` | GenericArtifactManager.`findGenericArtifacts(GenericArtifactFilter criteria)` Finds all artifacts matching the given filter criteria.
    `GenericArtifact[]` | GenericArtifactManager.`findGenericArtifacts(Map<String,List<String>> criteria)` Finds all artifacts matching the given filter criteria.
    `GenericArtifact[]` | GenericArtifactManager.`findGovernanceArtifacts(String query)` Finds and returns GenericArtifact instances matching the search query
    `String[]` | GenericArtifactManager.`getAllGenericArtifactIds()` Finds all identifiers of the artifacts on the registry.
    `GenericArtifact[]` | GenericArtifactManager.`getAllGenericArtifacts()` Finds all artifacts on the registry.
    `GenericArtifact[]` | GenericArtifactManager.`getAllGenericArtifactsByLifecycle(String lcName)` Retrieve all the generic artifacts which associated with the given lifecycle
    `GenericArtifact[]` | GenericArtifactManager.`getAllGenericArtifactsByLifecycleStatus(String lcName, String lcState)` Retrieve all the generic artifacts which associated with the given lifecycle in the given lifecycle state
    `GenericArtifact` | GenericArtifactManager.`getGenericArtifact(String artifactId)` Fetches the given artifact on the registry.
    `org.wso2.carbon.registry.common.TermData[]` | GenericArtifactManager.`getTermData(Map<String,List<String>> criteria, String facetField, boolean authRequired)` Find all possible terms and its count for the given facet field and query criteria
    `boolean` | GenericArtifactManager.`isExists(GovernanceArtifact artifact)` Check whether GovernanceArtifact is exists in the Registry without loading whole artifact into memory.
    `boolean` | GenericArtifactFilter.`matches(GenericArtifact artifact)` Whether the given artifact matches the expected filter criteria.
    `GenericArtifact` | GenericArtifactManager.`newGovernanceArtifact(org.apache.axiom.om.OMElement content)` Creates a new artifact from the given content.
    `GenericArtifact` | GenericArtifactManager.`newGovernanceArtifact(QName qName)` Creates a new artifact from the given qualified name.
    `GenericArtifact` | GenericArtifactManager.`newGovernanceArtifact(QName qName, byte[] content)` Creates a new artifact from the given qualified name.
    `GenericArtifact` | GenericArtifactManager.`newGovernanceArtifact(String omContent)` Creates a new artifact from the given string content.
    `void` | GenericArtifactManager.`removeGenericArtifact(GenericArtifact artifact)`
    `void` | GenericArtifactManager.`removeGenericArtifact(String artifactId)` Removes the given artifact from the registry.
    `void` | GenericArtifactManager.`setContent(org.wso2.carbon.registry.core.Resource resource, GovernanceArtifact artifact)`
    `void` | GenericArtifactManager.`updateGenericArtifact(GenericArtifact artifact)` Updates the given artifact on the registry.

  - ### Uses of GovernanceException in org.wso2.carbon.governance.api.generic.dataobjects

    Methods in org.wso2.carbon.governance.api.generic.dataobjects that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | GenericArtifactImpl.`loadDetails()` Method to load the details into this artifact.
    `GenericArtifact` | DetachedGenericArtifactImpl.`makeRegistryAware(GenericArtifactManager artifactManager)`
    `GenericArtifact` | DetachedGenericArtifact.`makeRegistryAware(GenericArtifactManager artifactManager)`

    Constructors in org.wso2.carbon.governance.api.generic.dataobjects that throw GovernanceException
    Constructor and Description
    `GenericArtifactImpl(String id, org.apache.axiom.om.OMElement artifactContentElement, String artifactNameAttribute, String artifactNamespaceAttribute, String artifactElementNamespace, String mediaType)` Constructor accepting resource identifier and the artifact content.
    `GenericArtifactImpl(String id, org.wso2.carbon.registry.core.Registry registry)` Constructor accepting resource identifier and the artifact content.

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

    Methods in org.wso2.carbon.governance.api.policies that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | PolicyManager.`addPolicy(Policy policy)` Adds the given policy artifact to the registry.
    `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.
    `boolean` | PolicyFilter.`matches(Policy policy)` Whether the given policy artifact matches the expected filter criteria.
    `Policy` | PolicyManager.`newPolicy(String url)` Creates a new policy artifact from the given URL.
    `void` | PolicyManager.`removePolicy(String policyId)` Removes the given policy artifact from the registry.
    `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 GovernanceException in org.wso2.carbon.governance.api.policies.dataobjects

    Methods in org.wso2.carbon.governance.api.policies.dataobjects that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | PolicyImpl.`loadPolicyDetails()` Method to load the policy details into this artifact.
    `void` | PolicyImpl.`setQName(QName qName)` Method to set the qualified name of this service artifact.

    Constructors in org.wso2.carbon.governance.api.policies.dataobjects that throw GovernanceException
    Constructor and Description
    `PolicyImpl(String id, org.wso2.carbon.registry.core.Registry registry)` Constructor accepting resource path, identifier and a registry instance.

  - ### Uses of GovernanceException in org.wso2.carbon.governance.api.schema

    Methods in org.wso2.carbon.governance.api.schema that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | SchemaManager.`addSchema(Schema schema)` Adds the given schema artifact to the registry.
    `Schema[]` | SchemaManager.`findSchemas(SchemaFilter criteria)` Finds all schema artifacts matching the given filter criteria.
    `Schema[]` | SchemaManager.`getAllSchemas()` Finds all schema artifacts on the registry.
    `Schema` | SchemaManager.`getSchema(String schemaId)` Fetches the given schema artifact on the registry.
    `boolean` | SchemaFilter.`matches(Schema schema)` Whether the given schema artifact matches the expected filter criteria.
    `Schema` | SchemaManager.`newSchema(String url)` Creates a new schema artifact from the given URL.
    `void` | SchemaManager.`removeSchema(String schemaId)` Removes the given schema artifact from the registry.
    `protected void` | SchemaManager.`setContent(Schema schema, org.wso2.carbon.registry.core.Resource schemaResource)` Sets content of the given schema artifact to the given resource on the registry.
    `void` | SchemaManager.`updateSchema(Schema schema)` Updates the given schema artifact on the registry.

  - ### Uses of GovernanceException in org.wso2.carbon.governance.api.schema.dataobjects

    Methods in org.wso2.carbon.governance.api.schema.dataobjects that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | SchemaImpl.`loadSchemaDetails()` Method to load the schema details into this artifact.
    `void` | SchemaImpl.`setQName(QName qName)` Method to set the qualified name of this service artifact.

    Constructors in org.wso2.carbon.governance.api.schema.dataobjects that throw GovernanceException
    Constructor and Description
    `SchemaImpl(String id, org.wso2.carbon.registry.core.Registry registry)` Constructor accepting resource path, identifier and a registry instance.

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

    Methods in org.wso2.carbon.governance.api.services that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | ServiceManager.`addService(Service service)` Adds the given service artifact to the registry.
    `Service[]` | ServiceManager.`findServices(ServiceFilter criteria)` Finds all service artifacts matching the given filter criteria.
    `String[]` | ServiceManager.`getAllServiceIds()` Finds all identifiers of the service artifacts on the registry.
    `String[]` | ServiceManager.`getAllServicePaths()` Finds all the service path and used to list services
    `Service[]` | ServiceManager.`getAllServices()` Finds all service artifacts on the registry.
    `Service[]` | ServiceManager.`getAllServicesByLifecycle(String lcName)` Retrieve all Services which associated with the given lifecycle
    `Service[]` | ServiceManager.`getAllServicesByLifecycleStatus(String lcName, String lcState)` Retrieve all Services which associated with the given lifecycle in the given lifecycle state
    `Service` | ServiceManager.`getService(String serviceId)` Fetches the given service artifact on the registry.
    `boolean` | ServiceFilter.`matches(Service service)` Whether the given service artifact matches the expected filter criteria.
    `Service` | ServiceManager.`newService(org.apache.axiom.om.OMElement content)` Creates a new service artifact from the given content.
    `Service` | ServiceManager.`newService(QName qName)` Creates a new service artifact from the given qualified name.
    `void` | ServiceManager.`removeService(String serviceId)` Removes the given service artifact from the registry.
    `void` | ServiceManager.`updateService(Service service)` Updates the given service artifact on the registry.

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

    Methods in org.wso2.carbon.governance.api.services.dataobjects that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | ServiceImpl.`activate()` Deprecated. since active functionality is no longer used.
    `void` | Service.`activate()` Deprecated. since active functionality is no longer used.
    `void` | ServiceImpl.`attachEndpoint(Endpoint endpoint)` Attach an endpoint artifact to a service artifact.
    `void` | Service.`attachEndpoint(Endpoint endpoint)` Attach an endpoint artifact to a service artifact.
    `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.
    `void` | ServiceImpl.`attachSchema(Schema schema)` Attach a schema artifact to a service artifact.
    `void` | Service.`attachSchema(Schema schema)` Attach a schema artifact to a service artifact.
    `void` | ServiceImpl.`attachWSDL(Wsdl wsdl)` Attach a WSDL artifact to a service artifact.
    `void` | Service.`attachWSDL(Wsdl wsdl)` Attach a WSDL artifact to a service artifact.
    `void` | ServiceImpl.`deactivate()` Deprecated. since active functionality is no longer used.
    `void` | Service.`deactivate()` Deprecated. since active functionality is no longer used.
    `void` | ServiceImpl.`detachEndpoint(String endpointId)` Detach an endpoint artifact from a service artifact.
    `void` | Service.`detachEndpoint(String endpointId)` Detach an endpoint artifact from a service artifact.
    `void` | ServiceImpl.`detachPolicy(String policyId)` Detach a policy artifact from a service artifact.
    `void` | Service.`detachPolicy(String policyId)` Detach a policy artifact from a service artifact.
    `void` | ServiceImpl.`detachSchema(String schemaId)` Detach a schema artifact from a service artifact.
    `void` | Service.`detachSchema(String schemaId)` Detach a schema artifact from a service artifact.
    `void` | ServiceImpl.`detachWSDL(String wsdlId)` Detach a WSDL artifact from a service artifact.
    `void` | Service.`detachWSDL(String wsdlId)` Detach a WSDL artifact from a service artifact.
    `Endpoint[]` | ServiceImpl.`getAttachedEndpoints()` Method to retrieve all endpoints attached to this service artifact.
    `Endpoint[]` | Service.`getAttachedEndpoints()` Method to retrieve all endpoints attached to this service artifact.
    `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.
    `Schema[]` | ServiceImpl.`getAttachedSchemas()` Method to retrieve all schemas attached to this service artifact.
    `Schema[]` | Service.`getAttachedSchemas()` Method to retrieve all schemas attached to this service artifact.
    `Wsdl[]` | ServiceImpl.`getAttachedWsdls()` Method to retrieve all WSDLs attached to this service artifact.
    `Wsdl[]` | Service.`getAttachedWsdls()` Method to retrieve all WSDLs attached to this service artifact.
    `boolean` | ServiceImpl.`isActive()` Deprecated. since active functionality is no longer used.
    `boolean` | Service.`isActive()` Deprecated. since active functionality is no longer used.
    `void` | ServiceImpl.`setActive(boolean isActive)` Deprecated. since active functionality is no longer used.
    `void` | ServiceImpl.`setQName(QName qName)` Method to set the qualified name of this service artifact.

    Constructors in org.wso2.carbon.governance.api.services.dataobjects that throw GovernanceException
    Constructor and Description
    `ServiceImpl(String id, org.apache.axiom.om.OMElement serviceContentElement)` Constructor accepting resource identifier and the service content.

  - ### Uses of GovernanceException in org.wso2.carbon.governance.api.util

    Methods in org.wso2.carbon.governance.api.util that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `static void` | GovernanceUtils.`CheckMandatoryFields(org.wso2.carbon.registry.core.Registry registry, String elementString, GovernanceArtifact artifact)` Validates a given artifact to ensure all the mandatory fields are filled If a mandatory field is left empty this check method will throw an exception indicating field name to be filled.
    `static List<GovernanceArtifact>` | GovernanceUtils.`findGovernanceArtifacts(Map<String,List<String>> criteria, org.wso2.carbon.registry.core.Registry registry, String mediaType)` Returns a list of governance artifacts found by searching indexes.
    `static List<GovernanceArtifact>` | GovernanceUtils.`findGovernanceArtifacts(String criteria, org.wso2.carbon.registry.core.Registry registry, String mediaType)`
    `static List<GovernanceArtifact>` | GovernanceUtils.`findGovernanceArtifacts(String criteria, org.wso2.carbon.registry.core.Registry registry, String mediaType, boolean hasOneProperty)`
    `static ApproveItemBean[]` | GovernanceUtils.`getAllApproveItemBeans(String currentUser, org.wso2.carbon.registry.core.Resource artifactResource, GovernanceArtifact artifact, String artifactLC)` Extracts all ApproveItemBeans from the resource
    `static String[]` | GovernanceUtils.`getAllArtifactIds(org.wso2.carbon.registry.core.Registry registry)` Deprecated. Method to obtain all indexed governance artifact identifiers on the provided registry instance.
    `static String[]` | GovernanceUtils.`getAllArtifactPathsByLifecycle(org.wso2.carbon.registry.core.Registry registry, String lcName, String mediaType)` Retrieve all the governance artifact paths which associated with the given lifecycle
    `static String[]` | GovernanceUtils.`getAllArtifactPathsByLifecycleState(org.wso2.carbon.registry.core.Registry registry, String lcName, String lcState, String mediaType)` Retrieve all the governance artifact paths which associated with the given lifecycle in the given lifecycle state
    `static GovernanceArtifact[]` | GovernanceUtils.`getAllArtifacts(org.wso2.carbon.registry.core.Registry registry)` Deprecated. Method to obtain all indexed governance artifacts on the provided registry instance.
    `static CheckListItemBean[]` | GovernanceUtils.`getAllCheckListItemBeans(org.wso2.carbon.registry.core.Resource artifactResource, GovernanceArtifact artifact, String artifactLC)` Extracts all CheckListItemBeans from the resource and update the lifecycle name and state of the artifact
    `static String` | GovernanceUtils.`getArtifactPath(org.wso2.carbon.registry.core.Registry registry, String artifactId)` Method to obtain the artifact path of a governance artifact on the registry.
    `static String` | GovernanceUtils.`getDirectArtifactPath(org.wso2.carbon.registry.core.Registry registry, String artifactId)` Method to obtain the artifact path of a governance artifact on the registry.
    `static String` | GovernanceUtils.`getPathFromPathExpression(String pathExpression, GovernanceArtifact artifact)` Method to convert the expression specified for storing the path with corresponding values where the artifact is stored.
    `static String` | GovernanceUtils.`getPathFromPathExpression(String pathExpression, GovernanceArtifact artifact, String storagePath)` Method to convert the expression specified for storing the path with corresponding values where the artifact is stored.
    `static String[]` | GovernanceUtils.`getPathsFromPathExpression(String pathExpression, GovernanceArtifact artifact)` Method to convert the expression specified for storing the path with corresponding values where the artifact is stored.
    `static String[]` | GovernanceUtils.`getResultPaths(org.wso2.carbon.registry.core.Registry registry, String mediaType)` Method to obtain a list of paths having resources of the given media type.
    `static List<org.wso2.carbon.registry.common.TermData>` | GovernanceUtils.`getTermDataList(Map<String,List<String>> criteria, String facetField, String mediaType, boolean authRequired)` Find all possible terms and its count for the given facet field and query criteria
    `static List<org.wso2.carbon.registry.common.TermData>` | GovernanceUtils.`getTermDataList(String criteria, String facetField, String mediaType, org.wso2.carbon.registry.core.Registry registry)` Find all possible terms and its count for the given facet field and query criteria
    `static List<String>` | GovernanceUtils.`getUniqueAttributesNames(org.wso2.carbon.registry.core.Registry registry, String mediaType)`
    `static boolean` | GovernanceUtils.`hasSamePath(String pathExpression, GovernanceArtifact newArtifact, GovernanceArtifact oldArtifact)` Method to compare the old and new artifact paths
    `static void` | GovernanceUtils.`removeArtifact(org.wso2.carbon.registry.core.Registry registry, String artifactId)` Method to remove a governance artifact from the registry.
    `static void` | GovernanceUtils.`removeArtifactFromPath(org.wso2.carbon.registry.core.Registry registry, String path)`
    `static GovernanceArtifact` | GovernanceUtils.`retrieveGovernanceArtifactById(org.wso2.carbon.registry.core.Registry registry, String artifactId)` Method to obtain a governance artifact on the registry.
    `static GovernanceArtifact` | GovernanceUtils.`retrieveGovernanceArtifactByPath(org.wso2.carbon.registry.core.Registry registry, String artifactPath)` Method to obtain a governance artifact on the registry by the artifact path.
    `static String` | GovernanceUtils.`serializeOMElement(org.apache.axiom.om.OMElement element)` Method to serialize an XML element into a string.

  - ### Uses of GovernanceException in org.wso2.carbon.governance.api.wsdls

    Methods in org.wso2.carbon.governance.api.wsdls that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | WsdlManager.`addWsdl(Wsdl wsdl)` Adds the given WSDL artifact to the registry.
    `Wsdl[]` | WsdlManager.`findWsdls(WsdlFilter criteria)` Finds all WSDL artifacts matching the given filter criteria.
    `Wsdl[]` | WsdlManager.`getAllWsdls()` Finds all WSDL artifacts on the registry.
    `Wsdl` | WsdlManager.`getWsdl(String wsdlId)` Fetches the given WSDL artifact on the registry.
    `boolean` | WsdlFilter.`matches(Wsdl wsdl)` Whether the given WSDL artifact matches the expected filter criteria.
    `Wsdl` | WsdlManager.`newWsdl(String url)` Adds a new WSDL artifact from the given URL.
    `void` | WsdlManager.`removeWsdl(String wsdlId)` Removes the given WSDL artifact from the registry.
    `protected void` | WsdlManager.`setContent(Wsdl wsdl, org.wso2.carbon.registry.core.Resource wsdlResource)` Sets content of the given WSDL artifact to the given resource on the registry.
    `void` | WsdlManager.`updateWsdl(Wsdl wsdl)` Updates the given WSDL artifact on the registry.

  - ### Uses of GovernanceException in org.wso2.carbon.governance.api.wsdls.dataobjects

    Methods in org.wso2.carbon.governance.api.wsdls.dataobjects that throw GovernanceException
    Modifier and Type | Method and Description
    --- | ---
    `void` | Wsdl.`attachEndpoint(Endpoint endpoint)` Attach an endpoint artifact to a WSDL artifact.
    `void` | WsdlImpl.`attachEndpoint(Endpoint endpoint)` Attach an endpoint artifact to a WSDL artifact.
    `void` | Wsdl.`attachSchema(Schema schema)` Attach a schema artifact to a WSDL artifact.
    `void` | WsdlImpl.`attachSchema(Schema schema)` Attach a schema artifact to a WSDL artifact.
    `void` | Wsdl.`detachEndpoint(String endpointId)` Detach an endpoint artifact from a WSDL artifact.
    `void` | WsdlImpl.`detachEndpoint(String endpointId)` Detach an endpoint artifact from a WSDL artifact.
    `void` | Wsdl.`detachSchema(String schemaId)` Detach a schema artifact from a WSDL artifact.
    `void` | WsdlImpl.`detachSchema(String schemaId)` Detach a schema artifact from a WSDL artifact.
    `Endpoint[]` | Wsdl.`getAttachedEndpoints()` Method to retrieve all endpoints attached to this WSDL artifact.
    `Endpoint[]` | WsdlImpl.`getAttachedEndpoints()` Method to retrieve all endpoints attached to this WSDL artifact.
    `Schema[]` | Wsdl.`getAttachedSchemas()` Method to retrieve all schemas attached to this WSDL artifact.
    `Schema[]` | WsdlImpl.`getAttachedSchemas()` Method to retrieve all schemas attached to this WSDL artifact.
    `void` | WsdlImpl.`loadWsdlDetails()` Method to load the WSDL details into this artifact.
    `void` | WsdlImpl.`setQName(QName qName)` Method to set the qualified name of this service artifact.

    Constructors in org.wso2.carbon.governance.api.wsdls.dataobjects that throw GovernanceException
    Constructor and Description
    `WsdlImpl(String id, org.wso2.carbon.registry.core.Registry registry)` Constructor accepting resource path, identifier and a registry instance.

Copyright © 2017 WSO2. All Rights Reserved.