Search in sources :

Example 1 with DeactivateFileSystemExportRule

use of com.emc.sa.service.vipr.file.tasks.DeactivateFileSystemExportRule in project coprhd-controller by CoprHD.

the class FileStorageUtils method deactivateFileSystemExport.

public static URI deactivateFileSystemExport(URI fileSystemId, Boolean allDir, String subDir, Boolean unmountExport) {
    Task<FileShareRestRep> task = execute(new DeactivateFileSystemExportRule(fileSystemId, allDir, subDir, unmountExport));
    addAffectedResource(task);
    return task.getResourceId();
}
Also used : FileShareRestRep(com.emc.storageos.model.file.FileShareRestRep) DeactivateFileSystemExportRule(com.emc.sa.service.vipr.file.tasks.DeactivateFileSystemExportRule)

Example 2 with DeactivateFileSystemExportRule

use of com.emc.sa.service.vipr.file.tasks.DeactivateFileSystemExportRule in project coprhd-controller by CoprHD.

the class FileStorageUtils method createFileSystemExport.

public static String createFileSystemExport(URI fileSystemId, String comment, String security, String permissions, String rootUser, List<String> exportHosts, String subDirectory, boolean bypassDnsCheck) {
    Task<FileShareRestRep> task = createFileSystemExportWithoutRollBack(fileSystemId, comment, security, permissions, rootUser, exportHosts, subDirectory, bypassDnsCheck);
    addRollback(new DeactivateFileSystemExportRule(fileSystemId, false, subDirectory, false));
    String exportId = task.getResourceId().toString();
    logInfo("file.storage.export.task", exportId, task.getOpId());
    return exportId;
}
Also used : FileShareRestRep(com.emc.storageos.model.file.FileShareRestRep) DeactivateFileSystemExportRule(com.emc.sa.service.vipr.file.tasks.DeactivateFileSystemExportRule)

Aggregations

DeactivateFileSystemExportRule (com.emc.sa.service.vipr.file.tasks.DeactivateFileSystemExportRule)2 FileShareRestRep (com.emc.storageos.model.file.FileShareRestRep)2