public abstract class MimeTypeDataWorker extends DataWorker
MimeTypeDataWorker.handled.myTextProperty.propertyName=myTextProperty
MimeTypeDataWorker.handled.myOtherTextProperty.propertyName=myOtherTextProperty
| Modifier and Type | Field and Description |
|---|---|
static String |
MULTI_VALUE_KEY |
| Modifier | Constructor and Description |
|---|---|
protected |
MimeTypeDataWorker(MimeTypeDataWorkerConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(InputStream in,
DataWorkerData data) |
protected abstract String |
getMimeType(InputStream in,
String fileName) |
protected Collection<PostMimeTypeWorker> |
getPostMimeTypeWorkers() |
boolean |
isHandled(Element element,
Property property) |
void |
prepare(DataWorkerPrepareData workerPrepareData) |
addVertexToWorkspaceIfNeeded, addVideoTranscriptAsTextPropertiesToMutation, applyTermMentionFilters, getAuthorizations, getConfiguration, getGraph, getGraphAuthorizationRepository, getGraphRepository, getSchemaRepository, getUser, getVisibilityTranslator, getWebQueueRepository, getWorkQueueRepository, getWorkspaceRepository, isConceptType, isDeleteHandled, isHiddenHandled, isLocalFileRequired, isTextProperty, isUnhiddenHandled, isVertex, pushChangedPropertiesOnWorkQueue, pushTextUpdated, pushVideoTranscriptTextPropertiesOnWorkQueue, refresh, setConfiguration, setGraph, setGraphAuthorizationRepository, setGraphRepository, setSchemaRepository, setVisibilityTranslator, setWebQueueRepository, setWorkQueueRepository, setWorkspaceRepository, verifypublic static final String MULTI_VALUE_KEY
@Inject protected MimeTypeDataWorker(MimeTypeDataWorkerConfiguration configuration)
public void prepare(DataWorkerPrepareData workerPrepareData) throws Exception
prepare in class DataWorkerExceptionprotected Collection<PostMimeTypeWorker> getPostMimeTypeWorkers()
public boolean isHandled(Element element, Property property)
isHandled in class DataWorkerpublic void execute(InputStream in, DataWorkerData data) throws Exception
execute in class DataWorkerExceptionprotected abstract String getMimeType(InputStream in, String fileName) throws Exception
ExceptionCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.