Class DocumentStatus
java.lang.Object
org.exoplatform.onlyoffice.DocumentStatus
Onlyoffice Config status as described in
callback handler
documentation. Created by The eXo Platform SAS
- Version:
- $Id: DocumentStatus.java 00000 Feb 12, 2016 pnedonosko $
- Author:
- Peter Nedonosko
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BooleanThe coedited.protected StringThe comment (used for saving a version of a document with comment on FileActivity)protected ConfigThe config.protected longThe error.protected BooleanThe forcesaved (true if a document is forcesaved via Editor bar)protected StringThe key.protected BooleanThe savedprotected LongThe status.protected StringThe url.protected StringThe userId (used for saving the document content under this user)protected String[]The users. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the comment.Gets the config.longgetError()Gets the error.getKey()Gets the key.protected StringGets the last user (editor).protected LongGets the status returned by Onlyoffice Document Server.protected StringgetUrl()Gets the url.Gets the userId.protected String[]getUsers()Gets the users.Gets the coEdited.Gets the forcesaved.isSaved()Gets the isSaved.protected voidSets the config.protected StringtoJSON()Return this config as JSON string.
-
Field Details
-
key
The key. -
status
The status. -
url
The url. -
users
The users. -
config
The config. -
error
protected long errorThe error. -
coEdited
The coedited. -
forceSaved
The forcesaved (true if a document is forcesaved via Editor bar) -
saved
The saved -
userId
The userId (used for saving the document content under this user) -
comment
The comment (used for saving a version of a document with comment on FileActivity)
-
-
Constructor Details
-
DocumentStatus
public DocumentStatus()
-
-
Method Details
-
getConfig
-
getError
public long getError()Gets the error.- Returns:
- the error
-
getKey
-
setConfig
-
getStatus
Gets the status returned by Onlyoffice Document Server.
See https://api.onlyoffice.com/editors/callback#status for details.- Returns:
- the status
-
getUrl
-
getUsers
-
getLastUser
-
isCoedited
-
isForcesaved
-
isSaved
-
getUserId
-
getComment
-
toJSON
Return this config as JSON string.- Returns:
- the string
- Throws:
org.exoplatform.ws.frameworks.json.impl.JsonException- the json exception
-