public class OpenDocumentBean extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
OpenDocumentBean.MemorizeAnnotationsBean
Bean used to memorize annotations.
|
Modifier and Type | Field and Description |
---|---|
static String |
ANNOTATION_COUNT
Property annotationCount in OpenDocumentBean.
|
static String |
ANNOTATIONS_INI
Property used to store the annotations of the current element.
|
static String |
DOCUMENT_FORMAT
Property used to memorize the document's formats.
|
static String |
DOCUMENT_ROTATE_ANGLE
Property used to store the angle the document was rotated.
|
static String |
VIRTUAL_VIEWER_ERROR
Property used to signal an error.
|
Constructor and Description |
---|
OpenDocumentBean(DocumentId documentId,
boolean currentRevision,
boolean editMode,
List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> elementList,
InputStream pageStream)
Instantiates a new open document bean.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String key,
Object value)
Adds the property.
|
int |
getCurrentElement()
Gets the current element.
|
String |
getCurrentFilename()
Gets the current filename.
|
DocumentArchiveMetaInfo.ElementArchiveMetaInfo |
getCurrentMetaInfo()
Gets the current element info.
|
DocumentId |
getDocumentId()
Gets the document id.
|
List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> |
getElements()
Gets the elements.
|
int |
getFirstElementNumber() |
String |
getFirstFilename()
Gets the filename of the first element that is not a chunk or a
structure-element.
|
PageList |
getPageList()
Reads the page list for this document.
|
Object |
getProperty(String key)
Gets the property.
|
Map<String,int[]> |
getSearchList()
Reads the search index list.
|
TemporaryDocumentId |
getTemporaryDocumentId() |
boolean |
hasProperty(String key)
Checks for property.
|
boolean |
isCurrentRevision()
Checks if current revision is set.
|
boolean |
isDocumentUpdated() |
boolean |
isEditMode()
Checks if edit mode is set.
|
boolean |
isTemporary() |
Object |
removeProperty(String key)
Removes the property.
|
void |
setCurrentElement(int element)
Sets the current element.
|
void |
setCurrentRevision(boolean currentRevision)
Sets the currentRevision flag.
|
void |
setDocumentId(DocumentId id)
Sets the document id.
|
void |
setDocumentUpdated(boolean documentUpdated) |
void |
setEditMode(boolean editMode)
Sets the edit mode.
|
void |
setElements(List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> elementList)
Sets the elements.
|
void |
setSearchList(Map<String,int[]> searchList)
Sets the search index list.
|
void |
setTemporaryDocumentId(TemporaryDocumentId tempDocId) |
String |
toString() |
public static final String ANNOTATION_COUNT
public static final String DOCUMENT_FORMAT
public static final String VIRTUAL_VIEWER_ERROR
public static final String DOCUMENT_ROTATE_ANGLE
public static final String ANNOTATIONS_INI
public OpenDocumentBean(DocumentId documentId, boolean currentRevision, boolean editMode, List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> elementList, InputStream pageStream)
documentId
- the document idcurrentRevision
- resolve current revision or not when displaying the documenteditMode
- edit mode of viewer enabled or disabledelementList
- the list of structure-elements of the documentpageStream
- stream containing the content of the page file or null if not availablepublic DocumentId getDocumentId()
public void setDocumentId(DocumentId id)
id
- the new document idpublic boolean isCurrentRevision()
public void setCurrentRevision(boolean currentRevision)
currentRevision
- true or falsepublic boolean isEditMode()
public void setEditMode(boolean editMode)
editMode
- the new edit modepublic List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> getElements()
public void setElements(List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> elementList)
elementList
- the new elementspublic String getFirstFilename()
public int getFirstElementNumber()
public String getCurrentFilename()
public int getCurrentElement()
public DocumentArchiveMetaInfo.ElementArchiveMetaInfo getCurrentMetaInfo()
public void setCurrentElement(int element)
element
- the new current elementpublic void setTemporaryDocumentId(TemporaryDocumentId tempDocId)
public TemporaryDocumentId getTemporaryDocumentId()
public boolean isTemporary()
public void addProperty(String key, Object value)
key
- the keyvalue
- the valuepublic Object removeProperty(String key)
key
- the keypublic Object getProperty(String key)
key
- the keypublic boolean hasProperty(String key)
key
- the keypublic PageList getPageList()
public final Map<String,int[]> getSearchList()
public final void setSearchList(Map<String,int[]> searchList)
searchList
- Search index listpublic boolean isDocumentUpdated()
public void setDocumentUpdated(boolean documentUpdated)
documentUpdated
- whether the document was updated or notCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.