public class PictureMigrationHandler extends RepositoryInitializationHandler
file:content
.
Does not copy it if file:content
is not empty. When done, the Original picture view is removed.
It does not recompute the picture views.
Modifier and Type | Field and Description |
---|---|
static int |
BATCH_SIZE |
static String |
DISABLE_QUOTA_CHECK_LISTENER |
static String |
FILE_CONTENT_PROPERTY |
static String |
FILE_FILENAME_PROPERTY |
static String |
ORIGINAL_VIEW_TITLE |
static String |
PICTURES_TO_MIGRATE_QUERY |
next, previous
Constructor and Description |
---|
PictureMigrationHandler() |
Modifier and Type | Method and Description |
---|---|
void |
doInitializeRepository(CoreSession session) |
protected void |
doMigration(CoreSession session) |
protected Set<String> |
getPictureIdsToMigrate(CoreSession session) |
protected boolean |
migratePicture(CoreSession session,
String docId) |
getInstance, getNext, getPrevious, initializeRepository, install, uninstall
public static final String PICTURES_TO_MIGRATE_QUERY
public static final String ORIGINAL_VIEW_TITLE
public static final String FILE_CONTENT_PROPERTY
public static final String FILE_FILENAME_PROPERTY
public static final int BATCH_SIZE
public static final String DISABLE_QUOTA_CHECK_LISTENER
public PictureMigrationHandler()
public void doInitializeRepository(CoreSession session)
doInitializeRepository
in class RepositoryInitializationHandler
protected void doMigration(CoreSession session)
protected Set<String> getPictureIdsToMigrate(CoreSession session)
protected boolean migratePicture(CoreSession session, String docId)
Copyright © 2016 Nuxeo SA. All rights reserved.