@Named public class FragmentService extends AbstractArtifactService
modelVersion| Constructor and Description |
|---|
FragmentService(FragmentRepository fragmentRepository,
FragmentMigrationApplyer fragmentMigrationApplyer,
FragmentIdVisitor fragmentIdVisitor) |
| Modifier and Type | Method and Description |
|---|---|
Fragment |
get(String id) |
MigrationStatusReport |
getMigrationStatusOfFragmentUsed(Previewable previewable) |
MigrationStatusReport |
getStatus(Identifiable identifiable) |
Fragment |
migrate(Identifiable artifact) |
MigrationResult |
migrate(Identifiable fragment,
boolean migrateChildren)
Migrate a fragment.
|
List<MigrationStepReport> |
migrateAllFragmentUsed(Previewable previewable) |
MigrationResult |
migrateWithReport(Identifiable artifact) |
getStatusWithoutDependencies, mergeStatusReport@Inject public FragmentService(FragmentRepository fragmentRepository, FragmentMigrationApplyer fragmentMigrationApplyer, FragmentIdVisitor fragmentIdVisitor)
public Fragment migrate(Identifiable artifact)
public MigrationResult migrateWithReport(Identifiable artifact)
public MigrationStatusReport getStatus(Identifiable identifiable)
getStatus in interface ArtifactServicegetStatus in class AbstractArtifactServicepublic MigrationResult migrate(Identifiable fragment, boolean migrateChildren)
fragment - The fragment to migrate.migrateChildren - A boolean to indicate if we need to trigger migration of the widgets and fragments used
in the current fragment.public List<MigrationStepReport> migrateAllFragmentUsed(Previewable previewable)
public MigrationStatusReport getMigrationStatusOfFragmentUsed(Previewable previewable)
Copyright © 2021. All rights reserved.