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;
}
Aggregations