@RestController @RequestMapping(value="/rest/migration") public class MigrationResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
modelVersion |
| Constructor and Description |
|---|
MigrationResource(WorkspaceInitializer workspaceInitializer,
PageRepository pageRepository,
WidgetRepository widgetRepository,
FragmentRepository fragmentRepository,
PageService pageService,
WidgetService widgetService,
FragmentService fragmentService) |
| Modifier and Type | Method and Description |
|---|---|
String |
migrate() |
void |
migrateAllArtifacts() |
static org.springframework.http.ResponseEntity<MigrationReport> |
migrateArtifact(String artifactId,
DesignerArtifact designerArtifact,
AbstractArtifactService service) |
org.springframework.http.ResponseEntity<MigrationReport> |
migrateFragments(javax.servlet.http.HttpServletRequest request,
String fragmentId) |
org.springframework.http.ResponseEntity<MigrationReport> |
migratePage(String pageId) |
org.springframework.http.ResponseEntity<MigrationReport> |
migrateWidget(String widgetId) |
org.springframework.http.ResponseEntity<MigrationStatusReport> |
statusByArtifactJson(String artifact) |
MigrationStatusReport |
statusByFragmentId(String fragmentId) |
MigrationStatusReport |
statusByPageId(String pageId) |
MigrationStatusReport |
statusByWidgetId(String widgetId) |
@Value(value="${designer.modelVersion}")
protected String modelVersion
@Inject public MigrationResource(WorkspaceInitializer workspaceInitializer, PageRepository pageRepository, WidgetRepository widgetRepository, FragmentRepository fragmentRepository, PageService pageService, WidgetService widgetService, FragmentService fragmentService)
@RequestMapping(method=POST) @ResponseBody public String migrate()
@RequestMapping(value="/page/{pageId}",
method=PUT,
produces="application/json")
public org.springframework.http.ResponseEntity<MigrationReport> migratePage(@PathVariable(value="pageId")
String pageId)
throws RepositoryException
RepositoryException@RequestMapping(value="/widget/{widgetId}",
method=PUT,
produces="application/json")
public org.springframework.http.ResponseEntity<MigrationReport> migrateWidget(@PathVariable(value="widgetId")
String widgetId)
throws RepositoryException
RepositoryExceptionpublic static org.springframework.http.ResponseEntity<MigrationReport> migrateArtifact(String artifactId, DesignerArtifact designerArtifact, AbstractArtifactService service)
@RequestMapping(value="/status/page/{pageId}",
method=GET,
produces="application/json")
public MigrationStatusReport statusByPageId(@PathVariable(value="pageId")
String pageId)
@RequestMapping(value="/status/widget/{widgetId}",
method=GET,
produces="application/json")
public MigrationStatusReport statusByWidgetId(@PathVariable(value="widgetId")
String widgetId)
@RequestMapping(value="/status",
method=POST,
produces="application/json")
public org.springframework.http.ResponseEntity<MigrationStatusReport> statusByArtifactJson(@RequestBody
String artifact)
@RequestMapping(value="/status/fragment/{fragmentId}",
method=GET,
produces="application/json")
public MigrationStatusReport statusByFragmentId(@PathVariable(value="fragmentId")
String fragmentId)
@RequestMapping(value="/fragment/{fragmentId}",
method=PUT,
produces="application/json")
public org.springframework.http.ResponseEntity<MigrationReport> migrateFragments(javax.servlet.http.HttpServletRequest request,
@PathVariable(value="fragmentId")
String fragmentId)
throws RepositoryException
RepositoryExceptionpublic void migrateAllArtifacts()
Copyright © 2020. All rights reserved.