public class JCRMigrationService extends Object implements MigrationService, StoresByPathManager<ExportInfo>
| Modifier and Type | Field and Description |
|---|---|
static List<Class> |
mappingClasses |
| Constructor and Description |
|---|
JCRMigrationService(ChromatticPersister persister) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ExportInfo info) |
List<ExportInfo> |
getAvailableExportInfos() |
String |
getChildPath(ExportInfo exportInfo)
Computes the JCR path of the specified child from the root of the workspace associated with the data.
|
ExportInfo |
getExportInfo(long exportTime) |
String |
getParentPath() |
ConsumerStructureProvider |
getStructureProvider() |
boolean |
isAvailableExportInfosEmpty() |
LastModified |
lastModifiedToUpdateOnDelete(org.chromattic.api.ChromatticSession session)
Retrieves a LastModified view of the object that needs to be set as modified when this manager is asked to delete a child.
|
ExportInfo |
remove(ExportInfo info) |
void |
setStructureProvider(ConsumerStructureProvider structureProvider) |
public JCRMigrationService(ChromatticPersister persister) throws Exception
Exceptionpublic ConsumerStructureProvider getStructureProvider()
getStructureProvider in interface MigrationServicepublic void setStructureProvider(ConsumerStructureProvider structureProvider)
setStructureProvider in interface MigrationServicepublic List<ExportInfo> getAvailableExportInfos()
getAvailableExportInfos in interface MigrationServicepublic ExportInfo getExportInfo(long exportTime)
getExportInfo in interface MigrationServicepublic void add(ExportInfo info)
add in interface MigrationServicepublic ExportInfo remove(ExportInfo info)
remove in interface MigrationServicepublic boolean isAvailableExportInfosEmpty()
isAvailableExportInfosEmpty in interface MigrationServicepublic String getParentPath()
public String getChildPath(ExportInfo exportInfo)
StoresByPathManagergetChildPath in interface StoresByPathManager<ExportInfo>exportInfo - the child we want to retrieve the path ofpublic LastModified lastModifiedToUpdateOnDelete(org.chromattic.api.ChromatticSession session)
StoresByPathManagerlastModifiedToUpdateOnDelete in interface StoresByPathManager<ExportInfo>session - the ChromatticSession managing the deletionnull if no such object existsCopyright © 2006-2014 GateIn. All Rights Reserved.