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