T
- the entry typepublic interface DataServiceEntry<T extends Exportable & RelationalObject> extends Exportable, RelationalObject
Modifier and Type | Interface and Description |
---|---|
static class |
DataServiceEntry.PublishPolicy
Indicates how the entry should uploaded and/or deployed.
|
RelationalObject.Filter
Modifier and Type | Field and Description |
---|---|
static byte[] |
NO_CONTENT
Empty resource content.
|
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
default byte[] |
export(Repository.UnitOfWork transaction,
Properties properties) |
String |
getArchiveFolder() |
default DocumentType |
getDocumentType(Repository.UnitOfWork transaction) |
default String |
getEntryPath(Repository.UnitOfWork transaction) |
default DataServiceEntry.PublishPolicy |
getPublishPolicy(Repository.UnitOfWork transaction) |
T |
getReference(Repository.UnitOfWork transaction) |
default void |
setEntryPath(Repository.UnitOfWork transaction,
String newEntryPath) |
default void |
setPublishPolicy(Repository.UnitOfWork transaction,
DataServiceEntry.PublishPolicy newPublishPolicy) |
default void |
setReference(Repository.UnitOfWork transaction,
T reference) |
getName
getFilters, setFilters
accept, addChild, addDescriptor, getChild, getChild, getChildren, getChildrenOfType, getChildTypes, getDescriptor, getDescriptors, getIndex, getObjectFactory, getPrimaryType, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyFactory, getPropertyNames, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getTypeId, getTypeIdentifier, hasChild, hasChild, hasChildren, hasDescriptor, hasProperties, hasProperty, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType, setProperty
getAbsolutePath, getName, getParent, getRepository
String getArchiveFolder()
null
or empty if the resource
should be located at the archive root)default 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)
default DocumentType getDocumentType(Repository.UnitOfWork transaction) throws KException
getDocumentType
in interface Exportable
KException
Exportable.getDocumentType(org.komodo.spi.repository.Repository.UnitOfWork)
default String getEntryPath(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if an error occursdefault DataServiceEntry.PublishPolicy getPublishPolicy(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)null
)KException
- if an error occursT getReference(Repository.UnitOfWork transaction) throws KException
transaction
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)null
if none existsKException
- if an error occursdefault void setEntryPath(Repository.UnitOfWork transaction, String newEntryPath) throws KException
transaction
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)newEntryPath
- the new entry path (can be null
or empty)KException
- if an error occursdefault void setPublishPolicy(Repository.UnitOfWork transaction, DataServiceEntry.PublishPolicy newPublishPolicy) throws KException
transaction
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)newPublishPolicy
- the new publish policy (can be null
)KException
- if an error occursdefault void setReference(Repository.UnitOfWork transaction, T reference) throws KException
transaction
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)reference
- the referenced object or null
if removing an existing referenceKException
- if an error occursCopyright © 2013–2019. All rights reserved.