Search in sources :

Example 1 with ACLAssignments

use of com.emc.storageos.model.auth.ACLAssignments in project coprhd-controller by CoprHD.

the class ProjectService method getRoleAssignmentsResponse.

private ACLAssignments getRoleAssignmentsResponse(URI id) {
    Project project = getProjectById(id, false);
    ACLAssignments response = new ACLAssignments();
    response.setAssignments(_permissionsHelper.convertToACLEntries(project.getAcls()));
    return response;
}
Also used : MapProject(com.emc.storageos.api.mapper.functions.MapProject) Project(com.emc.storageos.db.client.model.Project) ACLAssignments(com.emc.storageos.model.auth.ACLAssignments)

Example 2 with ACLAssignments

use of com.emc.storageos.model.auth.ACLAssignments in project coprhd-controller by CoprHD.

the class ComputeVirtualPoolService method getAclsOnVirtualPool.

private ACLAssignments getAclsOnVirtualPool(URI id) {
    ComputeVirtualPool vpool = (ComputeVirtualPool) queryResource(id);
    ArgValidator.checkEntityNotNull(vpool, id, isIdEmbeddedInURL(id));
    ACLAssignments response = new ACLAssignments();
    response.setAssignments(_permissionsHelper.convertToACLEntries(vpool.getAcls()));
    return response;
}
Also used : ACLAssignments(com.emc.storageos.model.auth.ACLAssignments) ComputeVirtualPool(com.emc.storageos.db.client.model.ComputeVirtualPool) ComputeVirtualPoolMapper.toComputeVirtualPool(com.emc.storageos.api.mapper.ComputeVirtualPoolMapper.toComputeVirtualPool)

Example 3 with ACLAssignments

use of com.emc.storageos.model.auth.ACLAssignments in project coprhd-controller by CoprHD.

the class VirtualPoolService method getAclsOnVirtualPool.

protected ACLAssignments getAclsOnVirtualPool(VirtualPool.Type type, URI id) {
    VirtualPool vpool = queryResource(id);
    ArgValidator.checkEntityNotNull(vpool, id, isIdEmbeddedInURL(id));
    if (!vpool.getType().equals(type.name())) {
        throw APIException.badRequests.providedVirtualPoolNotCorrectType();
    }
    ACLAssignments response = new ACLAssignments();
    response.setAssignments(_permissionsHelper.convertToACLEntries(vpool.getAcls()));
    return response;
}
Also used : ACLAssignments(com.emc.storageos.model.auth.ACLAssignments) VirtualPool(com.emc.storageos.db.client.model.VirtualPool)

Example 4 with ACLAssignments

use of com.emc.storageos.model.auth.ACLAssignments in project coprhd-controller by CoprHD.

the class CatalogCategoryService method getRoleAssignmentsResponse.

private ACLAssignments getRoleAssignmentsResponse(URI id) {
    CatalogCategory catalogCategory = catalogCategoryManager.getCatalogCategoryById(id);
    ACLAssignments response = new ACLAssignments();
    response.setAssignments(_permissionsHelper.convertToACLEntries(catalogCategory.getAcls()));
    return response;
}
Also used : CatalogCategoryMapper.createNewCatalogCategory(com.emc.sa.api.mapper.CatalogCategoryMapper.createNewCatalogCategory) CatalogCategory(com.emc.storageos.db.client.model.uimodels.CatalogCategory) ACLAssignments(com.emc.storageos.model.auth.ACLAssignments)

Example 5 with ACLAssignments

use of com.emc.storageos.model.auth.ACLAssignments in project coprhd-controller by CoprHD.

the class CatalogServiceService method getRoleAssignmentsResponse.

private ACLAssignments getRoleAssignmentsResponse(URI id) {
    CatalogService catalogService = catalogServiceManager.getCatalogServiceById(id);
    ACLAssignments response = new ACLAssignments();
    response.setAssignments(_permissionsHelper.convertToACLEntries(catalogService.getAcls()));
    return response;
}
Also used : CatalogService(com.emc.storageos.db.client.model.uimodels.CatalogService) ACLAssignments(com.emc.storageos.model.auth.ACLAssignments)

Aggregations

ACLAssignments (com.emc.storageos.model.auth.ACLAssignments)10 ACLAssignmentChanges (com.emc.storageos.model.auth.ACLAssignmentChanges)2 ACLEntry (com.emc.storageos.model.auth.ACLEntry)2 VirtualArrayList (com.emc.storageos.model.varray.VirtualArrayList)2 ClientResponse (com.sun.jersey.api.client.ClientResponse)2 ArrayList (java.util.ArrayList)2 CatalogCategoryMapper.createNewCatalogCategory (com.emc.sa.api.mapper.CatalogCategoryMapper.createNewCatalogCategory)1 ComputeVirtualPoolMapper.toComputeVirtualPool (com.emc.storageos.api.mapper.ComputeVirtualPoolMapper.toComputeVirtualPool)1 MapFilePolicy (com.emc.storageos.api.mapper.functions.MapFilePolicy)1 MapProject (com.emc.storageos.api.mapper.functions.MapProject)1 MapVcenter (com.emc.storageos.api.mapper.functions.MapVcenter)1 MapVirtualArray (com.emc.storageos.api.mapper.functions.MapVirtualArray)1 ComputeVirtualPool (com.emc.storageos.db.client.model.ComputeVirtualPool)1 FilePolicy (com.emc.storageos.db.client.model.FilePolicy)1 Project (com.emc.storageos.db.client.model.Project)1 StringSet (com.emc.storageos.db.client.model.StringSet)1 VirtualArray (com.emc.storageos.db.client.model.VirtualArray)1 VirtualPool (com.emc.storageos.db.client.model.VirtualPool)1 CatalogCategory (com.emc.storageos.db.client.model.uimodels.CatalogCategory)1 CatalogService (com.emc.storageos.db.client.model.uimodels.CatalogService)1