Class Config.Editor

java.lang.Object
org.exoplatform.onlyoffice.Config.Editor
Enclosing class:
Config

public static class Config.Editor extends Object
The Onlyoffice Editor.
  • Field Details

    • 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 Details

    • Editor

      protected Editor(String callbackUrl, String lang, String mode, Config.Editor.User user)
      Instantiates a new editor.
      Parameters:
      callbackUrl - the callback url
      lang - the lang
      mode - the mode
      user - the user
  • Method Details

    • 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 null if 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 id
      name - the name
      lang - the lang
      callbackUrl - the callback url
      Returns:
      the editor