public class CoreFeature extends SimpleFeature
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 |
class |
CoreFeature.WorksWaiter |
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() |
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
initialize
in class SimpleFeature
public Granularity getGranularity()
public void start(FeaturesRunner runner)
RunnerFeature
start
in interface RunnerFeature
start
in class SimpleFeature
public void beforeRun(FeaturesRunner runner) throws InterruptedException
RunnerFeature
beforeRun
in interface RunnerFeature
beforeRun
in class SimpleFeature
InterruptedException
public void configure(FeaturesRunner runner, com.google.inject.Binder binder)
RunnerFeature
configure
in interface RunnerFeature
configure
in class SimpleFeature
public void afterRun(FeaturesRunner runner)
RunnerFeature
afterRun
in interface RunnerFeature
afterRun
in class SimpleFeature
public void beforeSetup(FeaturesRunner runner)
RunnerFeature
beforeSetup
in interface RunnerFeature
beforeSetup
in class SimpleFeature
public void afterTeardown(FeaturesRunner runner)
RunnerFeature
afterTeardown
in interface RunnerFeature
afterTeardown
in class SimpleFeature
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 CoreSession openCoreSession(String username)
public CoreSession openCoreSession(NuxeoPrincipal principal)
public CoreSession openCoreSession()
public CoreSession openCoreSessionSystem()
public CoreSession createCoreSession()
public CoreSession getCoreSession()
public void releaseCoreSession()
public CoreSession reopenCoreSession()
Copyright © 2018 Nuxeo. All rights reserved.