Search in sources :

Example 21 with FileSnapshotRestRep

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;
}
Also used : FileSnapshotRestRep(com.emc.storageos.model.file.FileSnapshotRestRep)

Aggregations

FileSnapshotRestRep (com.emc.storageos.model.file.FileSnapshotRestRep)21 ViPRCoreClient (com.emc.vipr.client.ViPRCoreClient)8 DeactivateFileSnapshotExportRule (com.emc.sa.service.vipr.file.tasks.DeactivateFileSnapshotExportRule)3 Task (com.emc.vipr.client.Task)3 FlashException (controllers.util.FlashException)3 CreateFileSnapshot (com.emc.sa.service.vipr.file.tasks.CreateFileSnapshot)2 ExportRule (com.emc.storageos.model.file.ExportRule)2 ExportRules (com.emc.storageos.model.file.ExportRules)2 FileShareRestRep (com.emc.storageos.model.file.FileShareRestRep)2 SnapshotExportUpdateParams (com.emc.storageos.model.file.SnapshotExportUpdateParams)2 URI (java.net.URI)2 ArrayList (java.util.ArrayList)2 CreateFileSnapshotExport (com.emc.sa.service.vipr.file.tasks.CreateFileSnapshotExport)1 CreateFileSnapshotShare (com.emc.sa.service.vipr.file.tasks.CreateFileSnapshotShare)1 DeactivateFileSnapshot (com.emc.sa.service.vipr.file.tasks.DeactivateFileSnapshot)1 DeactivateFileSnapshotExport (com.emc.sa.service.vipr.file.tasks.DeactivateFileSnapshotExport)1 DeactivateFileSnapshotShare (com.emc.sa.service.vipr.file.tasks.DeactivateFileSnapshotShare)1 DeactivateFileSystemExportRule (com.emc.sa.service.vipr.file.tasks.DeactivateFileSystemExportRule)1 FindFileSnapshotExportRules (com.emc.sa.service.vipr.file.tasks.FindFileSnapshotExportRules)1 FindFileSystemExportRules (com.emc.sa.service.vipr.file.tasks.FindFileSystemExportRules)1