-
Method Summary
void
void
Attach an endpoint artifact to a service artifact.
void
Attach a policy artifact to a service artifact.
void
Attach a schema artifact to a service artifact.
void
Attach a WSDL artifact to a service artifact.
void
void
Detach an endpoint artifact from a service artifact.
void
Detach a policy artifact from a service artifact.
void
Detach a schema artifact from a service artifact.
void
Detach a WSDL artifact from a service artifact.
Method to retrieve all endpoints attached to this service artifact.
Method to retrieve all policies attached to this service artifact.
Method to retrieve all schemas attached to this service artifact.
Method to retrieve all WSDLs attached to this service artifact.
boolean
Methods inherited from interface org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
addAssociation, 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, getQName, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setAttribute, setAttributes, setId, setQName, uncheckLCItem, uniqueTo, unvote, unvote, vote, vote
-
Method Details
-
attachPolicy
Attach a policy artifact to a service artifact. Both the artifacts should be saved, before
calling this method.
- Parameters:
policy - the policy to attach.
- Throws:
GovernanceException - if the operation failed.
-
detachPolicy
Detach a policy artifact from a service artifact. Both the artifacts should be saved, before
calling this method.
- Parameters:
policyId - the identifier of the policy to detach.
- Throws:
GovernanceException - if the operation failed.
-
getAttachedPolicies
Method to retrieve all policies attached to this service artifact.
- Returns:
- all policies attached to this service artifact.
- Throws:
GovernanceException - if the operation failed.
-
attachSchema
Attach a schema artifact to a service artifact. Both the artifacts should be saved, before
calling this method.
- Parameters:
schema - the schema to attach.
- Throws:
GovernanceException - if the operation failed.
-
detachSchema
Detach a schema artifact from a service artifact. Both the artifacts should be saved, before
calling this method.
- Parameters:
schemaId - the identifier of the schema to detach.
- Throws:
GovernanceException - if the operation failed.
-
getAttachedSchemas
Method to retrieve all schemas attached to this service artifact.
- Returns:
- all schemas attached to this service artifact.
- Throws:
GovernanceException - if the operation failed.
-
attachWSDL
Attach a WSDL artifact to a service artifact. Both the artifacts should be saved, before
calling this method.
- Parameters:
wsdl - the WSDL to attach.
- Throws:
GovernanceException - if the operation failed.
-
detachWSDL
Detach a WSDL artifact from a service artifact. Both the artifacts should be saved, before
calling this method.
- Parameters:
wsdlId - the identifier of the WSDL to detach.
- Throws:
GovernanceException - if the operation failed.
-
getAttachedWsdls
Method to retrieve all WSDLs attached to this service artifact.
- Returns:
- all WSDLs attached to this service artifact.
- Throws:
GovernanceException - if the operation failed.
-
attachEndpoint
Attach an endpoint artifact to a service artifact. Both the artifacts should be saved, before
calling this method.
- Parameters:
endpoint - the endpoint to attach.
- Throws:
GovernanceException - if the operation failed.
-
detachEndpoint
Detach an endpoint artifact from a service artifact. Both the artifacts should be saved,
before calling this method.
- Parameters:
endpointId - the identifier of the endpoint to detach.
- Throws:
GovernanceException - if the operation failed.
-
getAttachedEndpoints
Method to retrieve all endpoints attached to this service artifact.
- Returns:
- all endpoints attached to this service artifact.
- Throws:
GovernanceException - if the operation failed.
-
activate
Deprecated.
Method to activate this service.
- Throws:
GovernanceException - if the operation failed.
-
deactivate
Deprecated.
Method to deactivate this service.
- Throws:
GovernanceException - if the operation failed.
-
isActive
Deprecated.
Method to obtain whether this service is active or not.
- Returns:
- true if this service is active, and false if not.
- Throws:
GovernanceException - if the operation failed.