Package com.priint.pubserver.webservice
Class RepositoryDump
java.lang.Object
com.priint.pubserver.webservice.RepositoryDump
- All Implemented Interfaces:
Serializable
A repository dump format containing a list of files for export or import.
A file represents a repository entry with metadata and content. Files are identified by their full repository path.
Files can be marked for deletion. Deletions should be processed before upserts.
A file represents a repository entry with metadata and content. Files are identified by their full repository path.
Files can be marked for deletion. Deletions should be processed before upserts.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFile(String path, PluginConfig pluginConfig) addFile(String path, PluginConfig pluginConfig, ConfigFileProperties configFileProperties) addFile(String path, PluginConfig pluginConfig, ConfigFileProperties configFileProperties, RepositoryDump.PostAction postAction) addFile(String path, PluginConfig pluginConfig, RepositoryDump.PostAction postAction) addFileForRemoval(String path) getDeep()Get file by its path.getFiles()voidsetBasepath(String basepath) Base path for reading files from the repository.voidsetCreated(String created) Time stamp when the dump was produced or null if not set.voidvoidsetRequest(URI request) Request that was executed to produce the dump.voidServer on which the dump was produced or null if not set.
-
Constructor Details
-
RepositoryDump
public RepositoryDump()
-
-
Method Details
-
addFile
- Parameters:
path- must not be nullpluginConfig-- Returns:
- RepositoryDump for method chaining. Throws a IllegalArgumentException if path is not set.
-
addFile
public RepositoryDump addFile(String path, PluginConfig pluginConfig, RepositoryDump.PostAction postAction) - Parameters:
path- must not be nullpluginConfig-postAction-- Returns:
- RepositoryDump for method chaining. Throws a IllegalArgumentException if path is not set.
-
addFile
public RepositoryDump addFile(String path, PluginConfig pluginConfig, ConfigFileProperties configFileProperties) - Parameters:
path- must not be nullpluginConfig-configFileProperties-- Returns:
- RepositoryDump for method chaining. Throws a IllegalArgumentException if path is not set.
-
addFile
public RepositoryDump addFile(String path, PluginConfig pluginConfig, ConfigFileProperties configFileProperties, RepositoryDump.PostAction postAction) - Parameters:
path- must not be nullpluginConfig-configFileProperties-postAction-- Returns:
- RepositoryDump for method chaining. Throws a IllegalArgumentException if path is not set.
-
addFileForRemoval
- Parameters:
path-- Returns:
- RepositoryDump for method chaining.
-
getBasepath
- Returns:
- Base path for reading files from the repository or null if not set.
-
getCreated
- Returns:
- Time stamp when the dump was produced or null if not set.
-
getDeep
- Returns:
- "true" if dump creation was recursive, i.e. dump contains all files below the basepath. If deep is "null" or "false", then only the direct files within a folder are contained in a dump.
-
getFile
Get file by its path. File path comparisons are case-sensitive.- Parameters:
path-- Returns:
- file or null if not found.
-
getFiles
- Returns:
- files
-
getRequest
- Returns:
- Request that was executed to produce the dump or null if not set.
-
getServer
- Returns:
- Server on which the dump was produced or null if not set.
-
setBasepath
Base path for reading files from the repository.- Parameters:
basepath-
-
setCreated
Time stamp when the dump was produced or null if not set.- Parameters:
created-
-
setDeep
- Parameters:
deep-
-
setRequest
Request that was executed to produce the dump.- Parameters:
request-
-
setServer
Server on which the dump was produced or null if not set.- Parameters:
server-
-