public class ServiceImpl extends GovernanceArtifactImpl implements Service
attributes, properties
Modifier | Constructor and Description |
---|---|
protected |
ServiceImpl(GovernanceArtifact service)
Copy constructor used for cloning.
|
|
ServiceImpl(String id,
org.apache.axiom.om.OMElement serviceContentElement)
Constructor accepting resource identifier and the service content.
|
|
ServiceImpl(String id,
QName qName)
Constructor accepting resource identifier and the qualified name.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Deprecated.
since active functionality is no longer used.
|
void |
attachEndpoint(Endpoint endpoint)
Attach an endpoint artifact to a service artifact.
|
void |
attachPolicy(Policy policy)
Attach a policy artifact to a service artifact.
|
void |
attachSchema(Schema schema)
Attach a schema artifact to a service artifact.
|
void |
attachWSDL(Wsdl wsdl)
Attach a WSDL artifact to a service artifact.
|
void |
deactivate()
Deprecated.
since active functionality is no longer used.
|
void |
detachEndpoint(String endpointId)
Detach an endpoint artifact from a service artifact.
|
void |
detachPolicy(String policyId)
Detach a policy artifact from a service artifact.
|
void |
detachSchema(String schemaId)
Detach a schema artifact from a service artifact.
|
void |
detachWSDL(String wsdlId)
Detach a WSDL artifact from a service artifact.
|
Endpoint[] |
getAttachedEndpoints()
Method to retrieve all endpoints attached to this service artifact.
|
Policy[] |
getAttachedPolicies()
Method to retrieve all policies attached to this service artifact.
|
Schema[] |
getAttachedSchemas()
Method to retrieve all schemas attached to this service artifact.
|
Wsdl[] |
getAttachedWsdls()
Method to retrieve all WSDLs attached to this service artifact.
|
QName |
getQName()
Returns the QName of the artifact.
|
boolean |
isActive()
Deprecated.
since active functionality is no longer used.
|
void |
setActive(boolean isActive)
Deprecated.
since active functionality is no longer used.
|
void |
setQName(QName qName)
Method to set the qualified name of this service artifact.
|
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, vote
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
protected ServiceImpl(GovernanceArtifact service)
service
- the object to be copied.public ServiceImpl(String id, QName qName)
id
- the resource identifier.qName
- the qualified name.public ServiceImpl(String id, org.apache.axiom.om.OMElement serviceContentElement) throws GovernanceException
id
- the resource identifier.serviceContentElement
- an XML element containing the service content.GovernanceException
- if the construction fails.public QName getQName()
GovernanceArtifact
getQName
in interface GovernanceArtifact
public void setQName(QName qName) throws GovernanceException
setQName
in interface GovernanceArtifact
qName
- the qualified name.GovernanceException
- if the operation failed.public void activate() throws GovernanceException
activate
in interface Service
GovernanceException
- if the operation failed.public void deactivate() throws GovernanceException
deactivate
in interface Service
GovernanceException
- if the operation failed.@Deprecated public void setActive(boolean isActive) throws GovernanceException
isActive
- whether the service is active.GovernanceException
- if the operation failed.public boolean isActive() throws GovernanceException
isActive
in interface Service
GovernanceException
- if the operation failed.public void attachPolicy(Policy policy) throws GovernanceException
attachPolicy
in interface Service
policy
- the policy to attach.GovernanceException
- if the operation failed.public void detachPolicy(String policyId) throws GovernanceException
detachPolicy
in interface Service
policyId
- the identifier of the policy to detach.GovernanceException
- if the operation failed.public Policy[] getAttachedPolicies() throws GovernanceException
getAttachedPolicies
in interface Service
GovernanceException
- if the operation failed.public void attachSchema(Schema schema) throws GovernanceException
attachSchema
in interface Service
schema
- the schema to attach.GovernanceException
- if the operation failed.public void detachSchema(String schemaId) throws GovernanceException
detachSchema
in interface Service
schemaId
- the identifier of the schema to detach.GovernanceException
- if the operation failed.public Schema[] getAttachedSchemas() throws GovernanceException
getAttachedSchemas
in interface Service
GovernanceException
- if the operation failed.public void attachWSDL(Wsdl wsdl) throws GovernanceException
attachWSDL
in interface Service
wsdl
- the WSDL to attach.GovernanceException
- if the operation failed.public void detachWSDL(String wsdlId) throws GovernanceException
detachWSDL
in interface Service
wsdlId
- the identifier of the WSDL to detach.GovernanceException
- if the operation failed.public Wsdl[] getAttachedWsdls() throws GovernanceException
getAttachedWsdls
in interface Service
GovernanceException
- if the operation failed.public void attachEndpoint(Endpoint endpoint) throws GovernanceException
attachEndpoint
in interface Service
endpoint
- the endpoint to attach.GovernanceException
- if the operation failed.public void detachEndpoint(String endpointId) throws GovernanceException
detachEndpoint
in interface Service
endpointId
- the identifier of the endpoint to detach.GovernanceException
- if the operation failed.public Endpoint[] getAttachedEndpoints() throws GovernanceException
getAttachedEndpoints
in interface Service
GovernanceException
- if the operation failed.Copyright © 2018 WSO2. All Rights Reserved.