public class Config extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Config.Builder
The Class Builder.
|
static class |
Config.Document
The Class Document.
|
static class |
Config.Editor
The Class Editor.
|
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleDateFormat |
DATETIME_FORMAT
The Constant DATETIME_FORMAT.
|
protected Config.Document |
document
The document.
|
protected String |
documentserverJsUrl
The documentserver js url.
|
protected String |
documentserverUrl
The documentserver js url.
|
protected String |
documentType
The document type.
|
protected Config.Editor |
editorConfig
The editor config.
|
protected String |
error
The error.
|
protected javax.jcr.Node |
node
The node.
|
protected Boolean |
open
Marker of editor state.
|
protected String |
path
The path.
|
protected String |
platformUrl
The platform url.
|
protected String |
workspace
The 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)
Callback url.
|
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)
Editor.
|
boolean |
equals(Object obj) |
protected static String |
fileUrl(String platformUrl,
String userId,
String key)
File url.
|
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()
Gets the context node.
|
Config.Document |
getDocument()
Gets the document.
|
String |
getDocumentserverJsUrl()
Gets the documentserver js url.
|
String |
getDocumentserverUrl()
Gets the documentserver url.
|
String |
getDocumentType()
Gets the document type.
|
Config.Editor |
getEditorConfig()
Gets the editor config.
|
String |
getError()
Gets the error.
|
String |
getPath()
Gets the path.
|
String |
getWorkspace()
Gets the workspace.
|
boolean |
hasError()
Checks for error.
|
boolean |
isClosed()
Checks if is closed.
|
boolean |
isCreated()
Checks if is created.
|
boolean |
isOpen()
Checks if is open.
|
void |
open()
Mark this this config as open: user opened this editor.
|
protected void |
setContextNode(javax.jcr.Node node)
Sets the context node.
|
void |
setError(String error)
Sets the 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.documentserverUrl - the documentserver urlplatformUrl - the platform urlworkspace - the workspacepath - the pathdocumentType - the document typedocument - the documenteditor - the editorprotected static Config.Builder editor(String documentserverUrl, String workspace, String path, String documentType)
documentserverUrl - the documentserver urlworkspace - the workspacepath - the pathdocumentType - the document typeprotected static String fileUrl(String platformUrl, String userId, String key)
platformUrl - the platform urluserId - the user idkey - the keyprotected static String callbackUrl(String platformUrl, String userId, String key)
platformUrl - the platform urluserId - the user idkey - the keypublic 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)
error - the new errorpublic boolean hasError()
public String getError()
Copyright © 2003–2017 eXo Platform SAS. All rights reserved.