use of com.emc.storageos.model.file.FileSnapshotRestRep in project coprhd-controller by CoprHD.
the class FileMapper method map.
public static FileSnapshotRestRep map(Snapshot from) {
if (from == null) {
return null;
}
FileSnapshotRestRep to = new FileSnapshotRestRep();
mapFileObjectFields(from, to);
to.setNativeId(from.getNativeId());
to.setTimestamp(from.getTimestamp());
to.setParent(toRelatedResource(ResourceTypeEnum.FILE, from.getParent().getURI()));
return to;
}
Aggregations