public interface CmisServiceFactory
CmisService
objects.Modifier and Type | Method and Description |
---|---|
void |
destroy()
Cleans up the the factory instance.
|
boolean |
encryptTempFiles()
Indicates if temporary files should be encrypted.
|
long |
getMaxContentSize()
Returns the maximal content size in bytes.
|
int |
getMemoryThreshold()
Returns up to which size content should be kept in memory.
|
CmisService |
getService(CallContext context)
Returns a
CmisService object for the given CallContext . |
File |
getTempDirectory()
Returns the absolute path of the directory that should be used for
temporary files.
|
TempStoreOutputStream |
getTempFileOutputStream(String repositoryId)
Returns a
TempStoreOutputStream object for the given
CallContext . |
void |
init(Map<String,String> parameters)
Initializes the factory instance.
|
void destroy()
CmisService getService(CallContext context)
CmisService
object for the given CallContext
.
When the CmisService
object is not longer needed
CmisService.close()
will be called.context
- the call contextCmisService
instance, never null
File getTempDirectory()
boolean encryptTempFiles()
true
if temporary files should be encrypted,
false
otherwisegetTempDirectory()
int getMemoryThreshold()
getTempDirectory()
long getMaxContentSize()
CmisConstraintException
is thrown.TempStoreOutputStream getTempFileOutputStream(String repositoryId)
TempStoreOutputStream
object for the given
CallContext
.
This method is only called for the AtomPub and the Browser binding
requests. The Web Services binding always used temporary files (see
getTempDirectory()
).
If null
is returned, a default implementation that stores the
document content in temporary files is used (see
getTempDirectory()
).repositoryId
- the repository ID or null
if the repository ID is
unknownTempStoreOutputStream
instance or null
to use
the default implementationCopyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.