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.AbstractServiceFactoryFactory for a wrappedNuxeoCmisService.Called for each method dispatch by
CmisAtomPubServletororg.apache.chemistry.opencmis.server.impl.atompub.CmisBrowserBindingServlet.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_DEPTHstatic intDEFAULT_MAX_ITEMSstatic intDEFAULT_TYPES_DEPTHstatic intDEFAULT_TYPES_MAX_ITEMSprotected BigIntegerdefaultDepthprotected BigIntegerdefaultMaxItemsprotected BigIntegerdefaultTypesDepthprotected BigIntegerdefaultTypesMaxItemsprotected booleanencryptTempFilesprotected longmaxContentSizeprotected longmemoryThresholdstatic StringPROP_DEFAULT_DEPTHstatic StringPROP_DEFAULT_MAX_ITEMSstatic StringPROP_DEFAULT_TYPES_DEPTHstatic StringPROP_DEFAULT_TYPES_MAX_ITEMSstatic StringPROP_ENCRYPT_TEMP_FILESstatic StringPROP_MAX_CONTENT_SIZEstatic StringPROP_MEMORY_THERESHOLDstatic StringPROP_TEMP_DIRECTORYprotected FiletempDirectoryprotected org.apache.chemistry.opencmis.server.support.wrapper.CmisServiceWrapperManagerwrapperManager
-
Constructor Summary
Constructors Constructor Description NuxeoCmisServiceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanencryptTempFiles()protected static BigIntegergetBigIntegerParameter(Map<String,String> parameters, String key, int def)protected static longgetLongParameter(Map<String,String> parameters, String key, long def)longgetMaxContentSize()intgetMemoryThreshold()org.apache.chemistry.opencmis.commons.server.CmisServicegetService(org.apache.chemistry.opencmis.commons.server.CallContext context)FilegetTempDirectory()voidinit(Map<String,String> parameters)protected voidinitParameters(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:
initin interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory- Overrides:
initin 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:
getServicein interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory- Specified by:
getServicein classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
getTempDirectory
public File getTempDirectory()
- Specified by:
getTempDirectoryin interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory- Overrides:
getTempDirectoryin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
encryptTempFiles
public boolean encryptTempFiles()
- Specified by:
encryptTempFilesin interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory- Overrides:
encryptTempFilesin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
getMemoryThreshold
public int getMemoryThreshold()
- Specified by:
getMemoryThresholdin interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory- Overrides:
getMemoryThresholdin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
getMaxContentSize
public long getMaxContentSize()
- Specified by:
getMaxContentSizein interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory- Overrides:
getMaxContentSizein classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
-