public class RepositorySettings extends Object implements com.google.inject.Provider<CoreSession>
RepositoryConfig
annotations.
If you are modifying fields in this class do not forget to update the {@link RepositorySettings#importSettings(RepositorySettings) method.
Constructor and Description |
---|
RepositorySettings(FeaturesRunner runner) |
Modifier and Type | Method and Description |
---|---|
CoreSession |
get() |
BackendType |
getBackendType() |
Granularity |
getGranularity() |
RepositoryInit |
getInitializer() |
String |
getName() |
TestRepositoryHandler |
getRepositoryHandler() |
CoreSession |
getSession() |
String |
getUsername() |
void |
importAnnotations(RepositoryConfig repo) |
void |
importSettings(RepositorySettings settings) |
void |
initialize() |
CoreSession |
openSessionAs(String userName) |
CoreSession |
openSessionAs(String username,
boolean isAdmin,
boolean isAnonymous) |
CoreSession |
openSessionAsAdminUser(String username) |
CoreSession |
openSessionAsAnonymousUser(String username) |
CoreSession |
openSessionAsSystemUser() |
void |
setBackendType(BackendType type) |
void |
setGranularity(Granularity granularity) |
void |
setInitializer(RepositoryInit initializer) |
void |
setName(String name) |
void |
setUsername(String username) |
void |
shutdown() |
public RepositorySettings(FeaturesRunner runner)
public void importAnnotations(RepositoryConfig repo)
public void importSettings(RepositorySettings settings)
public BackendType getBackendType()
public void setBackendType(BackendType type)
public String getName()
public void setName(String name)
public String getUsername()
public void setUsername(String username)
public RepositoryInit getInitializer()
public void setInitializer(RepositoryInit initializer)
public Granularity getGranularity()
public void setGranularity(Granularity granularity)
public void initialize()
public void shutdown()
public TestRepositoryHandler getRepositoryHandler()
public CoreSession getSession()
public CoreSession openSessionAs(String userName) throws ClientException
ClientException
public CoreSession openSessionAsAdminUser(String username) throws ClientException
ClientException
public CoreSession openSessionAsAnonymousUser(String username) throws ClientException
ClientException
public CoreSession openSessionAsSystemUser() throws ClientException
ClientException
public CoreSession openSessionAs(String username, boolean isAdmin, boolean isAnonymous) throws ClientException
ClientException
public CoreSession get()
get
in interface Provider<CoreSession>
Copyright © 2011 Nuxeo SA. All Rights Reserved.