Opened 4 months ago

Closed 4 months ago

#2061 closed enhancement (fixed)

Add API for setting registration date on items

Reported by: nicklas Owned by: everyone
Priority: major Milestone: BASE 3.11
Component: core Version:
Keywords: Cc:

Description (last modified by nicklas)

The registration date is currently set automatically by the core when new items are created. This makes it impossible to copy data between servers while preserving the registration date from the original server.

We should add an API method to the Registered interface that can set the registration date. It should only be possible to set on newly created items before they are saved to the database (the registration date column is mapped with update=false in Hibernate).

The batch importers should be able to import the registration date from data files. See #2062.

Change History (2)

comment:1 Changed 4 months ago by nicklas

  • Description modified (diff)

comment:2 Changed 4 months ago by nicklas

  • Resolution set to fixed
  • Status changed from new to closed

(In [7308]) Fixes #2061: Add API for setting registration date on items

Added Registered.setEntryDate() method and implemented in all subclasses.

Note: See TracTickets for help on using tickets.