public class ManualDerivateCreator extends java.lang.Object implements FileDerivateCreator
Constructor and Description |
---|
ManualDerivateCreator() |
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 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