Package com.saperion.ngc.servlet
Interface AnnotationConverter
-
- All Known Implementing Classes:
JadiceAnnotationConverter
public interface AnnotationConverterInterface for annotation-converters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]convert(java.lang.String original, java.lang.String ixosAnnotationsIni, int ixosPage)Converts the annotations to the desired format.voidsetDimension(int width, int height)Set document dimension.voidsetDocumentInfos(OpenDocumentBean openDocumentBean)Used to pass information about the document to the converter.voidsetEmpty(boolean empty)Used to notify the converter that the document has no annotations.voidsetSession(javax.servlet.http.HttpSession session)Passes the current session to the converter, if it is available.voidsetViewerId(java.lang.String viewerId)Used to pass the ID of the viewer that requested the annotations to the converter.
-
-
-
Method Detail
-
setSession
void setSession(javax.servlet.http.HttpSession session)
Passes the current session to the converter, if it is available.- Parameters:
session- the session
-
setEmpty
void setEmpty(boolean empty)
Used to notify the converter that the document has no annotations.- Parameters:
empty- true if the document has no annotations
-
setDocumentInfos
void setDocumentInfos(OpenDocumentBean openDocumentBean)
Used to pass information about the document to the converter.- Parameters:
openDocumentBean- the bean containing information about the opened document
-
convert
byte[] convert(java.lang.String original, java.lang.String ixosAnnotationsIni, int ixosPage) throws ConvertAnnotationExceptionConverts the annotations to the desired format.- Parameters:
original- original annotations represented as StringixosAnnotationsIni- IXOS annotationsixosPage- IXOS page number- Returns:
- converted annotations represented as byte array
- Throws:
ConvertAnnotationException- when converting the annotations failed
-
setViewerId
void setViewerId(java.lang.String viewerId)
Used to pass the ID of the viewer that requested the annotations to the converter.- Parameters:
viewerId- ID of the viewer
-
setDimension
void setDimension(int width, int height)Set document dimension.- Parameters:
width- Widthheight- Height
-
-