This method of the PermissionUtils Class combines two WildcardExpression objects. The resulting expression will first match any strings that are matched by the first expressions, followed by the strings matched by the second expression. The combined expression is independent of the original expressions; changes to the combined expression will not affect the originals and vice versa.
public static WildcardExpression combinePatterns(WildcardExpression spec1, WildcardExpression spec2);
Returns a new expression, matching any strings matched by spec1 or spec2, in that order.
spec1 | The first source expression to combine, or null. |
spec2 | The second source expression to combine, or null. |