public class ThumbnailDerivateCreator extends java.lang.Object implements FileDerivateCreator
Modifier and Type | Class and Description |
---|---|
static class |
ThumbnailDerivateCreator.ThumbnailSize |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DBATTRIB_THUMBNAIL_SIZES |
static java.lang.String |
DEFAULT_THUMBNAIL_SIZES |
static java.util.Set<java.lang.String> |
SUPPORTED_MIMETYPES |
Constructor and Description |
---|
ThumbnailDerivateCreator() |
Modifier and Type | Method and Description |
---|---|
void |
createDerivate(WGA wga,
de.innovationgate.webgate.api.WGContent content,
de.innovationgate.webgate.api.WGFileMetaData md,
DerivateInfo derivateInfo,
java.io.OutputStream out)
Should create the derivate of the given derivate info for the given attachment and write the data to the given output stream
|
java.util.Set<DerivateInfo> |
getDerivateInfos(WGA wga,
de.innovationgate.webgate.api.WGContent content,
de.innovationgate.webgate.api.WGFileMetaData md)
Returns a list of names for the derivates that this creator can create for the given original file.
|
public static final java.lang.String DBATTRIB_THUMBNAIL_SIZES
public static final java.lang.String DEFAULT_THUMBNAIL_SIZES
public static final java.util.Set<java.lang.String> SUPPORTED_MIMETYPES
public java.util.Set<DerivateInfo> getDerivateInfos(WGA wga, de.innovationgate.webgate.api.WGContent content, de.innovationgate.webgate.api.WGFileMetaData md) throws de.innovationgate.webgate.api.WGException
FileDerivateCreator
getDerivateInfos
in interface FileDerivateCreator
md
- The metadata of the original fileDerivateInfo
objects describing derivates that can be created for the given file.de.innovationgate.webgate.api.WGException
public void createDerivate(WGA wga, de.innovationgate.webgate.api.WGContent content, de.innovationgate.webgate.api.WGFileMetaData md, DerivateInfo derivateInfo, java.io.OutputStream out) throws de.innovationgate.webgate.api.WGException
FileDerivateCreator
createDerivate
in interface FileDerivateCreator
wga
- WGA context objectcontent
- The content holding the original filemd
- The metadata of the original file attachment for which a derivate should be createdderivateInfo
- The derivate info of the derivate that should be created. This is an instance of this class that was previously returned from FileDerivateCreator.getDerivateInfos(WGA, WGContent, WGFileMetaData)
.out
- The output stream where to write the derivate data tode.innovationgate.webgate.api.WGException