Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit ae54352

Browse files
committed
Removed deprecated getFacilitiesByEntityId
1 parent 411020d commit ae54352

File tree

4 files changed

+3
-34
lines changed

4 files changed

+3
-34
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
55
#### Changed
66
- Releasing forwardedEduPersonEntitlement is now optional (forwardedEduPersonEntitlement are released by default)
77

8+
#### Removed
9+
- Removed deprecated getFacilitiesByEntityId method
10+
811
## [v3.7.4]
912
#### Added
1013
- Added logging response time for each request into RPC/LDAP

lib/Adapter.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,6 @@ abstract public function getVoAttributes($vo, $attrNames);
118118
*/
119119
abstract public function getFacilityAttribute($facility, $attrName);
120120

121-
/**
122-
* @deprecated getFacilityByEntityId($spEntityId) should be used instead
123-
* @param string $spEntityId
124-
* @return Facility entities[]
125-
*/
126-
abstract public function getFacilitiesByEntityId($spEntityId);
127-
128121
/**
129122
* @param string $spEntityId
130123
* @return Facility facility

lib/AdapterLdap.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,6 @@ public function getUserAttributes($user, $attrNames)
228228
return $attributes;
229229
}
230230

231-
public function getFacilitiesByEntityId($spEntityId)
232-
{
233-
throw new BadMethodCallException('NotImplementedException');
234-
// TODO: Implement getFacilitiesByEntityId() method.
235-
}
236-
237231
public function getFacilityByEntityId($spEntityId)
238232
{
239233
$ldapResult = $this->connector->searchForEntity(

lib/AdapterRpc.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -336,27 +336,6 @@ public function getUsersGroupsOnFacility($spEntityId, $userId)
336336
return $groups;
337337
}
338338

339-
public function getFacilitiesByEntityId($spEntityId)
340-
{
341-
$perunAttrs = $this->connector->get('facilitiesManager', 'getFacilitiesByAttribute', [
342-
'attributeName' => 'urn:perun:facility:attribute-def:def:entityID',
343-
'attributeValue' => $spEntityId,
344-
]);
345-
$facilities = [];
346-
foreach ($perunAttrs as $perunAttr) {
347-
array_push(
348-
$facilities,
349-
new Facility(
350-
$perunAttr['id'],
351-
$perunAttr['name'],
352-
$perunAttr['description'],
353-
$spEntityId
354-
)
355-
);
356-
}
357-
return $facilities;
358-
}
359-
360339
public function getFacilityByEntityId($spEntityId)
361340
{
362341
$perunAttr = $this->connector->get('facilitiesManager', 'getFacilitiesByAttribute', [

0 commit comments

Comments
 (0)