Search in sources :

Example 11 with FileShareRestRep

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

Example 12 with FileShareRestRep

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

Example 13 with FileShareRestRep

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

Example 14 with FileShareRestRep

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

Example 15 with FileShareRestRep

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

Aggregations

FileShareRestRep (com.emc.storageos.model.file.FileShareRestRep)66 ViPRCoreClient (com.emc.vipr.client.ViPRCoreClient)27 URI (java.net.URI)15 Asset (com.emc.sa.asset.annotation.Asset)13 AssetDependencies (com.emc.sa.asset.annotation.AssetDependencies)13 AssetOption (com.emc.vipr.model.catalog.AssetOption)10 ArrayList (java.util.ArrayList)7 VirtualArrayRelatedResourceRep (com.emc.storageos.model.VirtualArrayRelatedResourceRep)6 FileProtectionRestRep (com.emc.storageos.model.file.FileShareRestRep.FileProtectionRestRep)5 FilePolicyRestRep (com.emc.storageos.model.file.policy.FilePolicyRestRep)5 Task (com.emc.vipr.client.Task)4 FlashException (controllers.util.FlashException)4 CreateFileSystem (com.emc.sa.service.vipr.file.tasks.CreateFileSystem)3 DeactivateFileSystem (com.emc.sa.service.vipr.file.tasks.DeactivateFileSystem)3 DeactivateFileSystemExportRule (com.emc.sa.service.vipr.file.tasks.DeactivateFileSystemExportRule)3 FileSystemDeleteParam (com.emc.storageos.model.file.FileSystemDeleteParam)3 VirtualArrayRestRep (com.emc.storageos.model.varray.VirtualArrayRestRep)3 FileVirtualPoolRestRep (com.emc.storageos.model.vpool.FileVirtualPoolRestRep)3 MachineTagsCollection (com.emc.sa.machinetags.MachineTagsCollection)2 DeactivateFileSystemShare (com.emc.sa.service.vipr.file.tasks.DeactivateFileSystemShare)2