Class BinaryProviderDelegate
java.lang.Object
org.exoplatform.commons.file.resource.BinaryProviderDelegate
- All Implemented Interfaces:
BinaryProvider,org.picocontainer.Startable
public class BinaryProviderDelegate
extends Object
implements BinaryProvider, org.picocontainer.Startable
This service class allow to detect the implementation of File RDBMS API to
use as Binary provider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceProviderPlugin(ResourceProviderPlugin resourceProviderPlugin) Add a resourceProvider pluginbooleanbyte[]getFilePath(String name) getFilePath(FileInfo fileInfo) longlastModified(String name) voidvoidput(String name, InputStream data) voidvoidbooleanvoidstart()voidstop()
-
Constructor Details
-
BinaryProviderDelegate
public BinaryProviderDelegate(org.exoplatform.container.xml.InitParams initParams)
-
-
Method Details
-
put
- Specified by:
putin interfaceBinaryProvider- Throws:
IOException
-
put
- Specified by:
putin interfaceBinaryProvider- Throws:
IOException
-
put
- Specified by:
putin interfaceBinaryProvider- Throws:
IOException
-
getStream
- Specified by:
getStreamin interfaceBinaryProvider
-
getFilePath
- Specified by:
getFilePathin interfaceBinaryProvider- Throws:
IOException
-
getFilePath
- Specified by:
getFilePathin interfaceBinaryProvider- Throws:
IOException
-
getBytes
- Specified by:
getBytesin interfaceBinaryProvider
-
remove
- Specified by:
removein interfaceBinaryProvider- Throws:
IOException
-
remove
- Specified by:
removein interfaceBinaryProvider- Throws:
IOException
-
exists
- Specified by:
existsin interfaceBinaryProvider- Throws:
IOException
-
lastModified
- Specified by:
lastModifiedin interfaceBinaryProvider- Throws:
IOException
-
getURL
- Specified by:
getURLin interfaceBinaryProvider
-
getLocation
- Specified by:
getLocationin interfaceBinaryProvider
-
addResourceProviderPlugin
Add a resourceProvider plugin- Parameters:
resourceProviderPlugin- resourceProvider plugin to add
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-