Class OnlyOfficeDocumentManager

java.lang.Object
com.onlyoffice.manager.document.DefaultDocumentManager
com.logicaldoc.onlyoffice.managers.OnlyOfficeDocumentManager
All Implemented Interfaces:
com.onlyoffice.manager.document.DocumentManager

public class OnlyOfficeDocumentManager extends com.onlyoffice.manager.document.DefaultDocumentManager
  • Constructor Details

    • OnlyOfficeDocumentManager

      public OnlyOfficeDocumentManager(com.onlyoffice.manager.settings.SettingsManager settingsManager)
  • Method Details

    • setFileName

      public void setFileName(String fileName)
    • getDocumentKey

      public String getDocumentKey(String fileId, boolean embedded)
      Specified by:
      getDocumentKey in interface com.onlyoffice.manager.document.DocumentManager
      Specified by:
      getDocumentKey in class com.onlyoffice.manager.document.DefaultDocumentManager
    • getDocumentName

      public String getDocumentName(String fileId)
      Specified by:
      getDocumentName in interface com.onlyoffice.manager.document.DocumentManager
      Specified by:
      getDocumentName in class com.onlyoffice.manager.document.DefaultDocumentManager
    • getFileExts

      public static List<String> getFileExts()
    • getFillExts

      public static List<String> getFillExts()
    • getViewedExts

      public static List<String> getViewedExts()
    • getEditedExts

      public static List<String> getEditedExts()
    • getConvertExts

      public static List<String> getConvertExts()
    • curUserHostAddress

      public static String curUserHostAddress(String userAddress)
    • getCallback

      public static String getCallback(String fileName, String docId, long folderId, String sid)
    • getCreateUrl

      public static String getCreateUrl(FileType fileType)
    • getDownloadUrl

      public static String getDownloadUrl(String fileName, String docId, String sid)
    • getInternalExtension

      public static String getInternalExtension(FileType fileType)
    • getTemplateImageUrl

      public static String getTemplateImageUrl(FileType fileType)
    • createToken

      public static String createToken(Map<String,Object> payloadClaims)
    • readToken

      public static org.primeframework.jwt.domain.JWT readToken(String token)
    • getTokenSecret

      public static String getTokenSecret()
    • readFileToEnd

      public static String readFileToEnd(File file)
    • createSample

      public static com.logicaldoc.core.document.Document createSample(com.logicaldoc.core.security.user.User user, String fileExt, String fileName, long folderId, boolean sample) throws com.logicaldoc.core.PersistenceException
      Throws:
      com.logicaldoc.core.PersistenceException