Class Resources
java.lang.Object
it.uniroma2.art.semanticturkey.resources.Resources
- Author:
- Armando Stellato
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createDataDirectoryFromScratch
(File userDir) static File
this method is used to get the path of a new temp file to be used for whatever reason (the file is stored in the default temp file directory of Semantic Turkeystatic File
static File
static File
static File
as from sturkey.properties property: ontologiesMirrorLocation if property is set to default, then its value is ontologiesMirror dir inside the ontDir directory (delegating to Config.getOntologiesMirrorLocation, which reads the property file)static File
static File
static File
static File
static File
static File
static File
static File
static String
static void
Initializes groups folder: simply creates an empty folder named "groups"static void
initializeUserResources
(org.springframework.core.env.Environment env) static void
Initializes the SemanticTurkeyData directory according the dataDir property set in it.uniroma2.art.semanticturkey.cfg Then initializes also all the subfolders in the ST data dirstatic void
setExtensionPath
(String extensionPathName)
-
Field Details
-
logger
protected static org.slf4j.Logger logger
-
-
Constructor Details
-
Resources
public Resources()
-
-
Method Details
-
initializeUserResources
public static void initializeUserResources(org.springframework.core.env.Environment env) throws STInitializationException - Throws:
STInitializationException
-
initSemTurkeyDataDir
public static void initSemTurkeyDataDir()Initializes the SemanticTurkeyData directory according the dataDir property set in it.uniroma2.art.semanticturkey.cfg Then initializes also all the subfolders in the ST data dir -
getSemTurkeyDataDir
-
getOntologiesMirrorDir
as from sturkey.properties property: ontologiesMirrorLocation if property is set to default, then its value is ontologiesMirror dir inside the ontDir directory (delegating to Config.getOntologiesMirrorLocation, which reads the property file)- Returns:
-
setExtensionPath
-
getExtensionPath
-
getXSLDirectoryPath
-
getOntTempDir
- Returns:
- the ontTempDir
-
getProjectsDir
-
getSystemDir
-
getUsersDir
-
getGroupsDir
-
getProjectUserBindingsDir
-
getProjectGroupBindingsDir
-
getDocsDir
-
createTempDir
this method is used to get the path of a new temp file to be used for whatever reason (the file is stored in the default temp file directory of Semantic Turkey- Returns:
- the path to the temp file
- Throws:
IOException
-
createDataDirectoryFromScratch
public static void createDataDirectoryFromScratch(File userDir) throws IOException, STInitializationException - Throws:
IOException
STInitializationException
-
getOSGiPath
-
initializeGroups
public static void initializeGroups()Initializes groups folder: simply creates an empty folder named "groups"
-