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.String
getDocUid()
int
getFrameCount()
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).java.lang.String
getLinkUid()
java.lang.String
getName()
Returns only the name of the element.int
getNumber()
int
getPageCount()
long
getSize()
java.lang.String
getStructureDocUid()
int
getStructureLevel()
com.saperion.intf.SaDocInfo.ElementType
getType()
java.util.Properties
getVariableData()
boolean
isMergedMultipageDocument()
Returns true if this element is a multipage document (TIFF or scanned pages) which was merged to one document by the core server.boolean
isMultipageTiff()
Multipage tiff files contain @in full-name. boolean
isSelected()
boolean
isVisible()
Checks if this element should be visible in structure-views or not.
-
-
-
Method Detail
-
getNumber
public int getNumber()
- Specified by:
getNumber
in 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:
getFullName
in 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:
getName
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- Element name
-
getType
public com.saperion.intf.SaDocInfo.ElementType getType()
- Specified by:
getType
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- Element type
-
isSelected
public boolean isSelected()
- Specified by:
isSelected
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- True, if selected
-
getVariableData
public java.util.Properties getVariableData()
- Specified by:
getVariableData
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- element variable data
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- element's size
-
getPageCount
public int getPageCount()
- Specified by:
getPageCount
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- the number of pages (for files with several pages)
-
getFrameCount
public int getFrameCount()
- Specified by:
getFrameCount
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- the number of frames
-
getDocUid
public java.lang.String getDocUid()
- Specified by:
getDocUid
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- the uid of the page
-
getLinkUid
public java.lang.String getLinkUid()
- Specified by:
getLinkUid
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- the uid of the linked document if the page is a link.
-
getStructureDocUid
public java.lang.String getStructureDocUid()
- Specified by:
getStructureDocUid
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- the uid of structure which contains the document / page
-
getStructureLevel
public int getStructureLevel()
- Specified by:
getStructureLevel
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- the element's level in the structure hierarchy. 0 indicates unstructured document..
-
isMultipageTiff
public boolean isMultipageTiff()
Description copied from interface:DocumentArchiveMetaInfo.ElementArchiveMetaInfo
Multipage tiff files contain @in full-name. - Specified by:
isMultipageTiff
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- True if the Element is a multipage tiff. False else.
-
isMergedMultipageDocument
public boolean isMergedMultipageDocument()
Description copied from interface:DocumentArchiveMetaInfo.ElementArchiveMetaInfo
Returns true if this element is a multipage document (TIFF or scanned pages) which was merged to one document by the core server.- Specified by:
isMergedMultipageDocument
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
- Returns:
- true if merged document
-
isVisible
public boolean isVisible()
Description copied from interface:DocumentArchiveMetaInfo.ElementArchiveMetaInfo
Checks 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:
isVisible
in interfaceDocumentArchiveMetaInfo.ElementArchiveMetaInfo
-
-