|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
org.wso2.carbon.governance.api.services.dataobjects.Service
public class 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.GovernanceArtifact |
|---|
attributes |
| Constructor Summary | |
|---|---|
protected |
Service(GovernanceArtifact service)
Copy constructor used for cloning. |
|
Service(String id,
org.apache.axiom.om.OMElement serviceContentElement)
Constructor accepting resource identifier and the service content. |
|
Service(String id,
QName qName)
Constructor accepting resource identifier and the qualified name. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact |
|---|
addAttribute, associateRegistry, attach, attachLifecycle, checkRegistryResourceAssociation, create, create, createVersion, detach, getAssociatedRegistry, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLifecycleName, getLifecycleState, getPath, removeAttribute, setAttribute, setAttributes, setId, updatePath, updatePath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Service(GovernanceArtifact service)
service - the object to be copied.
public Service(String id,
QName qName)
id - the resource identifier.qName - the qualified name.
public Service(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.| Method Detail |
|---|
public QName getQName()
GovernanceArtifact
getQName in class GovernanceArtifact
public void setQName(QName qName)
throws GovernanceException
qName - the qualified name.
GovernanceException - if the operation failed.
@Deprecated
public void activate()
throws GovernanceException
GovernanceException - if the operation failed.
@Deprecated
public void deactivate()
throws GovernanceException
GovernanceException - if the operation failed.
@Deprecated
public void setActive(boolean isActive)
throws GovernanceException
isActive - whether the service is active.
GovernanceException - if the operation failed.
@Deprecated
public boolean isActive()
throws GovernanceException
GovernanceException - if the operation failed.
public void attachPolicy(Policy policy)
throws GovernanceException
policy - the policy to attach.
GovernanceException - if the operation failed.
public void detachPolicy(String policyId)
throws GovernanceException
policyId - the identifier of the policy to detach.
GovernanceException - if the operation failed.
public Policy[] getAttachedPolicies()
throws GovernanceException
GovernanceException - if the operation failed.
public void attachSchema(Schema schema)
throws GovernanceException
schema - the schema to attach.
GovernanceException - if the operation failed.
public void detachSchema(String schemaId)
throws GovernanceException
schemaId - the identifier of the schema to detach.
GovernanceException - if the operation failed.
public Schema[] getAttachedSchemas()
throws GovernanceException
GovernanceException - if the operation failed.
public void attachWSDL(Wsdl wsdl)
throws GovernanceException
wsdl - the WSDL to attach.
GovernanceException - if the operation failed.
public void detachWSDL(String wsdlId)
throws GovernanceException
wsdlId - the identifier of the WSDL to detach.
GovernanceException - if the operation failed.
public Wsdl[] getAttachedWsdls()
throws GovernanceException
GovernanceException - if the operation failed.
public void attachEndpoint(Endpoint endpoint)
throws GovernanceException
endpoint - the endpoint to attach.
GovernanceException - if the operation failed.
public void detachEndpoint(String endpointId)
throws GovernanceException
endpointId - the identifier of the endpoint to detach.
GovernanceException - if the operation failed.
public Endpoint[] getAttachedEndpoints()
throws GovernanceException
GovernanceException - if the operation failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||