Opened 7 years ago

Closed 7 years ago

#2061 closed enhancement (fixed)

Add API for setting registration date on items

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

Description (last modified by Nicklas Nordborg)

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 by Nicklas Nordborg, 7 years ago

Description: modified (diff)

comment:2 by Nicklas Nordborg, 7 years ago

Resolution: fixed
Status: newclosed

(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.