Class ContentProducerDataAccessObject
java.lang.Object
ddf.camel.component.catalog.content.ContentProducerDataAccessObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WatchEvent.Kind<Path> static final WatchEvent.Kind<Path> static final WatchEvent.Kind<Path> -
Constructor Summary
ConstructorsConstructorDescriptionContentProducerDataAccessObject(org.codice.ddf.platform.util.uuidgenerator.UuidGenerator uuidGenerator) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateContentItem(FileSystemPersistenceProvider fileIdMap, ContentEndpoint endpoint, File ingestedFile, WatchEvent.Kind<Path> eventType, String mimeType, Map<String, Object> headers) getEventType(boolean storeRefKey, org.apache.camel.Message in) getFileUsingRefKey(boolean storeRefKey, org.apache.camel.Message in) getMimeType(ContentEndpoint endpoint, File ingestedFile) protected HashMap<String, Serializable> getProperties(Map<String, Object> headers) protected void
-
Field Details
-
ENTRY_CREATE
-
ENTRY_MODIFY
-
ENTRY_DELETE
-
-
Constructor Details
-
ContentProducerDataAccessObject
public ContentProducerDataAccessObject(org.codice.ddf.platform.util.uuidgenerator.UuidGenerator uuidGenerator)
-
-
Method Details
-
getFileUsingRefKey
public File getFileUsingRefKey(boolean storeRefKey, org.apache.camel.Message in) throws ContentComponentException - Throws:
ContentComponentException
-
getEventType
-
getMimeType
public String getMimeType(ContentEndpoint endpoint, File ingestedFile) throws ContentComponentException - Throws:
ContentComponentException
-
createContentItem
public void createContentItem(FileSystemPersistenceProvider fileIdMap, ContentEndpoint endpoint, File ingestedFile, WatchEvent.Kind<Path> eventType, String mimeType, Map<String, Object> headers) throws ddf.catalog.source.SourceUnavailableException, ddf.catalog.source.IngestException- Throws:
ddf.catalog.source.SourceUnavailableExceptionddf.catalog.source.IngestException
-
logIds
-
getProperties
-