Class ServiceImpl
java.lang.Object
org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
org.wso2.carbon.governance.api.services.dataobjects.ServiceImpl
- All Implemented Interfaces:
GovernanceArtifact,Service
This represents a service artifact stored on the Registry. Service artifacts are created as a
result of adding a new service or uploading or importing a WSDL file into the registry.
-
Field Summary
Fields inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
attributes, properties -
Constructor Summary
ConstructorsModifierConstructorDescriptionServiceImpl(String id, QName qName) Constructor accepting resource identifier and the qualified name.ServiceImpl(String id, org.apache.axiom.om.OMElement serviceContentElement) Constructor accepting resource identifier and the service content.protectedServiceImpl(GovernanceArtifact service) Copy constructor used for cloning. -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Deprecated.since active functionality is no longer used.voidattachEndpoint(Endpoint endpoint) Attach an endpoint artifact to a service artifact.voidattachPolicy(Policy policy) Attach a policy artifact to a service artifact.voidattachSchema(Schema schema) Attach a schema artifact to a service artifact.voidattachWSDL(Wsdl wsdl) Attach a WSDL artifact to a service artifact.voidDeprecated.since active functionality is no longer used.voiddetachEndpoint(String endpointId) Detach an endpoint artifact from a service artifact.voiddetachPolicy(String policyId) Detach a policy artifact from a service artifact.voiddetachSchema(String schemaId) Detach a schema artifact from a service artifact.voiddetachWSDL(String wsdlId) Detach a WSDL artifact from a service artifact.Endpoint[]Method to retrieve all endpoints attached to this service artifact.Policy[]Method to retrieve all policies attached to this service artifact.Schema[]Method to retrieve all schemas attached to this service artifact.Wsdl[]Method to retrieve all WSDLs attached to this service artifact.getQName()Returns the QName of the artifact.booleanisActive()Deprecated.since active functionality is no longer used.voidsetActive(boolean isActive) Deprecated.since active functionality is no longer used.voidMethod to set the qualified name of this service artifact.Methods inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
addAssociation, addAssociation, addAttribute, addBidirectionalAssociation, addTag, addTags, associateRegistry, attach, attach, attachLifecycle, checkLCItem, checkRegistryResourceAssociation, compareTo, create, create, create, create, createVersion, detach, detachLifecycle, equals, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getAllVotingItems, getArtifactPath, getAssociatedArtifactIds, getAssociatedRegistry, getAssociations, getAttribute, getAttributeKeys, getAttributes, getCurrentStateDuration, getDependencies, getDependents, getId, getLcName, getLcState, getLifecycleName, getLifecycleNames, getLifecycleState, getLifecycleState, getMediaType, getPath, getPropertyKeys, getUniqueAttributes, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setArtifactPath, setAttribute, setAttributes, setId, setLcName, setLcState, setUniqueAttributes, toString, uncheckLCItem, uniqueTo, unvote, unvote, updatePath, updatePath, vote, voteMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setAttribute, setAttributes, setId, uncheckLCItem, uniqueTo, unvote, unvote, vote, vote
-
Constructor Details
-
ServiceImpl
Copy constructor used for cloning.- Parameters:
service- the object to be copied.
-
ServiceImpl
Constructor accepting resource identifier and the qualified name.- Parameters:
id- the resource identifier.qName- the qualified name.
-
ServiceImpl
public ServiceImpl(String id, org.apache.axiom.om.OMElement serviceContentElement) throws GovernanceException Constructor accepting resource identifier and the service content.- Parameters:
id- the resource identifier.serviceContentElement- an XML element containing the service content.- Throws:
GovernanceException- if the construction fails.
-
-
Method Details
-
getQName
Description copied from interface:GovernanceArtifactReturns the QName of the artifact.- Specified by:
getQNamein interfaceGovernanceArtifact- Returns:
- the QName of the artifact
-
setQName
Method to set the qualified name of this service artifact.- Specified by:
setQNamein interfaceGovernanceArtifact- Parameters:
qName- the qualified name.- Throws:
GovernanceException- if the operation failed.
-
activate
Deprecated.since active functionality is no longer used.Method to activate this service.- Specified by:
activatein interfaceService- Throws:
GovernanceException- if the operation failed.
-
deactivate
Deprecated.since active functionality is no longer used.Method to deactivate this service.- Specified by:
deactivatein interfaceService- Throws:
GovernanceException- if the operation failed.
-
setActive
Deprecated.since active functionality is no longer used.Method to set/unset the active status of this service.- Parameters:
isActive- whether the service is active.- Throws:
GovernanceException- if the operation failed.
-
isActive
Deprecated.since active functionality is no longer used.Method to obtain whether this service is active or not.- Specified by:
isActivein interfaceService- Returns:
- true if this service is active, and false if not.
- Throws:
GovernanceException- if the operation failed.
-
attachPolicy
Attach a policy artifact to a service artifact. Both the artifacts should be saved, before calling this method.- Specified by:
attachPolicyin interfaceService- 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.- Specified by:
detachPolicyin interfaceService- 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.- Specified by:
getAttachedPoliciesin interfaceService- 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.- Specified by:
attachSchemain interfaceService- 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.- Specified by:
detachSchemain interfaceService- 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.- Specified by:
getAttachedSchemasin interfaceService- 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.- Specified by:
attachWSDLin interfaceService- 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.- Specified by:
detachWSDLin interfaceService- 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.- Specified by:
getAttachedWsdlsin interfaceService- 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.- Specified by:
attachEndpointin interfaceService- 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.- Specified by:
detachEndpointin interfaceService- 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.- Specified by:
getAttachedEndpointsin interfaceService- Returns:
- all endpoints attached to this service artifact.
- Throws:
GovernanceException- if the operation failed.
-