refChannelPattern

open fun refChannelPattern(pattern: String, projection: String): String

Builds the PAM channel regex matching the ref-channels of every DataSync resource whose id matches pattern, as seen through projection. See subscribePattern.

pattern must be a valid regex on its own. Otherwise the wrapper could be closed early: a)|.* would become ^(?:a)|.*, whose unanchored .* branch matches every channel, projection mirrors included.

Throws

if pattern is blank, only ^ or not a valid regex (a java.util.regex.PatternSyntaxException), or if projection is blank.