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, getApplicationStartedOrder, getLastModified, registerContribution, registerExtension, setLastModified, 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 List<DistributionSnapshot> listPersistentSnapshots(CoreSession session)
listPersistentSnapshots
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, OperationException
persistRuntimeSnapshot
in interface SnapshotManager
ClientException
OperationException
public DistributionSnapshot persistRuntimeSnapshot(CoreSession session, String name) throws ClientException, OperationException
persistRuntimeSnapshot
in interface SnapshotManager
ClientException
OperationException
public DistributionSnapshot persistRuntimeSnapshot(CoreSession session, String name, SnapshotFilter filter) throws ClientException, OperationException
persistRuntimeSnapshot
in interface SnapshotManager
ClientException
OperationException
public List<String> getAvailableVersions(CoreSession session, NuxeoArtifact nxItem) throws OperationException
getAvailableVersions
in interface SnapshotManager
OperationException
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 validateImportedSnapshot(CoreSession session, String name, String version, String pathSegment, String title) throws Exception
validateImportedSnapshot
in interface SnapshotManager
Exception
public DocumentModel importTmpSnapshot(CoreSession session, InputStream is) throws Exception
importTmpSnapshot
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 © 2013 Nuxeo SA. All Rights Reserved.