public class CoreFeature extends Object implements RunnerFeature
CoreSession that can be injected.
In addition, by injecting the feature itself, some helper methods are available to open new sessions.
| Modifier and Type | Class and Description |
|---|---|
class |
CoreFeature.CoreDeployer |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cleaned |
protected Granularity |
granularity |
protected RepositoryInit |
repositoryInit |
protected ACP |
rootAcp |
protected CoreSession |
session |
protected StorageConfiguration |
storageConfiguration |
protected TransactionalFeature |
txFeature |
| Constructor and Description |
|---|
CoreFeature() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterMethodRun, beforeMethodRun, stop, testCreatedprotected StorageConfiguration storageConfiguration
protected RepositoryInit repositoryInit
protected Granularity granularity
protected CoreSession session
protected boolean cleaned
protected TransactionalFeature txFeature
public CoreFeature()
public StorageConfiguration getStorageConfiguration()
public void initialize(FeaturesRunner runner)
RunnerFeatureinitialize in interface RunnerFeaturepublic Granularity getGranularity()
public void start(FeaturesRunner runner)
RunnerFeaturestart in interface RunnerFeaturepublic void beforeRun(FeaturesRunner runner)
RunnerFeaturebeforeRun in interface RunnerFeaturepublic void configure(FeaturesRunner runner, com.google.inject.Binder binder)
RunnerFeatureconfigure in interface RunnerFeaturepublic void afterRun(FeaturesRunner runner)
RunnerFeatureafterRun in interface RunnerFeaturepublic void beforeSetup(FeaturesRunner runner)
RunnerFeaturebeforeSetup in interface RunnerFeaturepublic void afterTeardown(FeaturesRunner runner)
RunnerFeatureafterTeardown in interface RunnerFeaturepublic void waitForAsyncCompletion()
protected void cleanupSession(FeaturesRunner runner)
protected void batchRemoveDocuments(IterableQueryResult results)
protected void batchRemoveDocuments(List<DocumentRef> ids)
protected void initializeSession(FeaturesRunner runner)
public String getRepositoryName()
public CloseableCoreSession openCoreSession(String username)
public CloseableCoreSession openCoreSession(NuxeoPrincipal principal)
public CloseableCoreSession openCoreSession()
public CloseableCoreSession openCoreSessionSystem()
public CloseableCoreSession createCoreSession()
public CoreSession getCoreSession()
public void releaseCoreSession()
public CoreSession reopenCoreSession()
Copyright © 2019 Nuxeo. All rights reserved.