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, wait
afterMethodRun, beforeMethodRun, stop, testCreated
protected 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)
RunnerFeature
initialize
in interface RunnerFeature
public Granularity getGranularity()
public void start(FeaturesRunner runner)
RunnerFeature
start
in interface RunnerFeature
public void beforeRun(FeaturesRunner runner)
RunnerFeature
beforeRun
in interface RunnerFeature
public void configure(FeaturesRunner runner, com.google.inject.Binder binder)
RunnerFeature
configure
in interface RunnerFeature
public void afterRun(FeaturesRunner runner)
RunnerFeature
afterRun
in interface RunnerFeature
public void beforeSetup(FeaturesRunner runner)
RunnerFeature
beforeSetup
in interface RunnerFeature
public void afterTeardown(FeaturesRunner runner)
RunnerFeature
afterTeardown
in interface RunnerFeature
public 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.