public class DocStoreEnvUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DOC_STORE_PROPERTIES_FILE_SYS_PROP |
static String |
DOCSTORE_DOCUMENTCONFIG_FILE |
static String |
DOCSTORE_LOG4J_PROPERTIES_FILE |
static String |
DOCSTORE_PROPERTIES_FILE |
static String |
DOCSTORE_PROPERTIES_FOLDER |
static String |
DOCSTORE_ROOT_DEFAULT |
static String |
DOCSTORE_ROOT_DIR |
static String |
DOCSTORE_ROOT_TEST_DEFAULT |
protected String |
docStoreDocumentConfigFilePath |
protected String |
docStorePropertiesFilePath |
protected String |
docStorePropertiesFolderPath |
protected String |
rootFolderPath |
Constructor and Description |
---|
DocStoreEnvUtil() |
Modifier and Type | Method and Description |
---|---|
String |
getDocStorePropertiesFilePath() |
String |
getDocStorePropertiesFolderPath() |
String |
getDocStoreRoot(String defaultValue)
Calculate the correct home directory for docstore based on system properties and environment.
|
protected List<ResourceItem> |
getResourceItems()
Return a list of
ResourceItem objects representing resources required by the docstore application. |
String |
getRootFolderPath() |
protected void |
initEnv(String defaultRootValue)
Configure the home directory for docstore.
|
void |
initEnvironment()
Initializes environment for normal use of docStore.
|
void |
initEnvironmentCommon(String docStoreRoot)
Initializes an environment for the DocStore application at the given root folder.
|
void |
initPathValues(String docStoreRoot) |
void |
initTestEnvironment()
Initializes environment for testing.
|
void |
logEnvironment() |
void |
printEnvironment() |
void |
setDocStorePropertiesFilePath(String docStorePropertiesFilePath) |
void |
setDocStorePropertiesFolderPath(String docStorePropertiesFolderPath) |
void |
setProperties(Properties properties) |
void |
setRootFolderPath(String rootFolderPath) |
void |
setVendor(String vendor) |
public static final String DOCSTORE_ROOT_DIR
public static final String DOCSTORE_ROOT_DEFAULT
public static final String DOCSTORE_ROOT_TEST_DEFAULT
public static final String DOCSTORE_PROPERTIES_FOLDER
public static final String DOCSTORE_PROPERTIES_FILE
public static final String DOCSTORE_LOG4J_PROPERTIES_FILE
public static final String DOCSTORE_DOCUMENTCONFIG_FILE
public static final String DOC_STORE_PROPERTIES_FILE_SYS_PROP
protected String docStorePropertiesFilePath
protected String rootFolderPath
protected String docStorePropertiesFolderPath
protected String docStoreDocumentConfigFilePath
public DocStoreEnvUtil()
public void initEnvironment() throws IOException
IOException
public void initTestEnvironment() throws IOException
IOException
protected void initEnv(String defaultRootValue) throws IOException
ole.docstore.home
is guaranteed to be set.IOException
public String getDocStoreRoot(String defaultValue)
public void initPathValues(String docStoreRoot)
public void initEnvironmentCommon(String docStoreRoot)
protected List<ResourceItem> getResourceItems()
ResourceItem
objects representing resources required by the docstore application.public void setProperties(Properties properties)
public void printEnvironment()
public void logEnvironment()
public String getDocStorePropertiesFolderPath()
public void setDocStorePropertiesFolderPath(String docStorePropertiesFolderPath)
public String getDocStorePropertiesFilePath()
public void setDocStorePropertiesFilePath(String docStorePropertiesFilePath)
public String getRootFolderPath()
public void setRootFolderPath(String rootFolderPath)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.