@Override public boolean isAccessible(E resrep) { boolean ret = false; URI id = resrep.getId(); Vcenter obj = _permissionsHelper.getObjectById(id, Vcenter.class); if (obj == null) { return false; } if (obj.getTenant().toString().equals(_user.getTenantId()) || isSystemAdmin() || isSecurityAdmin()) { return true; } ret = isTenantAccessible(obj.getTenant()); return ret; }
@Override protected URI getTenantOwner(URI id) { Vcenter vcenter = queryObject(Vcenter.class, id, false); return vcenter.getTenant(); }