Class LsDataContentImporter
java.lang.Object
com._1c.g5.v8.dt.core.provider.BmContentImportSupport
com._1c.g5.v8.dt.core.provider.TransactionalBmContentImporter
com.e1c.langtool.v8.dt.ls.importer.AbstractLstrContentImporter
com.e1c.langtool.v8.dt.ls.importer.LsDataContentImporter
- All Implemented Interfaces:
IResourceContentImporter
Imports LSTR resources directly to the translation repository. Uses BM import infrustructure, yet doesn't
create BM objects directly
-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.core.provider.BmContentImportSupport
BmContentImportSupport.ILoadOptionsProvider, BmContentImportSupport.LoadedData, BmContentImportSupport.NonCloseableHashingInputStreamNested classes/interfaces inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
IResourceContentImporter.IMergeStrategy -
Field Summary
Fields inherited from class com.e1c.langtool.v8.dt.ls.importer.AbstractLstrContentImporter
LSTR_EXTFields inherited from class com._1c.g5.v8.dt.core.provider.TransactionalBmContentImporter
OTHER_SEGMENTFields inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
PIPELINE_SEGMENT_PREFIX, PLATFORM_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionLsDataContentImporter(IBmModelManager bmModelManager, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter) -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractLstrContentImportercreate()byte[]handleResourceCreationOrModification(IBmPlatformTransaction transaction, IBmNamespace namespace, IDtProject project, org.eclipse.core.runtime.IPath path, InputStream content, boolean fullOverride) Handles a data import process for an imported resourceMethods inherited from class com.e1c.langtool.v8.dt.ls.importer.AbstractLstrContentImporter
dependsOn, fillupEmptyInterface, getCurrentStorage, getPipelineSegment, handleResourceDeletion, importInterfaces, supportsMethods inherited from class com._1c.g5.v8.dt.core.provider.TransactionalBmContentImporter
computeSignature, handleResourceCreationOrModification, handleResourceDeletion, loadDataMethods inherited from class com._1c.g5.v8.dt.core.provider.BmContentImportSupport
computeSha256Hash, doResourceLoad, executeImportInContextIfNecessary, executeTaskInContextIfNecessary, forceDerivedDataRebuild, getRuntimeVersion, resolveFqnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
getPipelineSegmentImportDescription
-
Constructor Details
-
LsDataContentImporter
@Inject public LsDataContentImporter(IBmModelManager bmModelManager, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter)
-
-
Method Details
-
create
-
handleResourceCreationOrModification
public byte[] handleResourceCreationOrModification(IBmPlatformTransaction transaction, IBmNamespace namespace, IDtProject project, org.eclipse.core.runtime.IPath path, InputStream content, boolean fullOverride) Description copied from class:TransactionalBmContentImporterHandles a data import process for an imported resource- Overrides:
handleResourceCreationOrModificationin classAbstractLstrContentImporter- Parameters:
transaction- The data import BM transaction. Nevernullnamespace- The target BM namespace for an import. Nevernullproject- The targetIDtProject. Nevernullpath- The imported resource path. May not benullcontent- The imported content stream. May not benullfullOverride- Data full override import mode- Returns:
- Signature of imported data. Never
null
-