public class DataserviceManifest extends Object implements Exportable
Modifier and Type | Field and Description |
---|---|
protected static KLog |
LOGGER |
static String |
MANIFEST
The data service manifest archive entry path.
|
Constructor and Description |
---|
DataserviceManifest(Repository.UnitOfWork transaction,
Dataservice dataService) |
Modifier and Type | Method and Description |
---|---|
Document |
asDocument() |
byte[] |
export(Repository.UnitOfWork transaction,
Properties properties) |
DocumentType |
getDocumentType(Repository.UnitOfWork transaction) |
String |
getName(Repository.UnitOfWork transaction) |
public static final String MANIFEST
protected static final KLog LOGGER
public DataserviceManifest(Repository.UnitOfWork transaction, Dataservice dataService) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)dataService
- the data service whose manifest is being constructed (cannot be null
)KException
- if an error occurspublic String getName(Repository.UnitOfWork transaction) throws KException
getName
in interface Exportable
KException
public DocumentType getDocumentType(Repository.UnitOfWork transaction)
getDocumentType
in interface Exportable
public byte[] export(Repository.UnitOfWork transaction, Properties properties) throws KException
export
in interface Exportable
KException
Exportable.export(org.komodo.spi.repository.Repository.UnitOfWork, java.util.Properties)
public Document asDocument() throws KException
null
)KException
- if an error occursCopyright © 2013–2019. All rights reserved.