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 Summary
ConstructorDescriptionOnlyOfficeDocumentManager
(com.onlyoffice.manager.settings.SettingsManager settingsManager) -
Method Summary
Modifier and TypeMethodDescriptionstatic com.logicaldoc.core.document.Document
createSample
(com.logicaldoc.core.security.user.User user, String fileExt, String fileName, long folderId, boolean sample) static String
createToken
(Map<String, Object> payloadClaims) static String
curUserHostAddress
(String userAddress) static String
getCallback
(String fileName, String docId, long folderId, String sid) static String
getCreateUrl
(FileType fileType) getDocumentKey
(String fileId, boolean embedded) getDocumentName
(String fileId) static String
getDownloadUrl
(String fileName, String docId, String sid) static String
getInternalExtension
(FileType fileType) static String
getTemplateImageUrl
(FileType fileType) static String
static String
readFileToEnd
(File file) static org.primeframework.jwt.domain.JWT
void
setFileName
(String fileName) Methods inherited from class com.onlyoffice.manager.document.DefaultDocumentManager
getBaseName, getCompareFileExtensions, getConvertExtensionList, getDefaultConvertExtension, getDefaultExtension, getDocumentType, getExtension, getFormats, getInsertImageExtensions, getLossyEditableMap, getMailMergeExtensions, getMaxConversionFileSize, getMaxFileSize, getNewBlankFile, hasAction, isEditable, isFillable, isViewable
-
Constructor Details
-
OnlyOfficeDocumentManager
public OnlyOfficeDocumentManager(com.onlyoffice.manager.settings.SettingsManager settingsManager)
-
-
Method Details
-
setFileName
-
getDocumentKey
- Specified by:
getDocumentKey
in interfacecom.onlyoffice.manager.document.DocumentManager
- Specified by:
getDocumentKey
in classcom.onlyoffice.manager.document.DefaultDocumentManager
-
getDocumentName
- Specified by:
getDocumentName
in interfacecom.onlyoffice.manager.document.DocumentManager
- Specified by:
getDocumentName
in classcom.onlyoffice.manager.document.DefaultDocumentManager
-
getFileExts
-
getFillExts
-
getViewedExts
-
getEditedExts
-
getConvertExts
-
curUserHostAddress
-
getCallback
-
getCreateUrl
-
getDownloadUrl
-
getInternalExtension
-
getTemplateImageUrl
-
createToken
-
readToken
-
getTokenSecret
-
readFileToEnd
-
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
-