Search in sources :

Example 21 with FileOrchestrationController

use of com.emc.storageos.fileorchestrationcontroller.FileOrchestrationController in project coprhd-controller by CoprHD.

the class AbstractFileServiceApiImpl method deleteShare.

@Override
public void deleteShare(URI storage, URI uri, FileSMBShare fileSMBShare, String task) {
    FileOrchestrationController controller = getController(FileOrchestrationController.class, FileOrchestrationController.FILE_ORCHESTRATION_DEVICE);
    controller.deleteShare(storage, uri, fileSMBShare, task);
}
Also used : FileOrchestrationController(com.emc.storageos.fileorchestrationcontroller.FileOrchestrationController)

Example 22 with FileOrchestrationController

use of com.emc.storageos.fileorchestrationcontroller.FileOrchestrationController in project coprhd-controller by CoprHD.

the class AbstractFileServiceApiImpl method deleteSnapshot.

@Override
public void deleteSnapshot(URI storage, URI pool, URI uri, boolean forceDelete, String deleteType, String opId) {
    FileOrchestrationController controller = getController(FileOrchestrationController.class, FileOrchestrationController.FILE_ORCHESTRATION_DEVICE);
    controller.deleteSnapshot(storage, pool, uri, forceDelete, deleteType, opId);
}
Also used : FileOrchestrationController(com.emc.storageos.fileorchestrationcontroller.FileOrchestrationController)

Example 23 with FileOrchestrationController

use of com.emc.storageos.fileorchestrationcontroller.FileOrchestrationController in project coprhd-controller by CoprHD.

the class AbstractFileServiceApiImpl method share.

@Override
public void share(URI storageSystem, URI fileSystem, FileSMBShare smbShare, String taskId) throws InternalException {
    FileOrchestrationController controller = getController(FileOrchestrationController.class, FileOrchestrationController.FILE_ORCHESTRATION_DEVICE);
    controller.createCIFSShare(storageSystem, fileSystem, smbShare, taskId);
}
Also used : FileOrchestrationController(com.emc.storageos.fileorchestrationcontroller.FileOrchestrationController)

Example 24 with FileOrchestrationController

use of com.emc.storageos.fileorchestrationcontroller.FileOrchestrationController in project coprhd-controller by CoprHD.

the class AbstractFileServiceApiImpl method restoreFS.

@Override
public void restoreFS(URI storage, URI fs, URI snapshot, String opId) {
    FileOrchestrationController controller = getController(FileOrchestrationController.class, FileOrchestrationController.FILE_ORCHESTRATION_DEVICE);
    controller.restoreFS(storage, fs, snapshot, opId);
}
Also used : FileOrchestrationController(com.emc.storageos.fileorchestrationcontroller.FileOrchestrationController)

Example 25 with FileOrchestrationController

use of com.emc.storageos.fileorchestrationcontroller.FileOrchestrationController in project coprhd-controller by CoprHD.

the class AbstractFileServiceApiImpl method assignFileReplicationPolicyToProjects.

@Override
public void assignFileReplicationPolicyToProjects(List<FileStorageSystemAssociation> associations, URI vpoolURI, List<URI> projectURIs, URI filePolicyToAssign, String taskId) {
    FileOrchestrationController controller = getController(FileOrchestrationController.class, FileOrchestrationController.FILE_ORCHESTRATION_DEVICE);
    controller.assignFileReplicationPolicyToProjects(associations, vpoolURI, projectURIs, filePolicyToAssign, taskId);
}
Also used : FileOrchestrationController(com.emc.storageos.fileorchestrationcontroller.FileOrchestrationController)

Aggregations

FileOrchestrationController (com.emc.storageos.fileorchestrationcontroller.FileOrchestrationController)28 FileShare (com.emc.storageos.db.client.model.FileShare)9 FileDescriptor (com.emc.storageos.fileorchestrationcontroller.FileDescriptor)8 ArrayList (java.util.ArrayList)7 APIException (com.emc.storageos.svcs.errorhandling.resources.APIException)6 InternalException (com.emc.storageos.svcs.errorhandling.resources.InternalException)6 Operation (com.emc.storageos.db.client.model.Operation)4 TaskMapper.toTask (com.emc.storageos.api.mapper.TaskMapper.toTask)3 MapFileShare (com.emc.storageos.api.mapper.functions.MapFileShare)3 FilePolicy (com.emc.storageos.db.client.model.FilePolicy)3 SMBFileShare (com.emc.storageos.db.client.model.SMBFileShare)3 Task (com.emc.storageos.db.client.model.Task)3 CheckPermission (com.emc.storageos.security.authorization.CheckPermission)3 BadRequestException (com.emc.storageos.svcs.errorhandling.resources.BadRequestException)3 URI (java.net.URI)3 Path (javax.ws.rs.Path)3 Produces (javax.ws.rs.Produces)3 NamedURI (com.emc.storageos.db.client.model.NamedURI)2 StorageSystem (com.emc.storageos.db.client.model.StorageSystem)2 TenantOrg (com.emc.storageos.db.client.model.TenantOrg)2