Search in sources :

Example 1 with MetsHdr

use of org.mycore.mets.model.header.MetsHdr in project mycore by MyCoRe-Org.

the class MCRMETSHierarchyGenerator method createMetsHdr.

/**
 * Creates a new mets header with current dates and record status = autogenerated.
 *
 * @return generated mets header section.
 */
protected MetsHdr createMetsHdr() {
    MetsHdr hdr = new MetsHdr();
    hdr.setCreateDate(Instant.now());
    hdr.setLastModDate(Instant.now());
    hdr.setRecordStatus("autogenerated");
    return hdr;
}
Also used : MetsHdr(org.mycore.mets.model.header.MetsHdr)

Aggregations

MetsHdr (org.mycore.mets.model.header.MetsHdr)1