Class PlatformFileSystemSupport
java.lang.Object
com._1c.g5.v8.dt.internal.platform.services.core.PlatformFileSystemSupport
- All Implemented Interfaces:
IPlatformFileSystemSupport
Implementation of
IPlatformFileSystemSupport
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 1C:Eneterprise default path to the cluster registry directory location.Returns the default location for infobases.protected IPlatformFileSystemSupportDelegate
Get platform file system support delegate.Returns location of infobase references store location.Returns 1C:Eneterprise profiles root location.Path[]
Returns an array of 1C:Enterprise Starter config file locations.boolean
Returns whether 1C:Enterprise service pathes are avaiable by the current OS and usage of file-system support is supported.Returns the system-dependent line separator used by the 1C:Enterprise in the current OS.protected IPlatformFileSystemSupportDelegate
Load platform file system support delegate.
-
Constructor Details
-
PlatformFileSystemSupport
public PlatformFileSystemSupport()
-
-
Method Details
-
lineSeparator
Description copied from interface:IPlatformFileSystemSupport
Returns the system-dependent line separator used by the 1C:Enterprise in the current OS. Instead of defaultSystem.lineSeparator()
1C:Enterprise uses its own line separator that may differ from system.- Specified by:
lineSeparator
in interfaceIPlatformFileSystemSupport
- 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 ofIPlatformFileSystemSupport
exceptlineSeparator()
will returnnull
or empty.- Specified by:
isEnabled
in interfaceIPlatformFileSystemSupport
- Returns:
- whether 1C:Enterprise service pathes are avaiable by the current OS and usage of file-system support is supported
-
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 interfaceIPlatformFileSystemSupport
- Returns:
- the default location for infobase creation or
null
if none
-
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 interfaceIPlatformFileSystemSupport
- Returns:
- location of infobase references store location or
null
if none
-
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 interfaceIPlatformFileSystemSupport
- Returns:
- 1C:Eneterprise profiles root location, never
null
-
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 interfaceIPlatformFileSystemSupport
- Returns:
- a an array of 1C:Enterprise Starter configlocations, never
null
-
getDefaultClusterDataLocation
Description copied from interface:IPlatformFileSystemSupport
Returns 1C:Eneterprise default path to the cluster registry directory location. Usually contains "1cv8wsrv.lst" fileCan return
null
if none or if appropriate delegate is not registered for the current OS.- Specified by:
getDefaultClusterDataLocation
in interfaceIPlatformFileSystemSupport
- Returns:
- 1C:Eneterprise default path to the cluster registry directory location or
null
if none
-
getDelegate
Get platform file system support delegate.- Returns:
- platform file system support delegate or
null
if no delegate or multiple delegates are registered
-
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
-