public class RepositoryOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryOptions.Visibility
Specifies the repository visibility level.
|
Constructor and Description |
---|
RepositoryOptions() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
String |
getDisplayName() |
String |
getRepositoryKey() |
String |
getUniqueName() |
RepositoryOptions.Visibility |
getVisibility() |
Boolean |
isMultiTenantCapable() |
boolean |
isVirusScannerEnabled() |
void |
setDescription(String description) |
void |
setDisplayName(String displayName) |
void |
setMultiTenantCapable(boolean multiTenantCapable) |
void |
setRepositoryKey(String repositoryKey) |
void |
setUniqueName(String uniqueName) |
void |
setVirusScannerEnabled(boolean virusScannerEnabled) |
void |
setVisibility(RepositoryOptions.Visibility visibility) |
String |
validate()
Validates this object and returns an error message if wrong parameters are supplied or
parameters are missing.
|
public void setUniqueName(String uniqueName)
uniqueName
- Example: com.sap.app.MyRepositoryNamepublic void setDisplayName(String displayName)
displayName
- A human readable name of the repository, typically used by UIs to display the name of
the repository. Does not necessarily needs to be unique. Optional parameter.public void setDescription(String description)
description
- A human readable description of the repository, typically used by UIs to display
information about the used repository. Optional parameter.public void setVisibility(RepositoryOptions.Visibility visibility)
visibility
- The visibility and isolation level of the repository.public void setRepositoryKey(String repositoryKey)
repositoryKey
- Only relevant for isolation level of Visibility.PROTECTED
. This key
will be used to authenticate requesting apps. Only applications providing this
authentication key will be allowed to connect to this repository.public void setMultiTenantCapable(boolean multiTenantCapable)
multiTenantCapable
- This option is unused at the moment.public void setVirusScannerEnabled(boolean virusScannerEnabled)
virusScannerEnabled
- If set to true
, all documents will be scanned for viruses on upload and upload
will be blocked if a virus was found. Note that this naturally impacts write
performance of the repository! Defaults to false
.public String validate()
null
is returned if everything is OK.null
if everything is OK, an error message otherwise.public String getUniqueName()
public String getDisplayName()
public String getDescription()
public RepositoryOptions.Visibility getVisibility()
public String getRepositoryKey()
public Boolean isMultiTenantCapable()
public boolean isVirusScannerEnabled()
Copyright © 2020 SAP. All Rights Reserved.