Package org.exoplatform.onlyoffice
Class Config.Editor
java.lang.Object
org.exoplatform.onlyoffice.Config.Editor
- Enclosing class:
Config
The Onlyoffice Editor.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringThe callback url.protected StringThe lang.protected StringThe mode.protected final Config.Editor.UserThe user. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEditor(String callbackUrl, String lang, String mode, Config.Editor.User user) Instantiates a new editor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Config.EditorFor user.Gets the callback url.getLang()Gets the language of user editor.getMode()Gets the mode.getUser()Gets the user.voidSets the lang.voidSets the mode.
-
Field Details
-
callbackUrl
The callback url. -
user
The user. -
lang
The lang. -
mode
The mode.
-
-
Constructor Details
-
Editor
Instantiates a new editor.- Parameters:
callbackUrl- the callback urllang- the langmode- the modeuser- the user
-
-
Method Details
-
getCallbackUrl
Gets the callback url.- Returns:
- the callbackUrl
-
getLang
Gets the language of user editor.- Returns:
- the lang can be
nullif unable to define from user profile
-
setLang
Sets the lang.- Parameters:
lang- the lang to set
-
getMode
Gets the mode.- Returns:
- the mode
-
setMode
Sets the mode.- Parameters:
mode- the new mode
-
getUser
Gets the user.- Returns:
- the user
-
forUser
For user.- Parameters:
id- the idname- the namelang- the langcallbackUrl- the callback url- Returns:
- the editor
-