public class ContentProducerDataAccessObject extends Object
Modifier and Type | Field and Description |
---|---|
static WatchEvent.Kind<Path> |
ENTRY_CREATE |
static WatchEvent.Kind<Path> |
ENTRY_DELETE |
static WatchEvent.Kind<Path> |
ENTRY_MODIFY |
Constructor and Description |
---|
ContentProducerDataAccessObject(UuidGenerator uuidGenerator) |
Modifier and Type | Method and Description |
---|---|
void |
createContentItem(FileSystemPersistenceProvider fileIdMap,
ContentEndpoint endpoint,
File ingestedFile,
WatchEvent.Kind<Path> eventType,
String mimeType,
Map<String,Object> headers) |
WatchEvent.Kind<Path> |
getEventType(boolean storeRefKey,
org.apache.camel.Message in) |
File |
getFileUsingRefKey(boolean storeRefKey,
org.apache.camel.Message in) |
String |
getMimeType(ContentEndpoint endpoint,
File ingestedFile) |
protected HashMap<String,Serializable> |
getProperties(Map<String,Object> headers) |
protected void |
logIds(List<Metacard> metacards,
String action) |
public static final WatchEvent.Kind<Path> ENTRY_CREATE
public static final WatchEvent.Kind<Path> ENTRY_MODIFY
public static final WatchEvent.Kind<Path> ENTRY_DELETE
public ContentProducerDataAccessObject(UuidGenerator uuidGenerator)
public File getFileUsingRefKey(boolean storeRefKey, org.apache.camel.Message in) throws ContentComponentException
ContentComponentException
public WatchEvent.Kind<Path> getEventType(boolean storeRefKey, org.apache.camel.Message in)
public String getMimeType(ContentEndpoint endpoint, File ingestedFile) throws ContentComponentException
ContentComponentException
public void createContentItem(FileSystemPersistenceProvider fileIdMap, ContentEndpoint endpoint, File ingestedFile, WatchEvent.Kind<Path> eventType, String mimeType, Map<String,Object> headers) throws SourceUnavailableException, IngestException
This work is licensed under a Creative Commons Attribution 4.0 International License.