|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.workplace.wcm.api.extensions.digitalasset.AbstractDigitalAssetResourceManagerPlugin
public abstract class AbstractDigitalAssetResourceManagerPlugin
Abstract helper class that implements the methods with default returns or exceptions as not implemented.
Constructor Summary | |
---|---|
AbstractDigitalAssetResourceManagerPlugin()
|
Method Summary | |
---|---|
DigitalAsset |
consumeSelectedAsset(java.lang.String arg0,
DigitalAsset asset)
Consumes a selected asset. |
java.io.InputStream |
getAssetInputStream(DigitalAsset arg0)
Gets InputStrem to the given DigitalAsset. |
DigitalAssetResourceSerializer |
getDigitalAssetResourceSerializer()
Serializer object to allow a DigitalAssetID and DigitalAssetMetaData to be serialized to and from Strings. |
boolean |
supportsInputStream()
Check if the provider supports InputStreams and the DigitalAssetResourceManagerPlugin.getAssetInputStream(DigitalAsset) method. |
boolean |
supportsType(java.lang.Class<? extends Resource> resourceType)
Check if the provider supports the given resource type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.workplace.wcm.api.extensions.digitalasset.DigitalAssetResourceManagerPlugin |
---|
canHandle, canHandle, createDigitalAssetID, getName, getProviderName, getRenderableDigitalAssetURLString, getRenderableRenditionNameString, getRenderableRenditionURLString, getRenditionInputStream |
Constructor Detail |
---|
public AbstractDigitalAssetResourceManagerPlugin()
Method Detail |
---|
public DigitalAsset consumeSelectedAsset(java.lang.String arg0, DigitalAsset asset) throws DigitalAssetException
DigitalAssetResourceManagerPlugin
The token parameter is the string provided by the chooser plugin when an asset is selected
consumeSelectedAsset
in interface DigitalAssetResourceManagerPlugin
arg0
- - selected path of a DigitalAssetasset
- - the current DigitalAsset into which the selected asset should be consumed into.
DigitalAssetException
- - thrown if any exception occurred getting the InputStreampublic java.io.InputStream getAssetInputStream(DigitalAsset arg0) throws DigitalAssetException, com.ibm.workplace.wcm.api.exceptions.PropertyRetrievalException
DigitalAssetResourceManagerPlugin
DigitalAssetResourceManagerPlugin.supportsInputStream()
if the provider does support input streams.
getAssetInputStream
in interface DigitalAssetResourceManagerPlugin
arg0
- - DigitalAsset the InputStream is to be retrieved for
DigitalAssetException
- - thrown if any exception occurred getting the InputStream
com.ibm.workplace.wcm.api.exceptions.PropertyRetrievalException
- if the file cannot be retrieved, or provider does not
support input streams.public DigitalAssetResourceSerializer getDigitalAssetResourceSerializer()
DigitalAssetResourceManagerPlugin
getDigitalAssetResourceSerializer
in interface DigitalAssetResourceManagerPlugin
public boolean supportsType(java.lang.Class<? extends Resource> resourceType)
DigitalAssetResourceManagerPlugin
supportsType
in interface DigitalAssetResourceManagerPlugin
resourceType
- - the resource type to check for
public boolean supportsInputStream()
DigitalAssetResourceManagerPlugin
DigitalAssetResourceManagerPlugin.getAssetInputStream(DigitalAsset)
method.
supportsInputStream
in interface DigitalAssetResourceManagerPlugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |