Package com.saperion.ngc.model.document
Class ClassicConnectorPageArchiveMetaInfo
java.lang.Object
com.saperion.ngc.model.document.ClassicConnectorPageArchiveMetaInfo
- All Implemented Interfaces:
DocumentArchiveMetaInfo.ElementArchiveMetaInfo,Serializable
public class ClassicConnectorPageArchiveMetaInfo
extends Object
implements DocumentArchiveMetaInfo.ElementArchiveMetaInfo
Holds the meta information about a page of a document that is stored in the archive and obtained
by the classic connector. Actually wraps
SaDocInfo.ElementInfo- Author:
- jsc
- See Also:
-
Field Summary
Fields inherited from interface com.saperion.ngc.model.document.intf.DocumentArchiveMetaInfo.ElementArchiveMetaInfo
MULTIPAGE_TIFF_INDICATOR -
Constructor Summary
ConstructorsConstructorDescriptionClassicConnectorPageArchiveMetaInfo(com.saperion.intf.SaDocInfo.ElementInfo info, String parentDocUid) constructor. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the full name of the element as it was stored in the archive (with page-numbers for multi-page-tiffs but without path).getName()Returns only the name of the element.intintlonggetSize()intcom.saperion.intf.SaDocInfo.ElementTypegetType()booleanReturns true if this element is a multipage document (TIFF or scanned pages) which was merged to one document by the core server.booleanMultipage tiff files contain @<page#> in full-name.booleanbooleanChecks if this element should be visible in structure-views or not.
-
Constructor Details
-
ClassicConnectorPageArchiveMetaInfo
public ClassicConnectorPageArchiveMetaInfo(com.saperion.intf.SaDocInfo.ElementInfo info, String parentDocUid) constructor.- Parameters:
info- The wrapped Elementinfo
-
-
Method Details
-
getNumber
public int getNumber()- Specified by:
getNumberin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- Number of element
-
getFullName
Returns the full name of the element as it was stored in the archive (with page-numbers for multi-page-tiffs but without path).- Specified by:
getFullNamein interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- full name of the element
-
getName
Returns only the name of the element. For multi-page tiffs, the page number will be removed.- Specified by:
getNamein interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- Element name
-
getType
public com.saperion.intf.SaDocInfo.ElementType getType()- Specified by:
getTypein interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- Element type
-
isSelected
public boolean isSelected()- Specified by:
isSelectedin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- True, if selected
-
getVariableData
- Specified by:
getVariableDatain interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- element variable data
-
getSize
public long getSize()- Specified by:
getSizein interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- element's size
-
getPageCount
public int getPageCount()- Specified by:
getPageCountin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- the number of pages (for files with several pages)
-
getFrameCount
public int getFrameCount()- Specified by:
getFrameCountin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- the number of frames
-
getDocUid
- Specified by:
getDocUidin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- the uid of the page
-
getLinkUid
- Specified by:
getLinkUidin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- the uid of the linked document if the page is a link.
-
getStructureDocUid
- Specified by:
getStructureDocUidin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- the uid of structure which contains the document / page
-
getStructureLevel
public int getStructureLevel()- Specified by:
getStructureLevelin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- the element's level in the structure hierarchy. 0 indicates unstructured document..
-
isMultipageTiff
public boolean isMultipageTiff()Description copied from interface:DocumentArchiveMetaInfo.ElementArchiveMetaInfoMultipage tiff files contain @<page#> in full-name.- Specified by:
isMultipageTiffin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- True if the Element is a multipage tiff. False else.
-
isMergedMultipageDocument
public boolean isMergedMultipageDocument()Description copied from interface:DocumentArchiveMetaInfo.ElementArchiveMetaInfoReturns true if this element is a multipage document (TIFF or scanned pages) which was merged to one document by the core server.- Specified by:
isMergedMultipageDocumentin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- true if merged document
-
isVisible
public boolean isVisible()Description copied from interface:DocumentArchiveMetaInfo.ElementArchiveMetaInfoChecks if this element should be visible in structure-views or not. Note: Currently, this is only used by the SAP-Viewer to hide sapfile.txt files.- Specified by:
isVisiblein interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
-