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.AbstractServiceFactoryFactory for OpenCMIS service objects.- Author:
- florian.mueller, Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description AlfrescoCmisServiceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()protected AlfrescoCmisServicegetCmisServiceTarget(CMISConnector connector)longgetMaxContentSize()intgetMemoryThreshold()org.apache.chemistry.opencmis.commons.server.CmisServicegetService(org.apache.chemistry.opencmis.commons.server.CallContext context)TODO: We are producing new instances each time.voidinit()voidinit(java.util.Map<java.lang.String,java.lang.String> parameters)voidsetAuthorityService(AuthorityService authorityService)Sets the Authority Service.voidsetCmisConnector(CMISConnector connector)Sets the CMIS connector.voidsetCmisControl(AlfrescoCmisServiceInterceptor cmisControl)voidsetCmisExceptions(AlfrescoCmisExceptionInterceptor cmisExceptions)voidsetCmisHolder(CMISTransactionAwareHolderInterceptor cmisHolder)voidsetCmisStreams(AlfrescoCmisStreamInterceptor cmisStreams)voidsetCmisTransactions(RetryingTransactionInterceptor cmisTransactions)voidsetMaxContentSize(double maxContentSize)voidsetMemoryThreshold(double memoryThreshold)
-
-
-
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:
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
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)
-
init
public void init(java.util.Map<java.lang.String,java.lang.String> parameters)
- 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
protected AlfrescoCmisService getCmisServiceTarget(CMISConnector connector)
-
-