public class Config extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Config.Builder |
static class |
Config.Document |
static class |
Config.Editor |
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleDateFormat |
DATETIME_FORMAT |
protected Config.Document |
document |
protected String |
documentserverJsUrl |
protected String |
documentserverUrl |
protected String |
documentType |
protected Config.Editor |
editorConfig |
protected String |
error |
protected javax.jcr.Node |
node |
protected Boolean |
open
Marker of editor state.
|
protected String |
path |
protected String |
platformUrl |
protected String |
workspace |
| Modifier | Constructor and Description |
|---|---|
protected |
Config(String documentserverUrl,
String platformUrl,
String workspace,
String path,
String documentType,
Config.Document document,
Config.Editor editor)
Config constructor. |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
callbackUrl(String platformUrl,
String userId,
String key) |
void |
close()
Mark this this config as closed: user already closed this editor.
|
protected static Config.Builder |
editor(String documentserverUrl,
String workspace,
String path,
String documentType) |
boolean |
equals(Object obj) |
protected static String |
fileUrl(String platformUrl,
String userId,
String key) |
Config |
forUser(String id,
String firstName,
String lastName,
String lang)
Create a copy of this editor but for another given user.
|
javax.jcr.Node |
getContextNode() |
Config.Document |
getDocument() |
String |
getDocumentserverJsUrl() |
String |
getDocumentserverUrl() |
String |
getDocumentType() |
Config.Editor |
getEditorConfig() |
String |
getError() |
String |
getPath() |
String |
getWorkspace() |
boolean |
hasError() |
boolean |
isClosed() |
boolean |
isCreated() |
boolean |
isOpen() |
void |
open()
Mark this this config as open: user opened this editor.
|
protected void |
setContextNode(javax.jcr.Node node) |
void |
setError(String error) |
String |
toString() |
protected static final SimpleDateFormat DATETIME_FORMAT
protected final String documentserverUrl
protected final String documentserverJsUrl
protected final String platformUrl
protected final String workspace
protected final String path
protected final String documentType
protected final Config.Document document
protected final Config.Editor editorConfig
protected String error
protected transient javax.jcr.Node node
protected transient Boolean open
protected Config(String documentserverUrl, String platformUrl, String workspace, String path, String documentType, Config.Document document, Config.Editor editor)
Config constructor.protected static Config.Builder editor(String documentserverUrl, String workspace, String path, String documentType)
public String getDocumentserverJsUrl()
public String getDocumentserverUrl()
public javax.jcr.Node getContextNode()
nullprotected void setContextNode(javax.jcr.Node node)
node - the node to setpublic String getWorkspace()
public String getPath()
public String getDocumentType()
public Config.Document getDocument()
public Config.Editor getEditorConfig()
public Config forUser(String id, String firstName, String lastName, String lang)
public boolean isCreated()
public boolean isOpen()
public boolean isClosed()
public void open()
public void close()
public void setError(String error)
public boolean hasError()
public String getError()
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.