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 wrapped NuxeoCmisService.

Called for each method dispatch by CmisAtomPubServlet or org.apache.chemistry.opencmis.server.impl.atompub.CmisBrowserBindingServlet.

  • Field Details

    • PROP_TEMP_DIRECTORY

      public static final String PROP_TEMP_DIRECTORY
      See Also:
    • PROP_ENCRYPT_TEMP_FILES

      public static final String PROP_ENCRYPT_TEMP_FILES
      See Also:
    • PROP_MEMORY_THERESHOLD

      public static final String PROP_MEMORY_THERESHOLD
      See Also:
    • PROP_MAX_CONTENT_SIZE

      public static final String PROP_MAX_CONTENT_SIZE
      See Also:
    • PROP_DEFAULT_TYPES_MAX_ITEMS

      public static final String PROP_DEFAULT_TYPES_MAX_ITEMS
      See Also:
    • PROP_DEFAULT_TYPES_DEPTH

      public static final String PROP_DEFAULT_TYPES_DEPTH
      See Also:
    • PROP_DEFAULT_MAX_ITEMS

      public static final String PROP_DEFAULT_MAX_ITEMS
      See Also:
    • PROP_DEFAULT_DEPTH

      public static final String PROP_DEFAULT_DEPTH
      See Also:
    • DEFAULT_TYPES_MAX_ITEMS

      public static final int DEFAULT_TYPES_MAX_ITEMS
      See Also:
    • DEFAULT_TYPES_DEPTH

      public static final int DEFAULT_TYPES_DEPTH
      See Also:
    • DEFAULT_MAX_ITEMS

      public static final int DEFAULT_MAX_ITEMS
      See Also:
    • DEFAULT_DEPTH

      public static final int DEFAULT_DEPTH
      See Also:
    • 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
  • Constructor Details

    • NuxeoCmisServiceFactory

      public NuxeoCmisServiceFactory()
  • Method Details

    • init

      public void init(Map<String,String> parameters)
      Specified by:
      init in interface org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
      Overrides:
      init in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
    • initParameters

      protected void initParameters(Map<String,String> parameters)
    • 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 interface org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
      Specified by:
      getService in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
    • getTempDirectory

      public File getTempDirectory()
      Specified by:
      getTempDirectory in interface org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
      Overrides:
      getTempDirectory in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
    • encryptTempFiles

      public boolean encryptTempFiles()
      Specified by:
      encryptTempFiles in interface org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
      Overrides:
      encryptTempFiles in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
    • getMemoryThreshold

      public int getMemoryThreshold()
      Specified by:
      getMemoryThreshold in interface org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
      Overrides:
      getMemoryThreshold in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
    • getMaxContentSize

      public long getMaxContentSize()
      Specified by:
      getMaxContentSize in interface org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
      Overrides:
      getMaxContentSize in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory