Class Config.Editor

  • Enclosing class:
    Config

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

      • callbackUrl

        protected final String callbackUrl
        The callback url.
      • 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 url
        lang - the lang
        mode - the mode
        user - 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 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
      • 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