Class Resources

java.lang.Object
it.uniroma2.art.semanticturkey.resources.Resources

public class Resources extends Object
Author:
Armando Stellato
  • 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

      public static File getSemTurkeyDataDir()
    • getOntologiesMirrorDir

      public static File 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

      public static void setExtensionPath(String extensionPathName)
    • getExtensionPath

      public static File getExtensionPath()
    • getXSLDirectoryPath

      public static String getXSLDirectoryPath()
    • getOntTempDir

      public static File getOntTempDir()
      Returns:
      the ontTempDir
    • getProjectsDir

      public static File getProjectsDir()
    • getSystemDir

      public static File getSystemDir()
    • getUsersDir

      public static File getUsersDir()
    • getGroupsDir

      public static File getGroupsDir()
    • getProjectUserBindingsDir

      public static File getProjectUserBindingsDir()
    • getProjectGroupBindingsDir

      public static File getProjectGroupBindingsDir()
    • getDocsDir

      public static File getDocsDir()
    • createTempDir

      public static File createTempDir() throws IOException
      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

      public static File getOSGiPath()
    • initializeGroups

      public static void initializeGroups()
      Initializes groups folder: simply creates an empty folder named "groups"