Search in sources :

Example 1 with DeactivateFileSystemShare

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

Example 2 with DeactivateFileSystemShare

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

Aggregations

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