public class BookmarkTool extends Object
| Constructor and Description |
|---|
BookmarkTool() |
| Modifier and Type | Method and Description |
|---|---|
static void |
configureExportFileNames(String encodingChar,
List<String> charsToEncode)
Sets the character that should be used to replace forbidden characters in file names.
|
static void |
exportBookmarks(com.qfs.content.snapshot.impl.ContentServiceSnapshotter snapshotter,
String folderName,
Map<String,List<String>> defaultPermissions)
Exports content server bookmarks into a directory structure representing the UI bookmark structure.
|
static void |
importBookmarks(com.qfs.content.snapshot.impl.ContentServiceSnapshotter snapshotter,
String folderName,
Map<String,List<String>> defaultPermissions)
Imports content server bookmarks from a directory structure representing the required UI bookmark structure.
|
static com.quartetfs.fwk.IPair<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode> |
transformPermissionsMapToPair(Map<String,List<String>> permissions)
Transform a permissions map of type to role names into a pair of JsonNode objects.
|
static Map<String,List<String>> |
transformPermissionsPairToMap(com.quartetfs.fwk.IPair<com.fasterxml.jackson.databind.node.ArrayNode,com.fasterxml.jackson.databind.node.ArrayNode> permissions)
Transform a pair of JsonNode objects into a map of type to role name.
|
static Map<String,List<String>> |
transformPermissionsStringsToMap(String owners,
String readers)
Transform the string representation of lists of role names into a map of type to role name.
|
static com.quartetfs.fwk.IPair<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode> |
transformPermissionsStringsToPair(String owners,
String readers)
Transform the string representation of lists of role names into a pair of JsonNode objects.
|
public static void importBookmarks(com.qfs.content.snapshot.impl.ContentServiceSnapshotter snapshotter,
String folderName,
Map<String,List<String>> defaultPermissions)
snapshotter - The content service snapshotter to use for the import.folderName - The folder from which to import the bookmarks.defaultPermissions - The permissions to use when not explicitly defining permissions for any bookmark path.public static void exportBookmarks(com.qfs.content.snapshot.impl.ContentServiceSnapshotter snapshotter,
String folderName,
Map<String,List<String>> defaultPermissions)
snapshotter - The content service snapshotter to use for the export.folderName - The folder into which the bookmarks should be exported.defaultPermissions - The default permissions to use for the tree, except where explicitly defined otherwise.public static void configureExportFileNames(String encodingChar, List<String> charsToEncode)
encodingChar - The encoding character.charsToEncode - A custom list of characters that should be replaced with the encoding character.public static com.quartetfs.fwk.IPair<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode> transformPermissionsMapToPair(Map<String,List<String>> permissions)
permissions - The map of type to role name.public static com.quartetfs.fwk.IPair<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode> transformPermissionsStringsToPair(String owners, String readers)
owners - The string representation of a list of owners.readers - The string representation of a list of readers.public static Map<String,List<String>> transformPermissionsStringsToMap(String owners, String readers)
owners - The string representation of a list of owners.readers - The string representation of a list of readers.public static Map<String,List<String>> transformPermissionsPairToMap(com.quartetfs.fwk.IPair<com.fasterxml.jackson.databind.node.ArrayNode,com.fasterxml.jackson.databind.node.ArrayNode> permissions)
permissions - The pair of JsonNode objects.Copyright © 2020. All rights reserved.