use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method deactivateExport.
public static void deactivateExport(URI fileSystemId, String protocol, String type, String permissions, String rootUser) {
Task<FileShareRestRep> task = execute(new DeactivateFileSystemExport(fileSystemId, protocol, type, permissions, rootUser));
addAffectedResource(task);
}
use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method createFileSystemExportWithoutRollBack.
public static Task<FileShareRestRep> createFileSystemExportWithoutRollBack(URI fileSystemId, String comment, String security, String permissions, String rootUser, List<String> exportHosts, String subDirectory, boolean bypassDnsCheck) {
Task<FileShareRestRep> task = execute(new CreateFileSystemExport(fileSystemId, comment, NFS_PROTOCOL, security, permissions, rootUser, exportHosts, subDirectory, bypassDnsCheck));
addAffectedResource(task);
return task;
}
use of com.emc.storageos.model.file.FileShareRestRep 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);
}
use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method setFileSystemShareACL.
public static void setFileSystemShareACL(URI fileSystemId, String shareName, FileSystemACLs[] acls) {
Task<FileShareRestRep> task = execute(new SetFileSystemShareACL(fileSystemId, shareName, acls));
addAffectedResource(task);
logInfo("file.storage.share.filesystem.acl", fileSystemId, shareName, task.getOpId());
}
use of com.emc.storageos.model.file.FileShareRestRep in project coprhd-controller by CoprHD.
the class FileStorageUtils method createFileSystemWithoutRollBack.
public static URI createFileSystemWithoutRollBack(URI project, URI virtualArray, URI virtualPool, String label, double sizeInGb, int advisoryLimit, int softLimit, int gracePeriod) {
Task<FileShareRestRep> task = execute(new CreateFileSystem(label, sizeInGb, advisoryLimit, softLimit, gracePeriod, virtualPool, virtualArray, project));
addAffectedResource(task);
logInfo("file.storage.filesystem.task", task.getResourceId(), task.getOpId());
return task.getResourceId();
}
Aggregations