Class AlfrescoCmisServiceFactory

java.lang.Object
org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
org.alfresco.opencmis.AlfrescoCmisServiceFactory
All Implemented Interfaces:
org.apache.chemistry.opencmis.commons.server.CmisServiceFactory

public class AlfrescoCmisServiceFactory extends org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
Factory for OpenCMIS service objects.
Author:
florian.mueller, Derek Hulley
  • Constructor Details

    • AlfrescoCmisServiceFactory

      public AlfrescoCmisServiceFactory()
  • Method Details

    • setMemoryThreshold

      public void setMemoryThreshold(double memoryThreshold)
      Parameters:
      memoryThreshold - in KB
    • setMaxContentSize

      public void setMaxContentSize(double maxContentSize)
      Parameters:
      maxContentSize - in MB
    • 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
    • setAuthorityService

      public void setAuthorityService(AuthorityService authorityService)
      Sets the Authority Service.
    • setCmisConnector

      public void setCmisConnector(CMISConnector connector)
      Sets the CMIS connector.
    • setCmisTransactions

      public void setCmisTransactions(RetryingTransactionInterceptor cmisTransactions)
      Parameters:
      cmisTransactions - the interceptor that applies appropriate transactions
    • setCmisExceptions

      public void setCmisExceptions(AlfrescoCmisExceptionInterceptor cmisExceptions)
      Parameters:
      cmisExceptions - interceptor to translate exceptions
    • setCmisControl

      public void setCmisControl(AlfrescoCmisServiceInterceptor cmisControl)
      Parameters:
      cmisControl - interceptor that provides logging and authentication checks
    • setCmisStreams

      public void setCmisStreams(AlfrescoCmisStreamInterceptor cmisStreams)
      Parameters:
      cmisStreams - interceptor to create reusable ContentStreams
    • setCmisHolder

      public void setCmisHolder(CMISTransactionAwareHolderInterceptor cmisHolder)
    • getCmisCreateDocRequestRenditionsSet

      public String getCmisCreateDocRequestRenditionsSet()
    • setCmisCreateDocRequestRenditionsSet

      public void setCmisCreateDocRequestRenditionsSet(String cmisCreateDocRequestRenditionsSet)
    • 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
    • init

      public void init()
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
      Overrides:
      destroy in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
    • getService

      public org.apache.chemistry.opencmis.commons.server.CmisService getService(org.apache.chemistry.opencmis.commons.server.CallContext context)
      TODO: We are producing new instances each time.
      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
    • getCmisServiceTarget

      protected AlfrescoCmisService getCmisServiceTarget(CMISConnector connector)