Package org.alfresco.opencmis
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()protected AlfrescoCmisServicegetCmisServiceTarget(CMISConnector connector) longintorg.apache.chemistry.opencmis.commons.server.CmisServicegetService(org.apache.chemistry.opencmis.commons.server.CallContext context) TODO: We are producing new instances each time.voidinit()voidvoidsetAuthorityService(AuthorityService authorityService) Sets the Authority Service.voidsetCmisConnector(CMISConnector connector) Sets the CMIS connector.voidsetCmisControl(AlfrescoCmisServiceInterceptor cmisControl) voidsetCmisCreateDocRequestRenditionsSet(String cmisCreateDocRequestRenditionsSet) voidsetCmisExceptions(AlfrescoCmisExceptionInterceptor cmisExceptions) voidsetCmisHolder(CMISTransactionAwareHolderInterceptor cmisHolder) voidsetCmisStreams(AlfrescoCmisStreamInterceptor cmisStreams) voidsetCmisTransactions(RetryingTransactionInterceptor cmisTransactions) voidsetMaxContentSize(double maxContentSize) voidsetMemoryThreshold(double memoryThreshold) Methods inherited from class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
encryptTempFiles, getTempDirectory, getTempFileOutputStream
-
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:
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
-
setAuthorityService
Sets the Authority Service. -
setCmisConnector
Sets the CMIS connector. -
setCmisTransactions
- Parameters:
cmisTransactions- the interceptor that applies appropriate transactions
-
setCmisExceptions
- Parameters:
cmisExceptions- interceptor to translate exceptions
-
setCmisControl
- Parameters:
cmisControl- interceptor that provides logging and authentication checks
-
setCmisStreams
- Parameters:
cmisStreams- interceptor to create reusable ContentStreams
-
setCmisHolder
-
getCmisCreateDocRequestRenditionsSet
-
setCmisCreateDocRequestRenditionsSet
-
init
- Specified by:
initin interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory- Overrides:
initin classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
init
public void init() -
destroy
public void destroy()- Specified by:
destroyin interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory- Overrides:
destroyin classorg.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:
getServicein interfaceorg.apache.chemistry.opencmis.commons.server.CmisServiceFactory- Specified by:
getServicein classorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
-
getCmisServiceTarget
-