public class GenericArtifactImpl extends GovernanceArtifactImpl implements GenericArtifact
attributes, properties
Modifier | Constructor and Description |
---|---|
protected |
GenericArtifactImpl(GovernanceArtifact artifact,
String mediaType)
Copy constructor used for cloning.
|
protected |
GenericArtifactImpl(GovernanceArtifact artifact,
String mediaType,
List<String> uniqueAttributes) |
|
GenericArtifactImpl(QName qName,
String mediaType) |
|
GenericArtifactImpl(QName qName,
String mediaType,
List<String> uniqueAttributes) |
|
GenericArtifactImpl(String id,
org.apache.axiom.om.OMElement artifactContentElement,
String artifactNameAttribute,
String artifactNamespaceAttribute,
String artifactElementNamespace,
String mediaType)
Constructor accepting resource identifier and the artifact content.
|
|
GenericArtifactImpl(String id,
QName qName,
String mediaType)
Constructor accepting resource identifier and the qualified name.
|
|
GenericArtifactImpl(String id,
QName qName,
String mediaType,
List<String> uniqueAttributes) |
|
GenericArtifactImpl(String id,
org.wso2.carbon.registry.core.Registry registry)
Constructor accepting resource identifier and the artifact content.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent()
Method to obtain the content of this artifact.
|
String |
getMediaType()
Returns the media type of the artifact.
|
QName |
getQName()
Returns the QName of the artifact.
|
void |
loadDetails()
Method to load the details into this artifact.
|
void |
setContent(byte[] content)
Method to set the content of this artifact.
|
void |
setQName(QName qName)
Method to set the qualified name of this 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, 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, getPath, getPropertyKeys, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setAttribute, setAttributes, setId, uncheckLCItem, uniqueTo, unvote, unvote, vote, vote
protected GenericArtifactImpl(GovernanceArtifact artifact, String mediaType)
artifact
- the object to be copied.protected GenericArtifactImpl(GovernanceArtifact artifact, String mediaType, List<String> uniqueAttributes)
public GenericArtifactImpl(String id, QName qName, String mediaType)
id
- the resource identifier.qName
- the qualified name.public GenericArtifactImpl(String id, QName qName, String mediaType, List<String> uniqueAttributes)
public GenericArtifactImpl(QName qName, String mediaType, List<String> uniqueAttributes)
public GenericArtifactImpl(String id, org.apache.axiom.om.OMElement artifactContentElement, String artifactNameAttribute, String artifactNamespaceAttribute, String artifactElementNamespace, String mediaType) throws GovernanceException
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.GovernanceException
- if the construction fails.public GenericArtifactImpl(String id, org.wso2.carbon.registry.core.Registry registry) throws GovernanceException
id
- the resource identifier.registry
- the registry instance to fetch artifact content.GovernanceException
- if the construction fails.public byte[] getContent()
GenericArtifact
getContent
in interface GenericArtifact
public void setContent(byte[] content)
GenericArtifact
setContent
in interface GenericArtifact
content
- the element.public void loadDetails() throws GovernanceException
GovernanceException
- if the operation failed.public QName getQName()
GovernanceArtifact
getQName
in interface GovernanceArtifact
public String getMediaType()
GovernanceArtifact
getMediaType
in interface GovernanceArtifact
getMediaType
in interface GenericArtifact
getMediaType
in class GovernanceArtifactImpl
public void setQName(QName qName)
setQName
in interface GovernanceArtifact
qName
- the qualified name.GovernanceException
- if the operation failed.Copyright © 2023 WSO2. All Rights Reserved.