Interface IPlatformFileSystemSupport


  • public interface IPlatformFileSystemSupport
    Provides information about specific file system locations, used by the 1C:Enterprise platform:
    • Infobases root location.
    • Infobase references store location.
    • 1C:Enteprise profiles root location.
    • 1C:Enteprise 1C:Enterprise Starter config locations.

    IPlatformFileSystemSupport delegates methods calls to appropriate delegate implementation for the current OS. Every method of IPlatformFileSystemSupport can return null or empty result if requested 1C:Enterprise service path is not supported by the current OS.

    • Method Detail

      • lineSeparator

        String lineSeparator()
        Returns the system-dependent line separator used by the 1C:Enterprise in the current OS. Instead of default System.lineSeparator() 1C:Enterprise uses its own line separator that may differ from system.
        Returns:
        the system-dependent line separator used by the 1C:Enterprise in the current OS, never null
      • isEnabled

        boolean isEnabled()
        Returns whether 1C:Enterprise service pathes are avaiable by the current OS and usage of file-system support is supported.

        If false then every method of IPlatformFileSystemSupport except lineSeparator() will return null or empty.

        Returns:
        whether 1C:Enterprise service pathes are avaiable by the current OS and usage of file-system support is supported
      • getDefaultInfobaseRootLocation

        Path getDefaultInfobaseRootLocation()
        Returns the default location for infobases. Contains file system location to create infobases in.

        Can return null if none or if appropriate delegate is not registered for the current OS.

        Returns:
        the default location for infobase creation or null if none
      • getInfobaseReferenceStoreLocation

        Path getInfobaseReferenceStoreLocation()
        Returns location of infobase references store location. Infobase references store contains description of local registered infobases.

        Can return null if none or if appropriate delegate is not registered for the current OS.

        Returns:
        location of infobase references store location or null if none
      • getProfileRootLocation

        Path getProfileRootLocation()
        Returns 1C:Eneterprise profiles root location. Contains file system location to get infobase templates from.

        Can return null if none or if appropriate delegate is not registered for the current OS.

        Returns:
        1C:Eneterprise profiles root location, never null
      • getStarterConfigLocations

        Path[] getStarterConfigLocations()
        Returns an array of 1C:Enterprise Starter config file locations. Some OS supports multiple 1C:Enterprise Starter config files.

        Can return empty if none or if appropriate delegate is not registered for the current OS.

        Returns:
        a an array of 1C:Enterprise Starter configlocations, never null