Search in sources :

Example 1 with CreateFileSystemShare

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;
}
Also used : CreateFileSystemShare(com.emc.sa.service.vipr.file.tasks.CreateFileSystemShare) DeactivateFileSystemShare(com.emc.sa.service.vipr.file.tasks.DeactivateFileSystemShare) FileShareRestRep(com.emc.storageos.model.file.FileShareRestRep)

Aggregations

CreateFileSystemShare (com.emc.sa.service.vipr.file.tasks.CreateFileSystemShare)1 DeactivateFileSystemShare (com.emc.sa.service.vipr.file.tasks.DeactivateFileSystemShare)1 FileShareRestRep (com.emc.storageos.model.file.FileShareRestRep)1