public class AlfrescoCmisServiceFactory
extends org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
Constructor and Description |
---|
AlfrescoCmisServiceFactory() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected AlfrescoCmisService |
getCmisServiceTarget(CMISConnector connector) |
long |
getMaxContentSize() |
int |
getMemoryThreshold() |
org.apache.chemistry.opencmis.commons.server.CmisService |
getService(org.apache.chemistry.opencmis.commons.server.CallContext context)
TODO:
We are producing new instances each time.
|
void |
init() |
void |
init(Map<String,String> parameters) |
void |
setAuthorityService(AuthorityService authorityService)
Sets the Authority Service.
|
void |
setCmisConnector(CMISConnector connector)
Sets the CMIS connector.
|
void |
setCmisControl(AlfrescoCmisServiceInterceptor cmisControl) |
void |
setCmisExceptions(AlfrescoCmisExceptionInterceptor cmisExceptions) |
void |
setCmisStreams(AlfrescoCmisStreamInterceptor cmisStreams) |
void |
setCmisTransactions(RetryingTransactionInterceptor cmisTransactions) |
void |
setMaxContentSize(double maxContentSize) |
void |
setMemoryThreshold(double memoryThreshold) |
public void setMemoryThreshold(double memoryThreshold)
memoryThreshold
- in KBpublic void setMaxContentSize(double maxContentSize)
maxContentSize
- in MBpublic int getMemoryThreshold()
getMemoryThreshold
in interface org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
getMemoryThreshold
in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
public long getMaxContentSize()
getMaxContentSize
in interface org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
getMaxContentSize
in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
public void setAuthorityService(AuthorityService authorityService)
public void setCmisConnector(CMISConnector connector)
public void setCmisTransactions(RetryingTransactionInterceptor cmisTransactions)
cmisTransactions
- the interceptor that applies appropriate transactionspublic void setCmisExceptions(AlfrescoCmisExceptionInterceptor cmisExceptions)
cmisExceptions
- interceptor to translate exceptionspublic void setCmisControl(AlfrescoCmisServiceInterceptor cmisControl)
cmisControl
- interceptor that provides logging and authentication checkspublic void setCmisStreams(AlfrescoCmisStreamInterceptor cmisStreams)
cmisStreams
- interceptor to create reusable ContentStreamspublic void init(Map<String,String> parameters)
init
in interface org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
init
in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
public void init()
public void destroy()
destroy
in interface org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
destroy
in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
public org.apache.chemistry.opencmis.commons.server.CmisService getService(org.apache.chemistry.opencmis.commons.server.CallContext context)
getService
in interface org.apache.chemistry.opencmis.commons.server.CmisServiceFactory
getService
in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
protected AlfrescoCmisService getCmisServiceTarget(CMISConnector connector)
Copyright © 2005–2017 Alfresco Software. All rights reserved.