public class MetaUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
getDataRootsFromGlobalConfiguration(com.tridion.configuration.Configuration global,
Map<String,File> pubDirs)
Gets all DataRoot directories from the Publication elements of the Broker configuration files, and adds them
to the Map passed as a parameter, using the lower case file name as a key.
|
static void |
getDirectoriesBelowDefaultDataRoot(File defaultDataRoot,
Map<String,File> pubDirs)
Gets all directories below the default DataRoot, and adds them
to the Map passed as a parameter, using the lower case file name as a key.
|
static String |
readURIFromFile(String fullPathName)
Attempts to open a file, read the contents, and return the contents as a String,
which is either a TCMURI or a TCDURI.
|
public static void getDataRootsFromGlobalConfiguration(com.tridion.configuration.Configuration global,
Map<String,File> pubDirs)
throws com.tridion.configuration.ConfigurationException
global - The global Broker configurationpubDirs - A Map representing the metadata directories (File objects), using the lowercase file name as a
key.com.tridion.configuration.ConfigurationException - If the Publications element cannot be read.public static void getDirectoriesBelowDefaultDataRoot(File defaultDataRoot, Map<String,File> pubDirs)
defaultDataRoot - A File representing a Directory which is configured as the Default DataRoot.pubDirs - A Map representing the metadata directories (File objects), using the lowercase file
name as a key.public static String readURIFromFile(String fullPathName) throws StorageException
fullPathName - The Path of the File which should contain a TCMURI or TCDURIStorageException - when file could not be read.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries