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, unregisterExtensionprotected 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 SnapshotManagerpublic DistributionSnapshot getSnapshot(String key, CoreSession session)
getSnapshot in interface SnapshotManagerpublic List<DistributionSnapshot> readPersistentSnapshots(CoreSession session)
readPersistentSnapshots in interface SnapshotManagerpublic List<DistributionSnapshot> listPersistentSnapshots(CoreSession session)
listPersistentSnapshots in interface SnapshotManagerpublic Map<String,DistributionSnapshot> getPersistentSnapshots(CoreSession session)
getPersistentSnapshots in interface SnapshotManagerpublic List<String> getPersistentSnapshotNames(CoreSession session)
getPersistentSnapshotNames in interface SnapshotManagerpublic List<DistributionSnapshotDesc> getAvailableDistributions(CoreSession session)
getAvailableDistributions in interface SnapshotManagerpublic DistributionSnapshot persistRuntimeSnapshot(CoreSession session)
persistRuntimeSnapshot in interface SnapshotManagerpublic DistributionSnapshot persistRuntimeSnapshot(CoreSession session, String name)
persistRuntimeSnapshot in interface SnapshotManagerpublic DistributionSnapshot persistRuntimeSnapshot(CoreSession session, String name, SnapshotFilter filter)
persistRuntimeSnapshot in interface SnapshotManagerpublic List<String> getAvailableVersions(CoreSession session, NuxeoArtifact nxItem)
getAvailableVersions in interface SnapshotManagerpublic void exportSnapshot(CoreSession session, String key, OutputStream out) throws IOException
exportSnapshot in interface SnapshotManagerIOExceptionpublic void importSnapshot(CoreSession session, InputStream is) throws IOException
importSnapshot in interface SnapshotManagerIOExceptionpublic void validateImportedSnapshot(CoreSession session, String name, String version, String pathSegment, String title)
validateImportedSnapshot in interface SnapshotManagerpublic DocumentModel importTmpSnapshot(CoreSession session, InputStream is) throws IOException
importTmpSnapshot in interface SnapshotManagerIOExceptionpublic void initSeamContext(javax.servlet.http.HttpServletRequest request)
initSeamContext in interface SnapshotManagerpublic void addPersistentSnapshot(String key, DistributionSnapshot snapshot)
addPersistentSnapshot in interface SnapshotManagerCopyright © 2016 Nuxeo SA. All rights reserved.