Package com.saperion.ngc.model.document
Class ClassicConnectorPageArchiveMetaInfo
- java.lang.Object
-
- com.saperion.ngc.model.document.ClassicConnectorPageArchiveMetaInfo
-
- All Implemented Interfaces:
DocumentArchiveMetaInfo.ElementArchiveMetaInfo,java.io.Serializable
public class ClassicConnectorPageArchiveMetaInfo extends java.lang.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 wrapsSaDocInfo.ElementInfo- Author:
- jsc
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.saperion.ngc.model.document.intf.DocumentArchiveMetaInfo.ElementArchiveMetaInfo
MULTIPAGE_TIFF_INDICATOR
-
-
Constructor Summary
Constructors Constructor Description ClassicConnectorPageArchiveMetaInfo(com.saperion.intf.SaDocInfo.ElementInfo info, java.lang.String parentDocUid)constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDocUid()intgetFrameCount()java.lang.StringgetFullName()Returns the full name of the element as it was stored in the archive (with page-numbers for multi-page-tiffs but without path).java.lang.StringgetLinkUid()java.lang.StringgetName()Returns only the name of the element.intgetNumber()intgetPageCount()longgetSize()java.lang.StringgetStructureDocUid()intgetStructureLevel()com.saperion.intf.SaDocInfo.ElementTypegetType()java.util.PropertiesgetVariableData()booleanisMergedMultipageDocument()Returns true if this element is a multipage document (TIFF or scanned pages) which was merged to one document by the core server.booleanisMultipageTiff()Multipage tiff files contain @in full-name. booleanisSelected()booleanisVisible()Checks if this element should be visible in structure-views or not.
-
-
-
Method Detail
-
getNumber
public int getNumber()
- Specified by:
getNumberin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- Number of element
-
getFullName
public java.lang.String 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
public java.lang.String 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
public java.util.Properties 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
public java.lang.String getDocUid()
- Specified by:
getDocUidin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- the uid of the page
-
getLinkUid
public java.lang.String getLinkUid()
- Specified by:
getLinkUidin interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo- Returns:
- the uid of the linked document if the page is a link.
-
getStructureDocUid
public java.lang.String 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 @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
-
-