public class CacheableFactory extends Object
Cache
.CacheableFactory
.setInstance(new YourCustomCacheableFactory())Constructor and Description |
---|
CacheableFactory() |
Modifier and Type | Method and Description |
---|---|
static CacheableFactory |
getInstance()
Gets instance of
CacheableFactory |
ArchiveViewInfo |
newArchiveViewInfo(FileType fileType,
List<Page> pages,
List<String> folders)
Creates implementation of ArchiveViewInfo interface
|
Attachment |
newAttachment(String fileName,
String filePath)
Creates implementation of LotusNotesViewInfo interface
|
Attachment |
newAttachment(String id,
String fileName,
String filePath,
FileType fileType,
long size)
Creates implementation of LotusNotesViewInfo interface
|
Attachment |
newAttachment(String id,
String fileName,
String filePath,
long size)
Creates implementation of LotusNotesViewInfo interface
|
CadViewInfo |
newCadViewInfo(FileType fileType,
List<Page> pages,
List<Layer> layers,
List<Layout> layouts)
Creates implementation of LotusNotesViewInfo interface
|
Character |
newCharacter(char character,
double x,
double y,
double width,
double height)
Creates implementation of LotusNotesViewInfo interface
|
FileInfo |
newFileInfo(FileType fileType)
Creates implementation of LotusNotesViewInfo interface
|
Layer |
newLayer(String name)
Creates implementation of LotusNotesViewInfo interface
|
Layer |
newLayer(String name,
boolean visible)
Creates implementation of LotusNotesViewInfo interface
|
Layout |
newLayout(String name,
double width,
double height)
Creates implementation of LotusNotesViewInfo interface
|
Line |
newLine(String line,
double x,
double y,
double width,
double height,
List<Word> words)
Creates implementation of Line interface
|
LotusNotesViewInfo |
newLotusNotesViewInfo(FileType fileType,
List<Page> pages,
int notesCount)
Creates implementation of
LotusNotesViewInfo interface |
com.groupdocs.viewer.results.MboxViewInfo |
newMboxViewInfo(FileType fileType,
List<Page> pages,
int notesCount)
Creates implementation of TextElement interface
|
OutlookViewInfo |
newOutlookViewInfo(FileType fileType,
List<Page> pages,
List<String> folders)
Creates implementation of LotusNotesViewInfo interface
|
Page |
newPage(int number,
boolean visible)
Creates implementation of LotusNotesViewInfo interface
|
Page |
newPage(int number,
boolean visible,
int width,
int height)
Creates implementation of LotusNotesViewInfo interface
|
Page |
newPage(int number,
boolean visible,
int width,
int height,
List<Line> lines)
Creates implementation of LotusNotesViewInfo interface
|
Page |
newPage(int number,
String name,
boolean visible)
Creates implementation of LotusNotesViewInfo interface
|
Page |
newPage(int number,
String name,
boolean visible,
int width,
int height)
Creates implementation of LotusNotesViewInfo interface
|
Page |
newPage(int number,
String name,
boolean visible,
int width,
int height,
List<Line> lines)
Creates implementation of LotusNotesViewInfo interface
|
PdfViewInfo |
newPdfViewInfo(FileType fileType,
List<Page> pages,
boolean printingAllowed)
Creates implementation of LotusNotesViewInfo interface
|
ProjectManagementViewInfo |
newProjectManagementViewInfo(FileType fileType,
List<Page> pages,
Date startDate,
Date endDate)
Creates implementation of LotusNotesViewInfo interface
|
<T> TextElement<T> |
newTextElement(T value,
double x,
double y,
double width,
double height)
Creates implementation of TextElement interface
|
ViewInfo |
newViewInfo(FileType fileType,
List<Page> pages)
Creates implementation of
ViewInfo interface |
Word |
newWord(String word,
double x,
double y,
double width,
double height,
List<Character> characters)
Creates implementation of LotusNotesViewInfo interface
|
static void |
setInstance(CacheableFactory instance)
Sets instance of
CacheableFactory |
public static CacheableFactory getInstance()
CacheableFactory
CacheableFactory
public ArchiveViewInfo newArchiveViewInfo(FileType fileType, List<Page> pages, List<String> folders)
fileType
- file typepages
- pagesfolders
- foldersArchiveViewInfo
implementationpublic Attachment newAttachment(String fileName, String filePath)
fileName
- file namefilePath
- Attachment relative path e.g. Attachment
implementationpublic Attachment newAttachment(String id, String fileName, String filePath, FileType fileType, long size)
id
- idfileName
- file namefilePath
- Attachment relative path e.g. fileType
- file typesize
- sizeAttachment
implementationpublic Attachment newAttachment(String id, String fileName, String filePath, long size)
id
- idfileName
- file namefilePath
- Attachment relative path e.g. size
- sizeAttachment
implementationpublic CadViewInfo newCadViewInfo(FileType fileType, List<Page> pages, List<Layer> layers, List<Layout> layouts)
fileType
- file typepages
- pageslayers
- layerslayouts
- layoutsCadViewInfo
implementationpublic Character newCharacter(char character, double x, double y, double width, double height)
character
- characterx
- xy
- ywidth
- widthheight
- heightCharacter
implementationpublic FileInfo newFileInfo(FileType fileType)
fileType
- file typeFileInfo
implementationpublic Layer newLayer(String name)
name
- nameLayer
implementationpublic Layer newLayer(String name, boolean visible)
name
- namevisible
- visibilityLayer
implementationpublic Layout newLayout(String name, double width, double height)
name
- namewidth
- widthheight
- heightLayout
implementationpublic Line newLine(String line, double x, double y, double width, double height, List<Word> words)
line
- The line.x
- The X coordinate of the highest left point on the page layout where the rectangle that contains line begins.y
- The Y coordinate of the highest left point on the page layout where the rectangle that contains line begins.width
- The width of the rectangle which contains the line (in pixels).height
- The height of the rectangle which contains the line (in pixels).words
- The words contained by the line.public LotusNotesViewInfo newLotusNotesViewInfo(FileType fileType, List<Page> pages, int notesCount)
LotusNotesViewInfo
interfacefileType
- file typepages
- pagesnotesCount
- nodes countLotusNotesViewInfo
implementationpublic com.groupdocs.viewer.results.MboxViewInfo newMboxViewInfo(FileType fileType, List<Page> pages, int notesCount)
fileType
- The type of the file.pages
- The list of pages to view.notesCount
- The notes count contained by the Lotus database storage file.MboxViewInfo
implementationpublic OutlookViewInfo newOutlookViewInfo(FileType fileType, List<Page> pages, List<String> folders)
fileType
- file typepages
- pagesfolders
- foldersOutlookViewInfo
implementationpublic Page newPage(int number, boolean visible)
number
- numbervisible
- visibilityPage
implementationpublic Page newPage(int number, boolean visible, int width, int height)
number
- numbervisible
- visibilitywidth
- widthheight
- heightPage
implementationpublic Page newPage(int number, boolean visible, int width, int height, List<Line> lines)
number
- numbervisible
- visibilitywidth
- widthheight
- heightlines
- linesPage
implementationpublic Page newPage(int number, String name, boolean visible)
number
- numbername
- namevisible
- visibilityPage
implementationpublic Page newPage(int number, String name, boolean visible, int width, int height)
number
- numbername
- namevisible
- visibilitywidth
- widthheight
- heightPage
implementationpublic Page newPage(int number, String name, boolean visible, int width, int height, List<Line> lines)
number
- numbername
- namevisible
- visibilitywidth
- widthheight
- heightlines
- linesPage
implementationpublic PdfViewInfo newPdfViewInfo(FileType fileType, List<Page> pages, boolean printingAllowed)
fileType
- file typepages
- pagesprintingAllowed
- printing allowedPdfViewInfo
implementationpublic ProjectManagementViewInfo newProjectManagementViewInfo(FileType fileType, List<Page> pages, Date startDate, Date endDate)
fileType
- file typepages
- pagesstartDate
- start dateendDate
- end dateProjectManagementViewInfo
implementationpublic <T> TextElement<T> newTextElement(T value, double x, double y, double width, double height)
value
- the valuex
- xy
- ywidth
- widthheight
- heightTextElement
implementationpublic ViewInfo newViewInfo(FileType fileType, List<Page> pages)
ViewInfo
interfacefileType
- file typepages
- pagesViewInfo
implementationpublic Word newWord(String word, double x, double y, double width, double height, List<Character> characters)
word
- the wordx
- xy
- ywidth
- widthheight
- heightcharacters
- charactersWord
implementationpublic static void setInstance(CacheableFactory instance)
CacheableFactory
instance
- instance of CacheableFactory