Class AssetMigrator
java.lang.Object
com.inductiveautomation.perspective.gateway.assets.AssetMigrator
- Direct Known Subclasses:
FontMigrator
,IconMigrator
,ThemeMigrator
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AssetMigrator
(PerspectiveContext perspectiveContext, String assetRoot) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List<ChangeOperation>
Maps a file to aResource
so it may be created in the `CORE` The only thing this method does is to create the base resource path, its config, and any data files.void
migrate()
readDigest
(InputStream inputStream)
-
Field Details
-
DIGEST_TYPE
-
logger
-
assetRoot
-
digestPath
-
assetPath
-
context
-
IS_NON_TEMP_FILE
-
-
Constructor Details
-
AssetMigrator
-
-
Method Details
-
migrate
- Throws:
MigrationException
-
changeOperations
Maps a file to aResource
so it may be created in the `CORE` The only thing this method does is to create the base resource path, its config, and any data files. the collection and scope will be set to `CORE` and `GATEWAY` respectively.- Throws:
MigrationException
-
readDigestFile
- Throws:
MigrationException
-
readDigest
- Throws:
MigrationException
-