Package org.exoplatform.onlyoffice
Class DocumentStatus
- java.lang.Object
-
- org.exoplatform.onlyoffice.DocumentStatus
-
public class DocumentStatus extends Object
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 Modifier and Type Class Description static classDocumentStatus.BuilderThe Class Builder.
-
Field Summary
Fields Modifier and Type Field Description protected BooleancoEditedThe coedited.protected StringcommentThe comment (used for saving a version of a document with comment on FileActivity)protected ConfigconfigThe config.protected longerrorThe error.protected BooleanforceSavedThe forcesaved (true if a document is forcesaved via Editor bar)protected StringkeyThe key.protected BooleansavedThe savedprotected LongstatusThe status.protected StringurlThe url.protected StringuserIdThe userId (used for saving the document content under this user)protected String[]usersThe users.
-
Constructor Summary
Constructors Constructor Description DocumentStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComment()Gets the comment.ConfiggetConfig()Gets the config.longgetError()Gets the error.StringgetKey()Gets the key.protected StringgetLastUser()Gets the last user (editor).protected LonggetStatus()Gets the status returned by Onlyoffice Document Server.protected StringgetUrl()Gets the url.StringgetUserId()Gets the userId.protected String[]getUsers()Gets the users.BooleanisCoedited()Gets the coEdited.BooleanisForcesaved()Gets the forcesaved.BooleanisSaved()Gets the isSaved.protected voidsetConfig(Config config)Sets the config.protected StringtoJSON()Return this config as JSON string.
-
-
-
Field Detail
-
key
protected String key
The key.
-
status
protected Long status
The status.
-
url
protected String url
The url.
-
users
protected String[] users
The users.
-
config
protected Config config
The config.
-
error
protected long error
The error.
-
coEdited
protected Boolean coEdited
The coedited.
-
forceSaved
protected Boolean forceSaved
The forcesaved (true if a document is forcesaved via Editor bar)
-
saved
protected Boolean saved
The saved
-
userId
protected String userId
The userId (used for saving the document content under this user)
-
comment
protected String comment
The comment (used for saving a version of a document with comment on FileActivity)
-
-
Method Detail
-
getConfig
public Config getConfig()
Gets the config.- Returns:
- the config
-
getError
public long getError()
Gets the error.- Returns:
- the error
-
getKey
public String getKey()
Gets the key.- Returns:
- the key
-
setConfig
protected void setConfig(Config config)
Sets the config.- Parameters:
config- the new config
-
getStatus
protected Long getStatus()
Gets the status returned by Onlyoffice Document Server.
See https://api.onlyoffice.com/editors/callback#status for details.- Returns:
- the status
-
getUrl
protected String getUrl()
Gets the url.- Returns:
- the url
-
getUsers
protected String[] getUsers()
Gets the users.- Returns:
- the users
-
getLastUser
protected String getLastUser()
Gets the last user (editor).- Returns:
- the last user (editor)
-
isCoedited
public Boolean isCoedited()
Gets the coEdited.- Returns:
- the coEdited
-
isForcesaved
public Boolean isForcesaved()
Gets the forcesaved.- Returns:
- the forcesaved
-
isSaved
public Boolean isSaved()
Gets the isSaved.- Returns:
- the isSaved
-
getUserId
public String getUserId()
Gets the userId.- Returns:
- the userId
-
getComment
public String getComment()
Gets the comment.- Returns:
- the coment
-
toJSON
protected String toJSON() throws org.exoplatform.ws.frameworks.json.impl.JsonException
Return this config as JSON string.- Returns:
- the string
- Throws:
org.exoplatform.ws.frameworks.json.impl.JsonException- the json exception
-
-