public interface FileDerivateCreator
FileDerivateCreator
can create multiple derivates.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.
|
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
md
- The metadata of the original fileDerivateInfo
objects describing derivates that can be created for the given file.de.innovationgate.webgate.api.WGException
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
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 getDerivateInfos(WGA, WGContent, WGFileMetaData)
.out
- The output stream where to write the derivate data tode.innovationgate.webgate.api.WGException