Interface MigrationResource
- All Superinterfaces:
AuthenticatedResource
Resource used for performing Tag Type Migrations and Template Migrations
- Author:
- Taylor
-
Method Summary
Modifier and TypeMethodDescriptionCancel the current tag type migration job, if one is being executedGet a list of constructs, that can be migrated for the given typegetMigrationJobItems
(int jobId) Get the migration job items for the given jobgetMigrationLog
(int jobId) Get the log for a given tag type migration jobGet a list of all tag type migration logsGet the migration status for a given tag type migration jobgetMigrationTagTypes
(MigrationTagsRequest request) Deprecated.Get a list of parts for a single tag typegetPossiblePartMappings
(int fromTagTypeId, int toTagTypeId) Get a response that contains maps and lists with possible part mappings between to both tagtypesPerform tag migration processReinvoke the tag type migration for the given objectMethods inherited from interface com.gentics.contentnode.rest.resource.AuthenticatedResource
setSessionId
-
Method Details
-
cancelMigration
Cancel the current tag type migration job, if one is being executed- Returns:
- response object containing details about the cancellation
-
getMigrationStatus
Get the migration status for a given tag type migration job- Returns:
- response object containing details about the status of the current migration
-
getMigrationJobItems
@GET @Path("/getMigrationJobItems/{jobId}") MigrationJobItemsResponse getMigrationJobItems(@PathParam("jobId") int jobId) Get the migration job items for the given job- Parameters:
jobId
- The jobId for which the items should be loaded- Returns:
-
getMigrationLogs
Get a list of all tag type migration logs- Returns:
-
getMigrationLog
@GET @Path("/getMigrationLog/{jobId}") MigrationGetLogResponse getMigrationLog(@PathParam("jobId") int jobId) Get the log for a given tag type migration job- Parameters:
jobId
- the id of the migration job- Returns:
-
performTagTypeMigration
@POST @Path("/performMigration") MigrationResponse performTagTypeMigration(TagTypeMigrationRequest request) Perform tag migration process- Parameters:
request
- migration request object- Returns:
- response object
-
performTemplateMigration
@POST @Path("/performTemplateMigration") MigrationResponse performTemplateMigration(TemplateMigrationRequest request) -
reinvokeTagTypeMigration
@POST @Path("/reinvokeMigration") MigrationResponse reinvokeTagTypeMigration(MigrationReinvokeRequest request) Reinvoke the tag type migration for the given object- Parameters:
request
-- Returns:
-
getPossiblePartMappings
@GET @Path("/getPossiblePartMappings") PossiblePartMappingsResponse getPossiblePartMappings(@QueryParam("fromTagTypeId") int fromTagTypeId, @QueryParam("toTagTypeId") int toTagTypeId) Get a response that contains maps and lists with possible part mappings between to both tagtypes- Parameters:
fromTagTypeId
- TagTypeId of the tagtype that should be mappedtoTagTypeId
- TagTypeId of the desired target tagtype- Returns:
- response object
-
getPartsForTagType
@GET @Path("/getPartsForTagType/{id}") MigrationPartsResponse getPartsForTagType(@PathParam("id") String id) Get a list of parts for a single tag type- Parameters:
id
- id of the tag type to return tags for- Returns:
- response object containing the parts for the requested tag type
-
getMigrationTagTypes
@POST @Path("/getMigrationTagTypes") MigrationTagsResponse getMigrationTagTypes(MigrationTagsRequest request) Deprecated.usegetMigrationConstructs(MigrationTagsRequest)
insteadGet a list of Tag Types for possible migration by examining the given objects- Parameters:
request
- migration tags request object- Returns:
- response object containing the tags for the requested objects
-
getMigrationConstructs
@POST @Path("/getMigrationConstructs") ConstructListResponse getMigrationConstructs(MigrationTagsRequest request) Get a list of constructs, that can be migrated for the given type- Parameters:
request
- request containing the migration type- Returns:
- list of constructs
-
getMigrationConstructs(MigrationTagsRequest)
instead