public class SnapshotManagerComponent extends DefaultComponent implements SnapshotManager
Modifier and Type | Field and Description |
---|---|
protected static String |
IMPORT_TMP |
protected static org.apache.commons.logging.Log |
log |
protected SnapshotPersister |
persister |
static String |
RUNTIME |
static String |
RUNTIME_ADM |
protected DistributionSnapshot |
runtimeSnapshot |
lastModified
Constructor and Description |
---|
SnapshotManagerComponent() |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, registerExtension, setLastModified, setModifiedNow, unregisterContribution, unregisterExtension
protected DistributionSnapshot runtimeSnapshot
public static final String RUNTIME
public static final String RUNTIME_ADM
protected static final String IMPORT_TMP
protected static final org.apache.commons.logging.Log log
protected final SnapshotPersister persister
public SnapshotManagerComponent()
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)
persistRuntimeSnapshot
in interface SnapshotManager
public DistributionSnapshot persistRuntimeSnapshot(CoreSession session, String name)
persistRuntimeSnapshot
in interface SnapshotManager
public DistributionSnapshot persistRuntimeSnapshot(CoreSession session, String name, SnapshotFilter filter)
persistRuntimeSnapshot
in interface SnapshotManager
public List<String> getAvailableVersions(CoreSession session, NuxeoArtifact nxItem)
getAvailableVersions
in interface SnapshotManager
public void exportSnapshot(CoreSession session, String key, OutputStream out) throws IOException
exportSnapshot
in interface SnapshotManager
IOException
public void importSnapshot(CoreSession session, InputStream is) throws IOException
importSnapshot
in interface SnapshotManager
IOException
public void validateImportedSnapshot(CoreSession session, String name, String version, String pathSegment, String title)
validateImportedSnapshot
in interface SnapshotManager
public DocumentModel importTmpSnapshot(CoreSession session, InputStream is) throws IOException
importTmpSnapshot
in interface SnapshotManager
IOException
public void initSeamContext(javax.servlet.http.HttpServletRequest request)
initSeamContext
in interface SnapshotManager
public void addPersistentSnapshot(String key, DistributionSnapshot snapshot)
addPersistentSnapshot
in interface SnapshotManager
Copyright © 2015 Nuxeo SA. All rights reserved.