conflictingLinksResolutionPolicy property
Resolution policy to apply when the linking of a persona to a player would result in violating the specified cardinality constraint.
Required. Possible string values are:
- "KEEP_EXISTING_LINKS" : If link(s) between a player and persona already
exists which would result in violating the specified
RecallTokensCardinalityConstraint
if the new link was created, keep the already existing link(s). For example, if Persona1-Player1 is already linked in the scope of application1 and a new link Persona1-Player2 is attempted to be created in the scope of application1, then the old link will remain and no new link will be added. Note that if the already existing links do violate the specified policy (which could occur if not allLinkPersona
calls use the sameRecallTokensCardinalityConstraint
) this policy will leave these violations unresolved; in order to resolve conflicts, the {@linkCREATE_NEW_LINK
policy needs to be used to rewrite links resolving conflicts. - "CREATE_NEW_LINK" : If an existing link between a player and persona
already exists which would result in violating the specified
RecallTokensCardinalityConstraint
if the new link was created, replace the already existing link(s) with the new link. For example, if Persona1-Player1 is already linked in the scope of application1 and a new link Persona1-Player2 is attempted to be created in the scope of application1, then the old link will be removed and the new link will be added to replace it.
Implementation
core.String? conflictingLinksResolutionPolicy;