|
@@ 67-83 (lines=17) @@
|
| 64 |
|
* @param IdentityAccreditedAsRaForInstitutionEvent $event |
| 65 |
|
* @return void |
| 66 |
|
*/ |
| 67 |
|
public function applyIdentityAccreditedAsRaForInstitutionEvent(IdentityAccreditedAsRaForInstitutionEvent $event) |
| 68 |
|
{ |
| 69 |
|
$identity = $this->identityRepository->find((string) $event->identityId); |
| 70 |
|
|
| 71 |
|
$raListing = RaListing::create( |
| 72 |
|
(string) $event->identityId, |
| 73 |
|
$event->identityInstitution, |
| 74 |
|
$identity->commonName, |
| 75 |
|
$identity->email, |
| 76 |
|
AuthorityRole::fromRegistrationAuthorityRole($event->registrationAuthorityRole), |
| 77 |
|
$event->location, |
| 78 |
|
$event->contactInformation, |
| 79 |
|
$event->raInstitution |
| 80 |
|
); |
| 81 |
|
|
| 82 |
|
$this->raListingRepository->save($raListing); |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
/** |
| 86 |
|
* @param IdentityAccreditedAsRaaForInstitutionEvent $event |
|
@@ 89-105 (lines=17) @@
|
| 86 |
|
* @param IdentityAccreditedAsRaaForInstitutionEvent $event |
| 87 |
|
* @return void |
| 88 |
|
*/ |
| 89 |
|
public function applyIdentityAccreditedAsRaaForInstitutionEvent(IdentityAccreditedAsRaaForInstitutionEvent $event) |
| 90 |
|
{ |
| 91 |
|
$identity = $this->identityRepository->find((string) $event->identityId); |
| 92 |
|
|
| 93 |
|
$raListing = RaListing::create( |
| 94 |
|
(string) $event->identityId, |
| 95 |
|
$event->identityInstitution, |
| 96 |
|
$identity->commonName, |
| 97 |
|
$identity->email, |
| 98 |
|
AuthorityRole::fromRegistrationAuthorityRole($event->registrationAuthorityRole), |
| 99 |
|
$event->location, |
| 100 |
|
$event->contactInformation, |
| 101 |
|
$event->raInstitution |
| 102 |
|
); |
| 103 |
|
|
| 104 |
|
$this->raListingRepository->save($raListing); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
public function applyRegistrationAuthorityInformationAmendedForInstitutionEvent( |
| 108 |
|
RegistrationAuthorityInformationAmendedForInstitutionEvent $event |
|
@@ 163-179 (lines=17) @@
|
| 160 |
|
* @param IdentityAccreditedAsRaEvent $event |
| 161 |
|
* @return void |
| 162 |
|
*/ |
| 163 |
|
public function applyIdentityAccreditedAsRaEvent(IdentityAccreditedAsRaEvent $event) |
| 164 |
|
{ |
| 165 |
|
$identity = $this->identityRepository->find((string) $event->identityId); |
| 166 |
|
|
| 167 |
|
$raListing = RaListing::create( |
| 168 |
|
(string) $event->identityId, |
| 169 |
|
$event->identityInstitution, |
| 170 |
|
$identity->commonName, |
| 171 |
|
$identity->email, |
| 172 |
|
AuthorityRole::fromRegistrationAuthorityRole($event->registrationAuthorityRole), |
| 173 |
|
$event->location, |
| 174 |
|
$event->contactInformation, |
| 175 |
|
$event->identityInstitution |
| 176 |
|
); |
| 177 |
|
|
| 178 |
|
$this->raListingRepository->save($raListing); |
| 179 |
|
} |
| 180 |
|
|
| 181 |
|
/** |
| 182 |
|
* This method is kept to be backwards compatible for changes before FGA |
|
@@ 187-203 (lines=17) @@
|
| 184 |
|
* @param IdentityAccreditedAsRaaEvent $event |
| 185 |
|
* @return void |
| 186 |
|
*/ |
| 187 |
|
public function applyIdentityAccreditedAsRaaEvent(IdentityAccreditedAsRaaEvent $event) |
| 188 |
|
{ |
| 189 |
|
$identity = $this->identityRepository->find((string) $event->identityId); |
| 190 |
|
|
| 191 |
|
$raListing = RaListing::create( |
| 192 |
|
(string) $event->identityId, |
| 193 |
|
$event->identityInstitution, |
| 194 |
|
$identity->commonName, |
| 195 |
|
$identity->email, |
| 196 |
|
AuthorityRole::fromRegistrationAuthorityRole($event->registrationAuthorityRole), |
| 197 |
|
$event->location, |
| 198 |
|
$event->contactInformation, |
| 199 |
|
$event->identityInstitution |
| 200 |
|
); |
| 201 |
|
|
| 202 |
|
$this->raListingRepository->save($raListing); |
| 203 |
|
} |
| 204 |
|
|
| 205 |
|
/** |
| 206 |
|
* This method is kept to be backwards compatible for changes before FGA |