use of com.emc.sa.service.vipr.file.tasks.DeactivateFileSystemShare in project coprhd-controller by CoprHD.
the class FileStorageUtils method createCifsShare.
public static String createCifsShare(URI fileSystemId, String shareName, String shareComment, String subDirectory) {
Task<FileShareRestRep> task = execute(new CreateFileSystemShare(shareName, shareComment, fileSystemId, subDirectory));
addAffectedResource(task);
String shareId = task.getResourceId().toString();
addRollback(new DeactivateFileSystemShare(fileSystemId, shareId));
logInfo("file.storage.share.task", shareId, task.getOpId());
return shareId;
}
use of com.emc.sa.service.vipr.file.tasks.DeactivateFileSystemShare in project coprhd-controller by CoprHD.
the class FileStorageUtils method deactivateCifsShare.
public static void deactivateCifsShare(URI fileSystemId, String shareName) {
Task<FileShareRestRep> task = execute(new DeactivateFileSystemShare(fileSystemId, shareName));
addAffectedResource(task);
}
Aggregations