Package org.exoplatform.onlyoffice
Class Config.Document
- java.lang.Object
-
- org.exoplatform.onlyoffice.Config.Document
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfig.Document.EditPermissionsThe Class EditPermissions.static classConfig.Document.InfoThe Class Info.static classConfig.Document.NoPermissionsstatic classConfig.Document.PermissionsThe Class Permissions.
-
Field Summary
Fields Modifier and Type Field Description protected StringfileTypeThe file type.protected Config.Document.InfoinfoThe info.protected StringkeyThe key.protected Config.Document.PermissionspermissionsThe permissions.protected StringtitleThe title.protected StringurlThe url.
-
Constructor Summary
Constructors Modifier Constructor Description protectedDocument(String key, String fileType, String title, String url, Config.Document.Info info, Config.Document.Permissions permissions)Instantiates a new document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Config.DocumentforUser(String id, String name, String url)For user.StringgetFileType()Gets the file type.Config.Document.InfogetInfo()Gets the info.StringgetKey()Gets the key.Config.Document.PermissionsgetPermissions()Gets the permissions.StringgetTitle()Gets the title.StringgetUrl()Gets the url.
-
-
-
Field Detail
-
fileType
protected final String fileType
The file type.
-
key
protected final String key
The key.
-
title
protected final String title
The title.
-
url
protected final String url
The url.
-
info
protected final Config.Document.Info info
The info.
-
permissions
protected final Config.Document.Permissions permissions
The permissions.
-
-
Constructor Detail
-
Document
protected Document(String key, String fileType, String title, String url, Config.Document.Info info, Config.Document.Permissions permissions)
Instantiates a new document.- Parameters:
key- the keyfileType- the file typetitle- the titleurl- the urlinfo- the infopermissions- the permissions
-
-
Method Detail
-
forUser
protected Config.Document forUser(String id, String name, String url)
For user.- Parameters:
id- the idname- the nameurl- the url- Returns:
- the document
-
getFileType
public String getFileType()
Gets the file type.- Returns:
- the fileType
-
getKey
public String getKey()
Gets the key.- Returns:
- the key
-
getTitle
public String getTitle()
Gets the title.- Returns:
- the title
-
getUrl
public String getUrl()
Gets the url.- Returns:
- the url
-
getInfo
public Config.Document.Info getInfo()
Gets the info.- Returns:
- the info
-
getPermissions
public Config.Document.Permissions getPermissions()
Gets the permissions.- Returns:
- the permissions
-
-