Package com.sap.ecm.api
Class RepositoryOptions
java.lang.Object
com.sap.ecm.api.RepositoryOptions
This class defines various repository options necessary to create a new repository.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSpecifies the repository visibility level. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetDescription(String description) voidsetDisplayName(String displayName) voidsetMultiTenantCapable(boolean multiTenantCapable) voidsetRepositoryKey(String repositoryKey) voidsetUniqueName(String uniqueName) voidsetVirusScannerEnabled(boolean virusScannerEnabled) voidsetVisibility(RepositoryOptions.Visibility visibility) validate()Validates this object and returns an error message if wrong parameters are supplied or parameters are missing.
-
Constructor Details
-
RepositoryOptions
public RepositoryOptions()
-
-
Method Details
-
setUniqueName
- Parameters:
uniqueName- Example: com.sap.app.MyRepositoryName
The unique name of the repository. This name can be used later on to lookup the repository. Should be constructed like full-qualified java names to avoid collisions.
-
setDisplayName
- Parameters:
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.
-
setDescription
- Parameters:
description- A human readable description of the repository, typically used by UIs to display information about the used repository. Optional parameter.
-
setVisibility
- Parameters:
visibility- The visibility and isolation level of the repository.
-
setRepositoryKey
- Parameters:
repositoryKey- Only relevant for isolation level ofVisibility.PROTECTED. This key will be used to authenticate requesting apps. Only applications providing this authentication key will be allowed to connect to this repository.
For all other visibilities, this parameter is optional.
-
setMultiTenantCapable
public void setMultiTenantCapable(boolean multiTenantCapable) - Parameters:
multiTenantCapable- This option is unused at the moment.
-
setVirusScannerEnabled
public void setVirusScannerEnabled(boolean virusScannerEnabled) - Parameters:
virusScannerEnabled- If set totrue, 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 tofalse.
-
validate
Validates this object and returns an error message if wrong parameters are supplied or parameters are missing.nullis returned if everything is OK.- Returns:
nullif everything is OK, an error message otherwise.
-
getUniqueName
-
getDisplayName
-
getDescription
-
getVisibility
-
getRepositoryKey
-
isMultiTenantCapable
-
isVirusScannerEnabled
public boolean isVirusScannerEnabled()
-