Class PlatformFileSystemSupport

java.lang.Object
com._1c.g5.v8.dt.internal.platform.services.core.PlatformFileSystemSupport
All Implemented Interfaces:
IPlatformFileSystemSupport

public class PlatformFileSystemSupport extends Object implements IPlatformFileSystemSupport
Implementation of IPlatformFileSystemSupport.
  • Constructor Details

    • PlatformFileSystemSupport

      public PlatformFileSystemSupport()
  • Method Details

    • lineSeparator

      public String lineSeparator()
      Description copied from interface: IPlatformFileSystemSupport
      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.
      Specified by:
      lineSeparator in interface IPlatformFileSystemSupport
      Returns:
      the system-dependent line separator used by the 1C:Enterprise in the current OS, never null
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: IPlatformFileSystemSupport
      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.

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

      public Path getDefaultInfobaseRootLocation()
      Description copied from interface: IPlatformFileSystemSupport
      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.

      Specified by:
      getDefaultInfobaseRootLocation in interface IPlatformFileSystemSupport
      Returns:
      the default location for infobase creation or null if none
    • getInfobaseReferenceStoreLocation

      public Path getInfobaseReferenceStoreLocation()
      Description copied from interface: IPlatformFileSystemSupport
      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.

      Specified by:
      getInfobaseReferenceStoreLocation in interface IPlatformFileSystemSupport
      Returns:
      location of infobase references store location or null if none
    • getProfileRootLocation

      public Path getProfileRootLocation()
      Description copied from interface: IPlatformFileSystemSupport
      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.

      Specified by:
      getProfileRootLocation in interface IPlatformFileSystemSupport
      Returns:
      1C:Eneterprise profiles root location, never null
    • getStarterConfigLocations

      public Path[] getStarterConfigLocations()
      Description copied from interface: IPlatformFileSystemSupport
      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.

      Specified by:
      getStarterConfigLocations in interface IPlatformFileSystemSupport
      Returns:
      a an array of 1C:Enterprise Starter configlocations, never null
    • getDefaultClusterDataLocation

      public Path getDefaultClusterDataLocation()
      Description copied from interface: IPlatformFileSystemSupport
      Returns 1C:Eneterprise default path to the cluster registry directory location. Usually contains "1cv8wsrv.lst" file

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

      Specified by:
      getDefaultClusterDataLocation in interface IPlatformFileSystemSupport
      Returns:
      1C:Eneterprise default path to the cluster registry directory location or null if none
    • getDelegate

      protected IPlatformFileSystemSupportDelegate getDelegate()
      Get platform file system support delegate.
      Returns:
      platform file system support delegate or null if no delegate or multiple delegates are registered
    • loadDelegate

      protected IPlatformFileSystemSupportDelegate loadDelegate()
      Load platform file system support delegate.
      Returns:
      platform file system support delegate or null, if loading fails:
      • no delegate registered in Extension Points
      • more than 1 delegate registered in Extension Points