public class SnapshotManagerComponent extends DefaultComponent implements SnapshotManager
Modifier and Type | Class and Description |
---|---|
protected static class |
SnapshotManagerComponent.SnapshotWriter
Custom Write to disable Validation Service
|
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, name
Constructor and Description |
---|
SnapshotManagerComponent() |
activate, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
protected volatile 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, Map<String,Serializable> properties)
persistRuntimeSnapshot
in interface SnapshotManager
public DistributionSnapshot persistRuntimeSnapshot(CoreSession session, String name, Map<String,Serializable> properties, 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 © 2019 Nuxeo. All rights reserved.