Class 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 Detail

      • AlfrescoCmisServiceFactory

        public AlfrescoCmisServiceFactory()
    • Method Detail

      • 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
      • init

        public void init​(java.util.Map<java.lang.String,​java.lang.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