Annotation Interface IsAuthorizedGeographicAddressResourceOwnerOrAdmin
@Target(METHOD)
@Retention(RUNTIME)
@PreAuthorize("(hasRole(\'TRUSTED_CLIENT\') AND @userValidator.userMatchRelatedParty(authentication, #relatedPartyId)) OR @userValidator.principalMatchRelatedPartyOrUserIsProvided(authentication, #relatedPartyId)")
public @interface IsAuthorizedGeographicAddressResourceOwnerOrAdmin
Annotation for securing Geographic Address REST endpoints.
Only users that have role TRUSTED_CLIENT or users that own the resource can retrieve data from these endpoints.
Only users that have role TRUSTED_CLIENT or users that own the resource can retrieve data from these endpoints.
- Since:
- 2302