ArtifactsBean
- a bean containing a list of artifacts on the repository.public interface IManageGenericArtifactService<ArtifactsBean>
Modifier and Type | Method and Description |
---|---|
String |
addArtifact(String key,
String payload,
String lifecycleAttribute)
Method to add an artifact to the repository.
|
String |
editArtifact(String path,
String key,
String payload,
String lifecycleAttribute)
Method to edit the artifacts.
|
String[] |
getAllLifeCycleState(String LCName)
Get all the states from the LC
|
String |
getArtifactContent(String path)
Method to obtain the content of an Artifact..
|
String |
getArtifactUIConfiguration(String key)
Method to obtain the UI configuration of an artifact..
|
ArtifactsBean |
listArtifacts(String key,
String criteria)
Method to list the artifacts to a defined criteria.
|
ArtifactsBean |
listArtifactsByName(String key,
String name)
Method to list the artifacts by name.
|
boolean |
setArtifactUIConfiguration(String key,
String content)
Method to set the UI configuration for an artifact..
|
String addArtifact(String key, String payload, String lifecycleAttribute) throws org.wso2.carbon.registry.core.exceptions.RegistryException
key
- the identifier of the artifact.payload
- the information payload of the artifact.lifecycleAttribute
- the name of the lifecycle attribute.Exception
- if the operation failed.org.wso2.carbon.registry.core.exceptions.RegistryException
ArtifactsBean listArtifacts(String key, String criteria)
key
- the identifier of the artifact.criteria
- the listing criteria.Exception
- if the operation failed.ArtifactsBean listArtifactsByName(String key, String name)
key
- the identifier of the artifact.name
- the artifact name.Exception
- if the operation failed.String editArtifact(String path, String key, String payload, String lifecycleAttribute) throws org.wso2.carbon.registry.core.exceptions.RegistryException
path
- the path of the artifact.key
- the identifier of the artifact.payload
- the information payload of the artifact.lifecycleAttribute
- the name of the lifecycle attribute.Exception
- if the operation failed.org.wso2.carbon.registry.core.exceptions.RegistryException
String getArtifactContent(String path) throws org.wso2.carbon.registry.core.exceptions.RegistryException
path
- the path of the artifact.Exception
- if the operation failed.org.wso2.carbon.registry.core.exceptions.RegistryException
String getArtifactUIConfiguration(String key) throws org.wso2.carbon.registry.core.exceptions.RegistryException
key
- the identifier of the artifact.Exception
- if the operation failed.org.wso2.carbon.registry.core.exceptions.RegistryException
boolean setArtifactUIConfiguration(String key, String content) throws org.wso2.carbon.registry.core.exceptions.RegistryException
key
- the identifier of the artifact.content
- the new content of the artifact.Exception
- if the operation failed.org.wso2.carbon.registry.core.exceptions.RegistryException
Copyright © 2023 WSO2. All rights reserved.