Package org.exoplatform.onlyoffice
Class Config.Builder
java.lang.Object
org.exoplatform.onlyoffice.Config.Builder
- Enclosing class:
Config
The Class Builder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected StringThe editor.protected StringThe comment.protected StringThe display path.protected final StringThe document ID in storage.protected StringThe document server secret key.protected final StringThe documentserver url.protected final StringThe document type.protected StringThe download url for viewer mode.protected StringThe drive.protected StringThe editor page at platform URL.protected URIThe ECMS explorer page URL.protected StringThe document.protected StringThe folder.protected BooleanThe indicator to show if the document has a file activity.protected StringThe document.protected StringThe editor.protected StringThe lastModified.protected StringThe last modifier.protected StringThe editor.protected StringThe user.protected StringThe folder.protected final StringThe path.protected StringThe platform REST URL base.protected BooleanThe rename allowed indicator.protected StringThe document.protected StringThe folder.protected StringThe document.protected StringThe user.protected final StringThe workspace of the storage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the.callbackUrl(String callbackUrl) Callback url.Comment.displayPath(String displayPath) Display path.downloadUrl(String downloadUrl) Download url.Drive.Editor page URL.explorerUri(String url) explorerUri(URI uri) URI of ECMS explorer page with a document.File type.Folder.generateUrls(String platformRestUrl) Generate file and callback URLs using given Platform base URL.isActivity(Boolean isActivity) IsActivity.Key.Lang.lastModified(String lastModified) Sets last modified.lastModifier(String lastModifier) Sets last modifier.Mode.Owner.renameAllowed(Boolean renameAllowed) Rename allowed.Secret.setAllowEdition(boolean allowEdition) Allow editionTitle.Uploaded.Url.User id.User name.
-
Field Details
-
docId
The document ID in storage. -
workspace
The workspace of the storage. -
path
The path. -
documentType
The document type. -
documentserverUrl
The documentserver url. -
platformRestUrl
The platform REST URL base. -
editorUrl
The editor page at platform URL. -
documentserverSecret
The document server secret key. -
lastModifier
The last modifier. -
lastModified
The lastModified. -
displayPath
The display path. -
downloadUrl
The download url for viewer mode. -
comment
The comment. -
drive
The drive. -
renameAllowed
The rename allowed indicator. -
isActivity
The indicator to show if the document has a file activity. -
explorerUri
The ECMS explorer page URL. -
fileType
The document. -
key
The document. -
title
The document. -
url
The document. -
owner
The folder. -
uploaded
The folder. -
folder
The folder. -
callbackUrl
The editor. -
lang
The editor. -
mode
The editor. -
userId
The user. -
name
The user. -
allowEdition
protected boolean allowEdition
-
-
Constructor Details
-
Method Details
-
generateUrls
Generate file and callback URLs using given Platform base URL. This will erase these URLs explicitly set previously.- Parameters:
platformRestUrl- the platform URL- Returns:
- the builder
-
editorUrl
Editor page URL.- Parameters:
editorUrl- the editor url- Returns:
- the builder
-
explorerUri
URI of ECMS explorer page with a document.- Parameters:
uri- the URI of the page- Returns:
- the builder
-
explorerUri
-
title
Title.- Parameters:
title- the title- Returns:
- the builder
-
key
Key.- Parameters:
key- the key- Returns:
- the builder
-
fileType
File type.- Parameters:
fileType- the file type- Returns:
- the builder
-
url
Url.- Parameters:
url- the url- Returns:
- the builder
-
owner
Owner.- Parameters:
owner- the owner- Returns:
- the builder
-
uploaded
Uploaded.- Parameters:
uploadedTime- the created time- Returns:
- the builder
-
uploaded
-
displayPath
Display path.- Parameters:
displayPath- the created displayPath- Returns:
- the builder
-
comment
Comment.- Parameters:
comment- the created comment- Returns:
- the builder
-
drive
Drive.- Parameters:
drive- the created drive- Returns:
- the builder
-
renameAllowed
Rename allowed.- Parameters:
renameAllowed- the renameAllowed- Returns:
- the builder
-
isActivity
IsActivity.- Parameters:
isActivity- the has isActivity- Returns:
- the builder
-
folder
Folder.- Parameters:
folder- the folder- Returns:
- the builder
-
callbackUrl
Callback url.- Parameters:
callbackUrl- the callback url- Returns:
- the builder
-
lang
Lang.- Parameters:
lang- the lang- Returns:
- the builder
-
mode
Mode.- Parameters:
mode- the mode- Returns:
- the builder
-
userId
User id.- Parameters:
userId- the user id- Returns:
- the builder
-
userName
User name.- Parameters:
name- the name- Returns:
- the builder
-
secret
Secret.- Parameters:
documentServerSecret- the document server secret- Returns:
- the builder
-
lastModifier
Sets last modifier.- Parameters:
lastModifier- the last Modifier- Returns:
- the builder
-
lastModified
Sets last modified.- Parameters:
lastModified- the last modified- Returns:
- the builder
-
downloadUrl
Download url.- Parameters:
downloadUrl- the download url- Returns:
- the builder
-
setAllowEdition
Allow edition- Parameters:
allowEdition- the allowEdition- Returns:
- the builder
-
build
Builds the.- Returns:
- the config
-