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, getTempDirectory
public 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)
CmisServiceFactory
init
in interface CmisServiceFactory
init
in class AbstractServiceFactory
public void destroy()
CmisServiceFactory
destroy
in interface CmisServiceFactory
destroy
in class AbstractServiceFactory
public CmisService getService(CallContext context)
CmisServiceFactory
CmisService
object for the given CallContext
.
When the CmisService
object is not longer needed
CmisService.close()
will be called.getService
in interface CmisServiceFactory
getService
in class AbstractServiceFactory
protected 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.RepositoryException
protected 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.