[MAGNOLIA-5404] Provide task for updating virtualUriMappings values Created: 18/Oct/13  Updated: 22/Oct/13  Resolved: 21/Oct/13

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: None
Fix Version/s: 5.1.1

Type: Task Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: 4.5_to_5_migration
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLADMLEG-30 Invalid Virtual URI Mapping from 45 Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   

ChangeVirtualUriMappingTask(String name, String description, String currentValue, String newValue)

  1. change all fromURI attributes from currentValue to newValue
  2. change all toURI attributes from prefix:currentValue to prefix:newValue


 Comments   
Comment by Roman Kovařík [ 18/Oct/13 ]

Extend from QueryTask.

Comment by Roman Kovařík [ 18/Oct/13 ]

QueryTask cannot be used because we need to create query according to prefixes parameter.

Comment by Tobias Mattsson [ 18/Oct/13 ]

Constants for the prefixes already exists in RequestDispatchUtil.

The other constants should be final and preferably private.

The name of the class should indicate that it changes ALL mappings. Would be enough to make it plural like ChangeVirtualUriMappingsTask.

Generated at Mon Feb 12 04:04:50 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.