Package org.exoplatform.onlyoffice
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
Gets the config.- Returns:
- the config
-
getError
public long getError()Gets the error.- Returns:
- the error
-
getKey
Gets the key.- Returns:
- the key
-
setConfig
Sets the config.- Parameters:
config- the new config
-
getStatus
Gets the status returned by Onlyoffice Document Server.
See https://api.onlyoffice.com/editors/callback#status for details.- Returns:
- the status
-
getUrl
Gets the url.- Returns:
- the url
-
getUsers
Gets the users.- Returns:
- the users
-
getLastUser
Gets the last user (editor).- Returns:
- the last user (editor)
-
isCoedited
Gets the coEdited.- Returns:
- the coEdited
-
isForcesaved
Gets the forcesaved.- Returns:
- the forcesaved
-
isSaved
Gets the isSaved.- Returns:
- the isSaved
-
getUserId
Gets the userId.- Returns:
- the userId
-
getComment
Gets the comment.- Returns:
- the coment
-
toJSON
Return this config as JSON string.- Returns:
- the string
- Throws:
org.exoplatform.ws.frameworks.json.impl.JsonException- the json exception
-