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, unregisterExtensionpublic static final String RUNTIME
public static final String RUNTIME_ADM
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) throws ClientException, OperationException
persistRuntimeSnapshot in interface SnapshotManagerClientExceptionOperationExceptionpublic DistributionSnapshot persistRuntimeSnapshot(CoreSession session, String name) throws ClientException, OperationException
persistRuntimeSnapshot in interface SnapshotManagerClientExceptionOperationExceptionpublic DistributionSnapshot persistRuntimeSnapshot(CoreSession session, String name, SnapshotFilter filter) throws ClientException, OperationException
persistRuntimeSnapshot in interface SnapshotManagerClientExceptionOperationExceptionpublic List<String> getAvailableVersions(CoreSession session, NuxeoArtifact nxItem) throws OperationException
getAvailableVersions in interface SnapshotManagerOperationExceptionpublic void exportSnapshot(CoreSession session, String key, OutputStream out) throws Exception
exportSnapshot in interface SnapshotManagerExceptionpublic void importSnapshot(CoreSession session, InputStream is) throws Exception
importSnapshot in interface SnapshotManagerExceptionpublic void validateImportedSnapshot(CoreSession session, String name, String version, String pathSegment, String title) throws Exception
validateImportedSnapshot in interface SnapshotManagerExceptionpublic DocumentModel importTmpSnapshot(CoreSession session, InputStream is) throws Exception
importTmpSnapshot in interface SnapshotManagerExceptionpublic void initSeamContext(javax.servlet.http.HttpServletRequest request)
initSeamContext in interface SnapshotManagerpublic void addPersistentSnapshot(String key, DistributionSnapshot snapshot)
addPersistentSnapshot in interface SnapshotManagerCopyright © 2014 Nuxeo SA. All rights reserved.