public class Config extends Object implements Externalizable
Externalizable for serialization in eXo cache (actual in cluster).
Created by The eXo Platform SAS.| 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 static String |
EMPTY
The Constant EMPTY.
|
protected static String |
NO_LANG
The Constant NO_LANG.
|
protected Boolean |
open
Marker of editor state.
|
| Modifier | Constructor and Description |
|---|---|
|
Config()
Instantiates a new config for use with
Externalizable methods. |
protected |
Config(String documentserverUrl,
String platformUrl,
String workspace,
String path,
String documentType,
Config.Document document,
Config.Editor 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.
|
void |
readExternal(ObjectInput in) |
protected void |
setContextNode(javax.jcr.Node node)
Sets the context node.
|
void |
setError(String error)
Sets the error.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
protected static final SimpleDateFormat DATETIME_FORMAT
protected static final String NO_LANG
protected static final String EMPTY
protected Boolean open
public Config()
Externalizable methods.protected Config(String documentserverUrl, String platformUrl, String workspace, String path, String documentType, Config.Document document, Config.Editor editor)
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 void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic 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–2018 eXo Platform SAS. All rights reserved.