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