use of com.emc.sa.service.vipr.file.tasks.CreateFileSystemShare 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;
}
Aggregations