Search in sources :

Example 1 with MCRObjectIDFileSystemDate

use of org.mycore.datamodel.ifs2.MCRObjectIDFileSystemDate in project mycore by MyCoRe-Org.

the class MCRXMLMetadataManager method retrieveObjectDates.

/**
 * returns an enhanced list of object ids and their last modified date
 * @param ids MCRObject ids
 * @throws IOException thrown by {@link MCRObjectIDFileSystemDate}
 */
public List<MCRObjectIDDate> retrieveObjectDates(List<String> ids) throws IOException {
    List<MCRObjectIDDate> objidlist = new ArrayList<>(ids.size());
    for (String id : ids) {
        MCRStoredMetadata sm = this.retrieveStoredMetadata(MCRObjectID.getInstance(id));
        objidlist.add(new MCRObjectIDFileSystemDate(sm, id));
    }
    return objidlist;
}
Also used : MCRObjectIDFileSystemDate(org.mycore.datamodel.ifs2.MCRObjectIDFileSystemDate) MCRStoredMetadata(org.mycore.datamodel.ifs2.MCRStoredMetadata) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 MCRObjectIDFileSystemDate (org.mycore.datamodel.ifs2.MCRObjectIDFileSystemDate)1 MCRStoredMetadata (org.mycore.datamodel.ifs2.MCRStoredMetadata)1