|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.governance.api.common.GovernanceArtifactManager
public class GovernanceArtifactManager
Base Manager Functionality which can be used by any Artifact Manager instance.
| Constructor Summary | |
|---|---|
GovernanceArtifactManager(org.wso2.carbon.registry.core.Registry registry,
String mediaType,
String artifactNameAttribute,
String artifactNamespaceAttribute,
String artifactElementRoot,
String artifactElementNamespace,
String pathExpression,
org.wso2.carbon.registry.core.Association[] relationshipDefinitions)
Constructor accepting an instance of the registry, and also details on the type of manager. |
|
| Method Summary | |
|---|---|
void |
addGovernanceArtifact(GovernanceArtifact artifact)
Adds the given artifact to the registry. |
GovernanceArtifact[] |
findGovernanceArtifacts(GovernanceArtifactFilter criteria)
Finds all artifacts matching the given filter criteria. |
String[] |
getAllGovernanceArtifactIds()
Finds all identifiers of the artifacts on the registry. |
GovernanceArtifact[] |
getAllGovernanceArtifacts()
Finds all artifacts of a given type on the registry. |
GovernanceArtifact |
getGovernanceArtifact(String artifactId)
Fetches the given artifact on the registry. |
GovernanceArtifact |
newGovernanceArtifact()
Creates a new artifact from the given qualified name. |
GovernanceArtifact |
newGovernanceArtifact(org.apache.axiom.om.OMElement content)
Creates a new artifact from the given content. |
void |
removeGovernanceArtifact(String artifactId)
Removes the given artifact from the registry. |
protected void |
setContent(GovernanceArtifact artifact,
org.wso2.carbon.registry.core.Resource resource)
Sets content of the given artifact to the given resource on the registry. |
void |
updateGovernanceArtifact(GovernanceArtifact artifact)
Updates the given artifact on the registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GovernanceArtifactManager(org.wso2.carbon.registry.core.Registry registry,
String mediaType,
String artifactNameAttribute,
String artifactNamespaceAttribute,
String artifactElementRoot,
String artifactElementNamespace,
String pathExpression,
org.wso2.carbon.registry.core.Association[] relationshipDefinitions)
registry - the instance of the registry.mediaType - the media type of resources being saved or fetched.artifactNameAttribute - the attribute that specifies the name of the artifact.artifactNamespaceAttribute - the attribute that specifies the namespace of the artifact.artifactElementRoot - the attribute that specifies the root artifact element.artifactElementNamespace - the attribute that specifies the artifact element's
namespace.pathExpression - the expression that can be used to compute where to store
the artifact.relationshipDefinitions - the relationship definitions for the types of associations
that will be created when the artifact gets updated.| Method Detail |
|---|
public GovernanceArtifact newGovernanceArtifact()
throws GovernanceException
GovernanceException - if the operation failed.
public GovernanceArtifact newGovernanceArtifact(org.apache.axiom.om.OMElement content)
throws GovernanceException
content - the artifact content.
GovernanceException - if the operation failed.
public void addGovernanceArtifact(GovernanceArtifact artifact)
throws GovernanceException
artifact - the artifact.
GovernanceException - if the operation failed.
public void updateGovernanceArtifact(GovernanceArtifact artifact)
throws GovernanceException
artifact - the artifact.
GovernanceException - if the operation failed.
public GovernanceArtifact getGovernanceArtifact(String artifactId)
throws GovernanceException
artifactId - the identifier of the artifact.
GovernanceException - if the operation failed.
public void removeGovernanceArtifact(String artifactId)
throws GovernanceException
artifactId - the identifier of the artifact.
GovernanceException - if the operation failed.
protected void setContent(GovernanceArtifact artifact,
org.wso2.carbon.registry.core.Resource resource)
throws GovernanceException
artifact - the artifact.resource - the content resource.
GovernanceException - if the operation failed.
public GovernanceArtifact[] findGovernanceArtifacts(GovernanceArtifactFilter criteria)
throws GovernanceException
criteria - the filter criteria to be matched.
GovernanceException - if the operation failed.
public GovernanceArtifact[] getAllGovernanceArtifacts()
throws GovernanceException
GovernanceException - if the operation failed.
public String[] getAllGovernanceArtifactIds()
throws GovernanceException
GovernanceException - if the operation failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||