Package com._1c.g5.v8.dt.core.provider
Class BaseBmBlobImporter
- java.lang.Object
-
- com._1c.g5.v8.dt.core.provider.BmContentImportSupport
-
- com._1c.g5.v8.dt.core.provider.TransactionalBmContentImporter
-
- com._1c.g5.v8.dt.core.provider.BaseBmBlobImporter
-
- All Implemented Interfaces:
IResourceContentImporter
public abstract class BaseBmBlobImporter extends TransactionalBmContentImporter
BaseIResourceContentImporter
implementation responsible for handling BLOBs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
BaseBmBlobImporter.BlobInfo
Blob information.-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.core.provider.BmContentImportSupport
BmContentImportSupport.ILoadOptionsProvider, BmContentImportSupport.LoadedData, BmContentImportSupport.NonCloseableHashingInputStream
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
IResourceContentImporter.IMergeStrategy
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
PLATFORM_VERSION
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseBmBlobImporter(IBmModelManager bmModelManager)
Constructs an instance
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract BaseBmBlobImporter.BlobInfo
extractBlobInfo(org.eclipse.core.runtime.IPath path)
Extracts blob information from the specified workspace file path.protected 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 resourceprotected void
handleResourceDeletion(IBmPlatformTransaction transaction, IBmNamespace namespace, IDtProject project, org.eclipse.core.runtime.IPath path)
Handles a data removal process for a removed resource-
Methods inherited from class com._1c.g5.v8.dt.core.provider.TransactionalBmContentImporter
computeSignature, handleResourceCreationOrModification, handleResourceDeletion
-
Methods inherited from class com._1c.g5.v8.dt.core.provider.BmContentImportSupport
computeSha256Hash, doResourceLoad, executeTaskInContextIfNecessary, forceDerivedDataRebuild, getRuntimeVersion, loadData, resolveFqn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
getOrder, supports
-
-
-
-
Constructor Detail
-
BaseBmBlobImporter
protected BaseBmBlobImporter(IBmModelManager bmModelManager)
Constructs an instance- Parameters:
bmModelManager
- TheIBmModelManager
service reference. May not benull
-
-
Method Detail
-
handleResourceCreationOrModification
protected final byte[] handleResourceCreationOrModification(IBmPlatformTransaction transaction, IBmNamespace namespace, IDtProject project, org.eclipse.core.runtime.IPath path, InputStream content, boolean fullOverride)
Description copied from class:TransactionalBmContentImporter
Handles a data import process for an imported resource- Specified by:
handleResourceCreationOrModification
in classTransactionalBmContentImporter
- Parameters:
transaction
- The data import BM transaction. Nevernull
namespace
- The target BM namespace for an import. Nevernull
project
- The targetIDtProject
. Nevernull
path
- The imported resource path. May not benull
content
- The imported content stream. May not benull
fullOverride
- Data full override import mode- Returns:
- Signature of imported data. Never
null
-
handleResourceDeletion
protected final void handleResourceDeletion(IBmPlatformTransaction transaction, IBmNamespace namespace, IDtProject project, org.eclipse.core.runtime.IPath path)
Description copied from class:TransactionalBmContentImporter
Handles a data removal process for a removed resource- Specified by:
handleResourceDeletion
in classTransactionalBmContentImporter
- Parameters:
transaction
- The data import BM transaction. Nevernull
namespace
- The target BM namespace for an import. Nevernull
project
- TargetIDtProject
. Nevernull
path
- The removed resource path. May not benull
-
extractBlobInfo
protected abstract BaseBmBlobImporter.BlobInfo extractBlobInfo(org.eclipse.core.runtime.IPath path)
Extracts blob information from the specified workspace file path.- Parameters:
path
- The workspace file path. May not benull
.- Returns:
- extracted blob information. Never
null
.
-
-