类 DefaultDocumentManager
java.lang.Object
com.onlyoffice.manager.document.DefaultDocumentManager
- 所有已实现的接口:
DocumentManager
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getBaseName(String fileName) Returns the file base name without the full path and extension.Returns a list of extensions that can be used for the document comparison functions.getConvertExtensionList(String fileName) Returns a list of extensions that the document with the name specified in the request can be converted to.getDefaultConvertExtension(String fileName) Returns the default OOXML extension to which the document with the name specified in the request should be converted.getDefaultExtension(DocumentType documentType) Returns the default OOXML extension by the specified document type.abstract StringgetDocumentKey(String bucket, String fileId, boolean embedded) Generates a unique document identifier used by the service to recognize the document.abstract StringgetDocumentName(String bucket, String fileId) Returns the document name by file ID.getDocumentType(String fileName) Returns the document type by the file name.getExtension(String fileName) Returns the file extension from the file name.Returns a list of file formats (electronic documents, forms, spreadsheets, presentations) supported by the ONLYOFFICE editors.Returns a list of image extensions that can be inserted into the document.Returns a map of extensions that can be edited with the possible loss of information.Returns a list of extensions that can be used for mail merge in the document.longReturns the maximum file size that can be converted in the ONLYOFFICE Conversion Service.longReturns the maximum file size that can be opened in the ONLYOFFICE editor.getNewBlankFile(String extension, Locale locale) ReturnsInputStreamof an empty file with the given extension and locale.booleanDetermines whether an action can be performed on a document with a name specified in the request.protected static voidinit()booleanisEditable(String fileName) Determines whether a document with a name specified in the request is editable.booleanisFillable(String fileName) Determines whether a document with a name specified in the request is fillable.booleanisViewable(String fileName) Determines whether a document with a name specified in the request is viewable.voidsetSettingsManager(SettingsManager settingsManager)
-
构造器详细资料
-
DefaultDocumentManager
-
-
方法详细资料
-
init
protected static void init() -
getSettingsManager
-
setSettingsManager
-
getFormats
从接口复制的说明:DocumentManagerReturns a list of file formats (electronic documents, forms, spreadsheets, presentations) supported by the ONLYOFFICE editors. The properties of each file format type are described in the list. This information is taken from the Formats repository.- 指定者:
getFormats在接口中DocumentManager- 返回:
- A list containing data about the supported formats.
-
getDocumentKey
从接口复制的说明:DocumentManagerGenerates a unique document identifier used by the service to recognize the document.- 指定者:
getDocumentKey在接口中DocumentManager- 参数:
bucket- The file bucket.fileId- The file ID.embedded- Specifies if the editor is opened in the embedded mode (true) or not (false).- 返回:
- The unique document identifier.
-
getDocumentName
从接口复制的说明:DocumentManagerReturns the document name by file ID.- 指定者:
getDocumentName在接口中DocumentManager- 参数:
bucket- The file bucket.fileId- The file ID.- 返回:
- The document name.
-
getExtension
从接口复制的说明:DocumentManagerReturns the file extension from the file name.- 指定者:
getExtension在接口中DocumentManager- 参数:
fileName- The file name to get the extension.- 返回:
- The file extension, or null if it doesn't exist, or the file name is empty.
-
getBaseName
从接口复制的说明:DocumentManagerReturns the file base name without the full path and extension.- 指定者:
getBaseName在接口中DocumentManager- 参数:
fileName- The file name to get the base name.- 返回:
- The file name without the extension or null if the file name is empty.
-
getDocumentType
从接口复制的说明:DocumentManagerReturns the document type by the file name.- 指定者:
getDocumentType在接口中DocumentManager- 参数:
fileName- The file name to get the document type.- 返回:
- The document type.
- 另请参阅:
-
isEditable
从接口复制的说明:DocumentManagerDetermines whether a document with a name specified in the request is editable.- 指定者:
isEditable在接口中DocumentManager- 参数:
fileName- The file name.- 返回:
- True if the document is editable.
-
isViewable
从接口复制的说明:DocumentManagerDetermines whether a document with a name specified in the request is viewable.- 指定者:
isViewable在接口中DocumentManager- 参数:
fileName- The file name.- 返回:
- True if the document is viewable.
-
isFillable
从接口复制的说明:DocumentManagerDetermines whether a document with a name specified in the request is fillable.- 指定者:
isFillable在接口中DocumentManager- 参数:
fileName- The file name.- 返回:
- True if the document is fillable.
-
hasAction
从接口复制的说明:DocumentManagerDetermines whether an action can be performed on a document with a name specified in the request.- 指定者:
hasAction在接口中DocumentManager- 参数:
fileName- The file name.action- An action to perform.- 返回:
- True if the action can be performed on a document.
- 另请参阅:
-
getNewBlankFile
从接口复制的说明:DocumentManagerReturnsInputStreamof an empty file with the given extension and locale.- 指定者:
getNewBlankFile在接口中DocumentManager- 参数:
extension- The file extension.locale- The file locale.- 返回:
InputStreamof an empty file.- 另请参阅:
-
getDefaultExtension
从接口复制的说明:DocumentManagerReturns the default OOXML extension by the specified document type.- 指定者:
getDefaultExtension在接口中DocumentManager- 参数:
documentType- The document type.- 返回:
- The default OOXML extension.
- 另请参阅:
-
getDefaultConvertExtension
从接口复制的说明:DocumentManagerReturns the default OOXML extension to which the document with the name specified in the request should be converted.- 指定者:
getDefaultConvertExtension在接口中DocumentManager- 参数:
fileName- The file name.- 返回:
- The default OOXML extension for conversion.
-
getConvertExtensionList
从接口复制的说明:DocumentManagerReturns a list of extensions that the document with the name specified in the request can be converted to.- 指定者:
getConvertExtensionList在接口中DocumentManager- 参数:
fileName- The file name.- 返回:
- A list of extensions for conversion.
-
getLossyEditableMap
从接口复制的说明:DocumentManagerReturns a map of extensions that can be edited with the possible loss of information. If the extension is contained in the "formats.lossy-edit" settings, the value is "true".- 指定者:
getLossyEditableMap在接口中DocumentManager- 返回:
- A map of extensions that can be edited with the possible loss of information.
-
getInsertImageExtensions
从接口复制的说明:DocumentManagerReturns a list of image extensions that can be inserted into the document.- 指定者:
getInsertImageExtensions在接口中DocumentManager- 返回:
- A list of image extensions.
- 另请参阅:
-
getCompareFileExtensions
从接口复制的说明:DocumentManagerReturns a list of extensions that can be used for the document comparison functions.- 指定者:
getCompareFileExtensions在接口中DocumentManager- 返回:
- A list of extensions for the document comparison.
- 另请参阅:
-
getMailMergeExtensions
从接口复制的说明:DocumentManagerReturns a list of extensions that can be used for mail merge in the document.- 指定者:
getMailMergeExtensions在接口中DocumentManager- 返回:
- A list of extensions for mail merge.
- 另请参阅:
-
getMaxFileSize
public long getMaxFileSize()从接口复制的说明:DocumentManagerReturns the maximum file size that can be opened in the ONLYOFFICE editor.- 指定者:
getMaxFileSize在接口中DocumentManager- 返回:
- The maximum file size that can be opened.
-
getMaxConversionFileSize
public long getMaxConversionFileSize()从接口复制的说明:DocumentManagerReturns the maximum file size that can be converted in the ONLYOFFICE Conversion Service.- 指定者:
getMaxConversionFileSize在接口中DocumentManager- 返回:
- The maximum file size that can be converted.
-