Class NuxeoCmisServiceFactory
- java.lang.Object
-
- org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
- org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisServiceFactory
-
- All Implemented Interfaces:
org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
public class NuxeoCmisServiceFactory extends org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
Factory for a wrappedNuxeoCmisService
.Called for each method dispatch by
CmisAtomPubServlet
ororg.apache.chemistry.opencmis.server.impl.atompub.CmisBrowserBindingServlet
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_DEPTH
static int
DEFAULT_MAX_ITEMS
static int
DEFAULT_TYPES_DEPTH
static int
DEFAULT_TYPES_MAX_ITEMS
protected BigInteger
defaultDepth
protected BigInteger
defaultMaxItems
protected BigInteger
defaultTypesDepth
protected BigInteger
defaultTypesMaxItems
protected boolean
encryptTempFiles
protected long
maxContentSize
protected long
memoryThreshold
static String
PROP_DEFAULT_DEPTH
static String
PROP_DEFAULT_MAX_ITEMS
static String
PROP_DEFAULT_TYPES_DEPTH
static String
PROP_DEFAULT_TYPES_MAX_ITEMS
static String
PROP_ENCRYPT_TEMP_FILES
static String
PROP_MAX_CONTENT_SIZE
static String
PROP_MEMORY_THERESHOLD
static String
PROP_TEMP_DIRECTORY
protected File
tempDirectory
protected org.apache.chemistry.opencmis.server.support.wrapper.CmisServiceWrapperManager
wrapperManager
-
Constructor Summary
Constructors Constructor Description NuxeoCmisServiceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
encryptTempFiles()
protected static BigInteger
getBigIntegerParameter(Map<String,String> parameters, String key, int def)
protected static long
getLongParameter(Map<String,String> parameters, String key, long def)
long
getMaxContentSize()
int
getMemoryThreshold()
org.apache.chemistry.opencmis.commons.server.CmisService
getService(org.apache.chemistry.opencmis.commons.server.CallContext context)
File
getTempDirectory()
void
init(Map<String,String> parameters)
protected void
initParameters(Map<String,String> parameters)
-
-
-
Field Detail
-
PROP_TEMP_DIRECTORY
public static final String PROP_TEMP_DIRECTORY
- See Also:
- Constant Field Values
-
PROP_ENCRYPT_TEMP_FILES
public static final String PROP_ENCRYPT_TEMP_FILES
- See Also:
- Constant Field Values
-
PROP_MEMORY_THERESHOLD
public static final String PROP_MEMORY_THERESHOLD
- See Also:
- Constant Field Values
-
PROP_MAX_CONTENT_SIZE
public static final String PROP_MAX_CONTENT_SIZE
- See Also:
- Constant Field Values
-
PROP_DEFAULT_TYPES_MAX_ITEMS
public static final String PROP_DEFAULT_TYPES_MAX_ITEMS
- See Also:
- Constant Field Values
-
PROP_DEFAULT_TYPES_DEPTH
public static final String PROP_DEFAULT_TYPES_DEPTH
- See Also:
- Constant Field Values
-
PROP_DEFAULT_MAX_ITEMS
public static final String PROP_DEFAULT_MAX_ITEMS
- See Also:
- Constant Field Values
-
PROP_DEFAULT_DEPTH
public static final String PROP_DEFAULT_DEPTH
- See Also:
- Constant Field Values
-
DEFAULT_TYPES_MAX_ITEMS
public static final int DEFAULT_TYPES_MAX_ITEMS
- See Also:
- Constant Field Values
-
DEFAULT_TYPES_DEPTH
public static final int DEFAULT_TYPES_DEPTH
- See Also:
- Constant Field Values
-
DEFAULT_MAX_ITEMS
public static final int DEFAULT_MAX_ITEMS
- See Also:
- Constant Field Values
-
DEFAULT_DEPTH
public static final int DEFAULT_DEPTH
- See Also:
- Constant Field Values
-
wrapperManager
protected org.apache.chemistry.opencmis.server.support.wrapper.CmisServiceWrapperManager wrapperManager
-
defaultTypesMaxItems
protected BigInteger defaultTypesMaxItems
-
defaultTypesDepth
protected BigInteger defaultTypesDepth
-
defaultMaxItems
protected BigInteger defaultMaxItems
-
defaultDepth
protected BigInteger defaultDepth
-
tempDirectory
protected File tempDirectory
-
encryptTempFiles
protected boolean encryptTempFiles
-
memoryThreshold
protected long memoryThreshold
-
maxContentSize
protected long maxContentSize
-
-
Method Detail
-
init
public void init(Map<String,String> parameters)
- Specified by:
init
in interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory
- Overrides:
init
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
getLongParameter
protected static long getLongParameter(Map<String,String> parameters, String key, long def)
-
getBigIntegerParameter
protected static BigInteger getBigIntegerParameter(Map<String,String> parameters, String key, int def)
-
getService
public org.apache.chemistry.opencmis.commons.server.CmisService getService(org.apache.chemistry.opencmis.commons.server.CallContext context)
- Specified by:
getService
in interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory
- Specified by:
getService
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
getTempDirectory
public File getTempDirectory()
- Specified by:
getTempDirectory
in interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory
- Overrides:
getTempDirectory
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
encryptTempFiles
public boolean encryptTempFiles()
- Specified by:
encryptTempFiles
in interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory
- Overrides:
encryptTempFiles
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
getMemoryThreshold
public int getMemoryThreshold()
- Specified by:
getMemoryThreshold
in interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory
- Overrides:
getMemoryThreshold
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
getMaxContentSize
public long getMaxContentSize()
- Specified by:
getMaxContentSize
in interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory
- Overrides:
getMaxContentSize
in classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
-