Class GenericArtifactImpl

java.lang.Object
org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifactImpl
All Implemented Interfaces:
GovernanceArtifact, GenericArtifact
Direct Known Subclasses:
DetachedGenericArtifactImpl

public class GenericArtifactImpl extends GovernanceArtifactImpl implements GenericArtifact
Represents a generic governance artifact.
  • Constructor Details

    • GenericArtifactImpl

      protected GenericArtifactImpl(GovernanceArtifact artifact, String mediaType)
      Copy constructor used for cloning.
      Parameters:
      artifact - the object to be copied.
    • GenericArtifactImpl

      protected GenericArtifactImpl(GovernanceArtifact artifact, String mediaType, List<String> uniqueAttributes)
    • GenericArtifactImpl

      public GenericArtifactImpl(String id, QName qName, String mediaType)
      Constructor accepting resource identifier and the qualified name.
      Parameters:
      id - the resource identifier.
      qName - the qualified name.
    • GenericArtifactImpl

      public GenericArtifactImpl(String id, QName qName, String mediaType, List<String> uniqueAttributes)
    • GenericArtifactImpl

      public GenericArtifactImpl(QName qName, String mediaType)
    • GenericArtifactImpl

      public GenericArtifactImpl(QName qName, String mediaType, List<String> uniqueAttributes)
    • GenericArtifactImpl

      public GenericArtifactImpl(String id, org.apache.axiom.om.OMElement artifactContentElement, String artifactNameAttribute, String artifactNamespaceAttribute, String artifactElementNamespace, String mediaType) throws GovernanceException
      Constructor accepting resource identifier and the artifact content.
      Parameters:
      id - the resource identifier.
      artifactContentElement - an XML element containing the content.
      artifactNameAttribute - the attribute that specifies the name of the artifact.
      artifactNamespaceAttribute - the attribute that specifies the namespace of the artifact.
      artifactElementNamespace - the attribute that specifies the artifact element's namespace.
      Throws:
      GovernanceException - if the construction fails.
    • GenericArtifactImpl

      public GenericArtifactImpl(String id, org.wso2.carbon.registry.core.Registry registry) throws GovernanceException
      Constructor accepting resource identifier and the artifact content.
      Parameters:
      id - the resource identifier.
      registry - the registry instance to fetch artifact content.
      Throws:
      GovernanceException - if the construction fails.
  • Method Details