public class DefaultConfigService extends Object implements ConfigService
| Modifier and Type | Field and Description |
|---|---|
private DocumentManager |
documentManager
|
private JwtManager |
jwtManager
|
private SettingsManager |
settingsManager
|
private UrlManager |
urlManager
|
| Constructor and Description |
|---|
DefaultConfigService() |
| Modifier and Type | Method and Description |
|---|---|
Config |
createConfig(String fileId,
Mode mode,
String userAgent)
Creates a configuration for the document editor using the User-Agent request header.
|
Config |
createConfig(String fileId,
Mode mode,
Type type)
Creates a configuration for the document editor using the
Type parameter. |
CoEditing |
getCoEditing(String fileId,
Mode mode,
Type type)
Returns the
CoEditing object. |
Customization |
getCustomization(String fileId)
Returns the
Customization object. |
Document |
getDocument(String fileId,
Type type)
Returns the
Document object. |
EditorConfig |
getEditorConfig(String fileId,
Mode mode,
Type type)
Returns the
EditorConfig object. |
Embedded |
getEmbedded(String fileId)
Returns the
Embedded object. |
Info |
getInfo(String fileId)
Returns the
Info object. |
Permissions |
getPermissions(String fileId)
Returns the
Permissions object. |
Plugins |
getPlugins(Object object)
Returns the
Plugins object. |
List<Recent> |
getRecent(Object object)
Returns a list of the
Recent objects. |
ReferenceData |
getReferenceData(String fileId)
Returns the
ReferenceData object. |
List<Template> |
getTemplates(String fileId)
Returns a list of the
Template objects. |
Type |
getType(String userAgent)
Returns the
Type object. |
User |
getUser()
Returns the
User object. |
private DocumentManager documentManager
private UrlManager urlManager
private JwtManager jwtManager
private SettingsManager settingsManager
public Config createConfig(String fileId, Mode mode, String userAgent)
ConfigServicecreateConfig in interface ConfigServicefileId - The file ID.mode - The editor opening mode.userAgent - The User-Agent request header that is used to determine the platform type ("desktop" or
"mobile").Config object.public Config createConfig(String fileId, Mode mode, Type type)
ConfigServiceType parameter.createConfig in interface ConfigServicefileId - The file ID.mode - The editor opening mode.type - The platform type used to access the document.Config object.public Document getDocument(String fileId, Type type)
ConfigServiceDocument object.getDocument in interface ConfigServicefileId - The file ID.type - The platform type used to access the document.ReferenceData object.public EditorConfig getEditorConfig(String fileId, Mode mode, Type type)
ConfigServiceEditorConfig object.getEditorConfig in interface ConfigServicefileId - The file ID.mode - The editor opening mode.type - The platform type used to access the document.EditorConfig object.public ReferenceData getReferenceData(String fileId)
ConfigServiceReferenceData object.getReferenceData in interface ConfigServicefileId - The file ID.ReferenceData object.public Info getInfo(String fileId)
ConfigServiceInfo object.getInfo in interface ConfigServicefileId - The file ID.Info object.public Permissions getPermissions(String fileId)
ConfigServicePermissions object.getPermissions in interface ConfigServicefileId - The file ID.Permissions object.public CoEditing getCoEditing(String fileId, Mode mode, Type type)
ConfigServiceCoEditing object.getCoEditing in interface ConfigServicefileId - The file ID.mode - The editor opening mode.type - The platform type used to access the document.CoEditing object.public List<Recent> getRecent(Object object)
ConfigServiceRecent objects.getRecent in interface ConfigServiceobject - The object.Recent objects.public List<Template> getTemplates(String fileId)
ConfigServiceTemplate objects.getTemplates in interface ConfigServicefileId - The file ID.Template objects.public User getUser()
ConfigServiceUser object.getUser in interface ConfigServiceUser object.public Customization getCustomization(String fileId)
ConfigServiceCustomization object.getCustomization in interface ConfigServicefileId - The file ID.Customization object.public Embedded getEmbedded(String fileId)
ConfigServiceEmbedded object.getEmbedded in interface ConfigServicefileId - The file ID.Embedded object.public Plugins getPlugins(Object object)
ConfigServicePlugins object.getPlugins in interface ConfigServiceobject - The object.Plugins object.public Type getType(String userAgent)
ConfigServiceType object.getType in interface ConfigServiceuserAgent - The User-Agent request header that is used to determine the platform type ("desktop" or
"mobile").Type object.Copyright © 2023–2024. All rights reserved.