@@ -101,12 +101,13 @@ abstract public function getMemberGroups($user, $vo);
101101 abstract public function getGroupsWhereMemberIsActive ($ user , $ vo );
102102
103103 /**
104- * @param string $spEntityId entity id of the sp
104+ * @param string $spEntityId entity id of the sp
105+ * @param string $entityIdAttr entity id attribute
105106 *
106107 * @return Group[] from vo which are assigned to all facilities with spEntityId.
107108 * registering to those groups should should allow access to the service
108109 */
109- abstract public function getSpGroups (string $ spEntityId ): array ;
110+ abstract public function getSpGroups (string $ spEntityId, string $ entityIdAttr ): array ;
110111
111112 /**
112113 * @param Facility $facility representing the SP
@@ -165,7 +166,7 @@ abstract public function getFacilityAttribute($facility, $attrName);
165166
166167 /**
167168 * @param string $spEntityId Value of the entityID identifier
168- * @param mixed $entityIdAttr
169+ * @param string $entityIdAttr entity id attribute
169170 *
170171 * @return Facility facility
171172 */
@@ -181,12 +182,13 @@ abstract public function getFacilityByEntityId($spEntityId, $entityIdAttr);
181182 abstract public function getFacilityByClientId ($ clientId , $ clientIdAttr );
182183
183184 /**
184- * @param string $spEntityId entity id of the sp
185+ * @param string $spEntityId entity id of the sp
185186 * @param int $userId
187+ * @param string $entityIdAttr entity id attribute
186188 *
187189 * @return Group[] from vo which are assigned to all facilities with spEntityId for this userId
188190 */
189- abstract public function getUsersGroupsOnFacility ($ spEntityId , $ userId );
191+ abstract public function getUsersGroupsOnFacility ($ spEntityId , $ userId, $ entityIdAttr );
190192
191193 /**
192194 * @param Facility $facility entity id of the sp
@@ -263,19 +265,21 @@ abstract public function getMemberStatusByUserAndVo($user, $vo);
263265 abstract public function isUserInVo ($ user , $ voShortName );
264266
265267 /**
266- * @param int $entityId entityId
267- * @param array $userGroups of groups where user belongs to
268+ * @param int $entityId entityId
269+ * @param array $userGroups of groups where user belongs to
270+ * @param string $entityIdAttr entity id attribute
268271 *
269272 * @return array of resource capabilities
270273 */
271- abstract public function getResourceCapabilities ($ entityId , $ userGroups );
274+ abstract public function getResourceCapabilities ($ entityId , $ userGroups, $ entityIdAttr );
272275
273276 /**
274- * @param int $entityId entityId
277+ * @param int $entityId entityId
278+ * @param string $entityIdAttr entity id attribute
275279 *
276280 * @return array of facility capabilities
277281 */
278- abstract public function getFacilityCapabilities ($ entityId );
282+ abstract public function getFacilityCapabilities ($ entityId, $ entityIdAttr );
279283
280284 /**
281285 * @param HasId[] $entities
0 commit comments