public class ThumbnailPictureRunner extends AbstractRunner
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FILE_CONTENT_XPATH
Picture xpath.
|
protected static String |
FILENAME_XPATH |
protected static int |
NB_VIEWS |
protected static String |
VIEW_XPATH_CONTENT |
protected static String |
VIEW_XPATH_FILENAME |
protected static String |
VIEWS_PROPERTY |
docsOnError, EMPTY_ID_FILTER, FILTERED_SERVICES_LIST, FIXED_CLAUSE, inputs, MIGRATION_DONE, mode, params, results, totalInputs, treatedInputs| Constructor and Description |
|---|
ThumbnailPictureRunner(org.nuxeo.ecm.core.api.CoreSession session) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
generateFileName(org.nuxeo.ecm.core.api.DocumentModel picture,
org.nuxeo.ecm.core.api.Blob blob) |
protected String |
getFileNameFromContent(org.nuxeo.ecm.core.api.DocumentModel picture,
org.nuxeo.ecm.core.api.Blob blob) |
protected String |
getFileNameFromOrgView(org.nuxeo.ecm.core.api.Blob blob,
org.nuxeo.ecm.core.api.DocumentModel picture)
Gets file's name.
|
protected static org.nuxeo.ecm.platform.picture.api.ImagingService |
getImagingService()
Getter for Imaging servcie.
|
protected static org.nuxeo.ecm.platform.mimetype.interfaces.MimetypeRegistry |
getMimeTypeRegistry()
Getter for Imaging service.
|
void |
run()
Recompute all views.
|
int |
setInputs(int limit)
Pictures missing at least one view.
|
getDocsOnError, getMode, getTotalInputs, getTreatedInputs, removeDocsWithError, resetDocsOnerror, runSilentlyInTx, setMode, setParamssilentRun, silentRunprotected static final String FILE_CONTENT_XPATH
protected static final String FILENAME_XPATH
protected static final String VIEWS_PROPERTY
protected static final String VIEW_XPATH_FILENAME
protected static final String VIEW_XPATH_CONTENT
protected static final int NB_VIEWS
public ThumbnailPictureRunner(org.nuxeo.ecm.core.api.CoreSession session)
protected static org.nuxeo.ecm.platform.mimetype.interfaces.MimetypeRegistry getMimeTypeRegistry()
protected static org.nuxeo.ecm.platform.picture.api.ImagingService getImagingService()
public int setInputs(int limit)
setInputs in class AbstractRunnerpublic void run()
throws org.nuxeo.ecm.core.api.ClientException
run in class AbstractRunnerorg.nuxeo.ecm.core.api.ClientExceptionprotected String getFileNameFromContent(org.nuxeo.ecm.core.api.DocumentModel picture, org.nuxeo.ecm.core.api.Blob blob)
picture - blob - protected String generateFileName(org.nuxeo.ecm.core.api.DocumentModel picture, org.nuxeo.ecm.core.api.Blob blob)
picture - blob - fileName - protected String getFileNameFromOrgView(org.nuxeo.ecm.core.api.Blob blob, org.nuxeo.ecm.core.api.DocumentModel picture) throws org.nuxeo.ecm.core.api.ClientException
picture - org.nuxeo.ecm.core.api.ClientExceptionCopyright © 2020. All rights reserved.