public class JcrServiceFactory extends AbstractServiceFactory
CmisServiceFactory implementation which returns JcrService
instances.| Modifier and Type | Field and Description |
|---|---|
static BigInteger |
DEFAULT_DEPTH_OBJECTS |
static BigInteger |
DEFAULT_DEPTH_TYPES |
static BigInteger |
DEFAULT_MAX_ITEMS_OBJECTS |
static BigInteger |
DEFAULT_MAX_ITEMS_TYPES |
protected Map<String,String> |
jcrConfig |
protected JcrRepository |
jcrRepository |
static String |
MOUNT_PATH_CONFIG |
protected String |
mountPath |
static String |
PREFIX_JCR_CONFIG |
protected JcrTypeManager |
typeManager |
| Constructor and Description |
|---|
JcrServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.jcr.Repository |
acquireJcrRepository(Map<String,String> jcrConfig)
Acquire the JCR repository given a configuration.
|
protected JcrService |
createJcrService(JcrRepository jcrRepository,
CallContext context)
Create a
JcrService from a JcrRepository
JcrRepository> and CallContext. |
protected JcrTypeHandlerManager |
createTypeHandlerManager(PathManager pathManager,
JcrTypeManager typeManager) |
protected JcrTypeManager |
createTypeManager() |
void |
destroy()
Cleans up the the factory instance.
|
JcrRepository |
getJcrRepository() |
CmisService |
getService(CallContext context)
Returns a
CmisService object for the given CallContext. |
JcrTypeManager |
getTypeManager() |
void |
init(Map<String,String> parameters)
Initializes the factory instance.
|
encryptTempFiles, getMaxContentSize, getMemoryThreshold, getTempDirectorypublic static final String MOUNT_PATH_CONFIG
public static final String PREFIX_JCR_CONFIG
public static final BigInteger DEFAULT_MAX_ITEMS_TYPES
public static final BigInteger DEFAULT_DEPTH_TYPES
public static final BigInteger DEFAULT_MAX_ITEMS_OBJECTS
public static final BigInteger DEFAULT_DEPTH_OBJECTS
protected JcrTypeManager typeManager
protected String mountPath
protected JcrRepository jcrRepository
public void init(Map<String,String> parameters)
CmisServiceFactoryinit in interface CmisServiceFactoryinit in class AbstractServiceFactorypublic void destroy()
CmisServiceFactorydestroy in interface CmisServiceFactorydestroy in class AbstractServiceFactorypublic CmisService getService(CallContext context)
CmisServiceFactoryCmisService object for the given CallContext.
When the CmisService object is not longer needed
CmisService.close() will be called.getService in interface CmisServiceFactorygetService in class AbstractServiceFactoryprotected javax.jcr.Repository acquireJcrRepository(Map<String,String> jcrConfig)
ServiceRegistry.lookupProviders(Class) for
locating RepositoryFactory instances. The first instance
which can handle the jcrConfig parameters is used to acquire
the repository.jcrConfig - configuration determining the JCR repository to be returnedjavax.jcr.RepositoryExceptionprotected JcrService createJcrService(JcrRepository jcrRepository, CallContext context)
JcrService from a JcrRepository
JcrRepository> and CallContext.jcrRepository - context - protected JcrTypeManager createTypeManager()
protected JcrTypeHandlerManager createTypeHandlerManager(PathManager pathManager, JcrTypeManager typeManager)
public JcrTypeManager getTypeManager()
public JcrRepository getJcrRepository()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.