Package com.emc.documentum.rest.config
Enum Class PersistenceConfig
- All Implemented Interfaces:
Serializable
,Comparable<PersistenceConfig>
,Constable
The runtime configuration for persistence settings where the settings are loaded from
the classpath resource 'rest-api-persistence-config.properties'.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the largest size of contents allowed to download, in bytes.For internal use.For internal use.For internal use.For internal use.int
For internal use.For internal use.Get the default locale.For internal use.boolean
Checks whether restrict the version label of check in operationboolean
For internal use.boolean
For internal use.boolean
For internal use.boolean
Checks if message logging is enabledboolean
For internal use.boolean
For internal use.boolean
For internal use.int
Get default buffer size for logging request and response in bytetempDir()
The temp directory to store generated temporary filesstatic PersistenceConfig
Returns the enum constant of this class with the specified name.static PersistenceConfig[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance ofPersistenceConfig
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isRangeDqlAllowed
public boolean isRangeDqlAllowed()For internal use. Check whether DQL range search feature can be used in the query template- Returns:
true
if ranged query is supported
-
defaultCollectionAttributeView
For internal use. Get the default attribute view for collection.- Returns:
- default attribute view for the collection
-
isDeleteNonEmptyFolderAllowed
public boolean isDeleteNonEmptyFolderAllowed()For internal use. Check whether deleting non empty folder is allowed- Returns:
true
if the deletion can remove non empty folders
-
isDeleteAllFolderLinksAllowed
public boolean isDeleteAllFolderLinksAllowed()For internal use. Check whether deleting all folder links is allowed- Returns:
true
if the deletion can remove all folder links
-
deleteVersionPolicy
For internal use. Get the delete version policy.- Returns:
- the delete version policy
-
isUnmodifiedUpdateIgnored
public boolean isUnmodifiedUpdateIgnored()For internal use. Check whether ignoring unmodified attributes during update.- Returns:
true
if ignoring the update for value unmodified attributes
-
isContentOverwriteAllowed
public boolean isContentOverwriteAllowed()For internal use. Check whether overwriting is allowed on content update.- Returns:
true
if the content can overwrite the same on the server
-
isPrimaryContentByDefault
public boolean isPrimaryContentByDefault()For internal use. Check whether creating the primary content as the default.- Returns:
true
if the import content is primary
-
defaultContentPageNumber
public int defaultContentPageNumber()For internal use. Get the default page number for content creating.- Returns:
- default content page number
-
defaultContentPageModifier
For internal use. Get the default page modifier for content creating.- Returns:
- default content page modifier
-
defaultContentVersionLabels
For internal use. Get the default content version labels for document creating.- Returns:
- default content version labels
-
defaultContentFormat
For internal use. Get the default content format in content creating.- Returns:
- default content format
-
defaultContentMediaUrlPolicy
For internal use. Get the default content media URL policy in returning content media.- Returns:
- default content media URL policy
-
tempDir
The temp directory to store generated temporary files- Returns:
- a directory path if rest.temp.dir is specified in configuration file otherwise, the default value System.getProperty("java.io.tmpdir") will be returned
-
isMessageLoggingEnabled
public boolean isMessageLoggingEnabled()Checks if message logging is enabled- Returns:
true
if message logging is enabled
-
messageLoggingBuffer
public int messageLoggingBuffer()Get default buffer size for logging request and response in byte- Returns:
- default buffer size for logging request and response in byte
-
isCheckInVersionLabelRestricted
public boolean isCheckInVersionLabelRestricted()Checks whether restrict the version label of check in operation- Returns:
true
if the version label composed by number and dot are forbidden
-
defaultLocale
Get the default locale. By default, "en" is the default locale.- Returns:
- the default locale
-
archiveContentsThreshold
public double archiveContentsThreshold()Get the largest size of contents allowed to download, in bytes. The default value is 20GB.- Returns:
- the archive contents threshold
-