public interface ICatalogDAO
Modifier and Type | Field and Description |
---|---|
static String |
ARTIFACT_NAME_FIELD |
static String |
REF_NAME_FIELD |
static String |
REF_VERSION_FIELD |
static String |
RESOURCES_INDEX |
static String |
TOSCA_ELEMENT_INDEX |
Modifier and Type | Method and Description |
---|---|
void |
addToIndicesMap(String typeName,
String indexName) |
void |
deleteAllArtifacts()
delete all artifacts
|
void |
deleteArtifact(String id)
Delete the given image.
|
fj.data.Either<ESArtifactData,ResourceUploadStatus> |
getArtifact(String id)
Get an artifact as a byte array based on the artifact id.
|
fj.data.Either<List<ESArtifactData>,ResourceUploadStatus> |
getArtifacts(String[] ids) |
void |
writeArtifact(ESArtifactData artifactData)
Save an artifact in the DAO layer.
|
static final String TOSCA_ELEMENT_INDEX
static final String RESOURCES_INDEX
static final String REF_NAME_FIELD
static final String REF_VERSION_FIELD
static final String ARTIFACT_NAME_FIELD
void writeArtifact(ESArtifactData artifactData) throws ResourceDAOException
imageData
- ResourceDAOException
fj.data.Either<ESArtifactData,ResourceUploadStatus> getArtifact(String id)
id
- The id of the artifact to read.id2
- fj.data.Either<List<ESArtifactData>,ResourceUploadStatus> getArtifacts(String[] ids)
void deleteArtifact(String id)
id
- Id of the image to delete.void deleteAllArtifacts()
Copyright © 2017. All rights reserved.