public class ContentStoreDumpManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
UNMIGRATEABLE_DBMETADATA
Extension data fields on the database which should not be migrated as they represent local database state that should not be transferred
|
Constructor and Description |
---|
ContentStoreDumpManager(WGDatabase from,
WGDatabase to)
Constructor
|
ContentStoreDumpManager(WGDatabase from,
WGDatabase to,
org.apache.log4j.Logger logger)
Construtor
|
Modifier and Type | Method and Description |
---|---|
boolean |
exportDump()
Exports an OpenWGA content store dump from a content store.
|
boolean |
exportDump(boolean includeACL)
Exports an OpenWGA content store dump from a content store.
|
boolean |
exportDump(boolean includeACL,
boolean includeSystemAreas,
boolean includeArchived)
Exports an OpenWGA content store dump from a content store.
|
int |
getClearCacheEvery()
Returns after how much processed documents the database caches are cleared to free memory.
|
boolean |
importDump()
Imports an OpenWGA content store dump into a content store.
|
boolean |
importDump(boolean includeACL)
Imports an OpenWGA content store dump into a content store.
|
boolean |
importDump(boolean includeACL,
boolean includeSystemAreas)
Imports an OpenWGA content store dump into a content store.
|
void |
setClearCacheEvery(int i)
Sets after how much processed documents the database caches are cleared to free memory.
|
public static final java.util.List<java.lang.String> UNMIGRATEABLE_DBMETADATA
public ContentStoreDumpManager(WGDatabase from, WGDatabase to, org.apache.log4j.Logger logger)
from
- The source databaseto
- The target databaselogger
- A logger to write the dump log topublic ContentStoreDumpManager(WGDatabase from, WGDatabase to)
from
- The source databaseto
- The target databasepublic boolean importDump() throws WGAPIException
WGAPIException
public boolean importDump(boolean includeACL, boolean includeSystemAreas) throws WGAPIException
includeACL
- should the ACL of the source be imported or notincludeSystemAreas
- should system areas be imported or notWGAPIException
public boolean importDump(boolean includeACL) throws WGAPIException
includeACL
- should the ACL of the source be imported or notWGAPIException
public boolean exportDump() throws WGAPIException
WGAPIException
public boolean exportDump(boolean includeACL) throws WGAPIException
includeACL
- should the ACL of the source be included in the dump or notWGAPIException
public boolean exportDump(boolean includeACL, boolean includeSystemAreas, boolean includeArchived) throws WGAPIException
includeACL
- should the ACL of the source be included in the dump or notincludeSystemAreas
- should system areas be included in the dump or notincludeArchived
- WGAPIException
public int getClearCacheEvery()
public void setClearCacheEvery(int i)
i
-