Package org.exoplatform.onlyoffice
Class Config.Editor
- java.lang.Object
-
- org.exoplatform.onlyoffice.Config.Editor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfig.Editor.UserThe Class User.
-
Field Summary
Fields Modifier and Type Field Description protected StringcallbackUrlThe callback url.protected StringlangThe lang.protected StringmodeThe mode.protected Config.Editor.UseruserThe user.
-
Constructor Summary
Constructors Modifier Constructor Description protectedEditor(String callbackUrl, String lang, String mode, Config.Editor.User user)Instantiates a new editor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Config.EditorforUser(String id, String name, String lang, String callbackUrl)For user.StringgetCallbackUrl()Gets the callback url.StringgetLang()Gets the language of user editor.StringgetMode()Gets the mode.Config.Editor.UsergetUser()Gets the user.voidsetLang(String lang)Sets the lang.voidsetMode(String mode)Sets the mode.
-
-
-
Field Detail
-
callbackUrl
protected final String callbackUrl
The callback url.
-
user
protected final Config.Editor.User user
The user.
-
lang
protected String lang
The lang.
-
mode
protected String mode
The mode.
-
-
Constructor Detail
-
Editor
protected Editor(String callbackUrl, String lang, String mode, Config.Editor.User user)
Instantiates a new editor.- Parameters:
callbackUrl- the callback urllang- the langmode- the modeuser- the user
-
-
Method Detail
-
getCallbackUrl
public String getCallbackUrl()
Gets the callback url.- Returns:
- the callbackUrl
-
getLang
public String getLang()
Gets the language of user editor.- Returns:
- the lang can be
nullif unable to define from user profile
-
setLang
public void setLang(String lang)
Sets the lang.- Parameters:
lang- the lang to set
-
getMode
public String getMode()
Gets the mode.- Returns:
- the mode
-
setMode
public void setMode(String mode)
Sets the mode.- Parameters:
mode- the new mode
-
getUser
public Config.Editor.User getUser()
Gets the user.- Returns:
- the user
-
forUser
protected Config.Editor forUser(String id, String name, String lang, String callbackUrl)
For user.- Parameters:
id- the idname- the namelang- the langcallbackUrl- the callback url- Returns:
- the editor
-
-