public class SnapshotManagerComponent extends DefaultComponent implements SnapshotManager
Modifier and Type | Field and Description |
---|---|
static String |
RUNTIME |
static String |
RUNTIME_ADM |
Constructor and Description |
---|
SnapshotManagerComponent() |
activate, applicationStarted, deactivate, getAdapter, registerContribution, registerExtension, unregisterContribution, unregisterExtension
public static final String RUNTIME
public static final String RUNTIME_ADM
public DistributionSnapshot getRuntimeSnapshot()
getRuntimeSnapshot
in interface SnapshotManager
public DistributionSnapshot getSnapshot(String key, CoreSession session)
getSnapshot
in interface SnapshotManager
public List<DistributionSnapshot> readPersistentSnapshots(CoreSession session)
readPersistentSnapshots
in interface SnapshotManager
public Map<String,DistributionSnapshot> getPersistentSnapshots(CoreSession session)
getPersistentSnapshots
in interface SnapshotManager
public List<String> getPersistentSnapshotNames(CoreSession session)
getPersistentSnapshotNames
in interface SnapshotManager
public List<DistributionSnapshotDesc> getAvailableDistributions(CoreSession session)
getAvailableDistributions
in interface SnapshotManager
public DistributionSnapshot persistRuntimeSnapshot(CoreSession session) throws ClientException
persistRuntimeSnapshot
in interface SnapshotManager
ClientException
public DistributionSnapshot persistRuntimeSnapshot(CoreSession session, String name) throws ClientException
persistRuntimeSnapshot
in interface SnapshotManager
ClientException
public DistributionSnapshot persistRuntimeSnapshot(CoreSession session, String name, SnapshotFilter filter) throws ClientException
persistRuntimeSnapshot
in interface SnapshotManager
ClientException
public List<String> getAvailableVersions(CoreSession session, NuxeoArtifact nxItem)
getAvailableVersions
in interface SnapshotManager
public void exportSnapshot(CoreSession session, String key, OutputStream out) throws Exception
exportSnapshot
in interface SnapshotManager
Exception
public void importSnapshot(CoreSession session, InputStream is) throws Exception
importSnapshot
in interface SnapshotManager
Exception
public void initSeamContext(HttpServletRequest request)
initSeamContext
in interface SnapshotManager
public void addPersistentSnapshot(String key, DistributionSnapshot snapshot)
addPersistentSnapshot
in interface SnapshotManager
Copyright © 2011 Nuxeo SA. All Rights Reserved.