Regex Ticket Element
Description
Specifies a ticket element in the Mapping Ticket Service. Strings retrieved from the values are transformed by matching and replacing them with a regular expression which can be configured.
May be used by
Properties
Transform Match Pattern (
transformMatchPattern) Description
A Java regular expression pattern for transforming the value.
Attributes
RegEx
Optional
Transform Replace Pattern (
transformReplacePattern) Description
A Java regular expression replace string using the standard dollar notation to reference match groups.
Attributes
String
Optional
Example
$1
Ticket Key (
ticketKey) Description
This property defines the key used to put the value in the ticket.
Note that for the special valueRef @all-context-data, the value of this property is ignored because the keys of the context data entries are used.
Attributes
String
Mandatory
Example
username
Example
roles
Example
lang
Example
authentication-method
Value Reference (
valueRef) Description
This property specifies the context data key to use as value.
Some keys have special meanings to add the username, the roles or all additional values.
Some keys have special meanings to add the username, the roles or all additional values.
Attributes
String
Mandatory
Example
@username
Example
@roles
Example
@all-additional-values
Example
givenname
Example
surname
Example
country
Example
email
Example
company
Example
language
Example
authMethod
Mandatory (
mandatory) Description
Enforces that the value of the corresponding key is set and has only non-empty values. Depending on the valueRef this enforces after the transformation:
- @username: only non empty usernames are allowed
- @roles: at least one role must is assigned
- context data key: the corresponding context data must exist and all values of the key must be non-empty
- @all-context-data: the values of all context data must be non-empty
- @all-additional-values: all additional data must have at least one value and all values must be non-empty
- additional value key : the selected additional data must exist, have at least one value and all values must be non-empty
Attributes
Boolean
Optional
Default value
false
YAML Template (with default values)
type: RegexTicketElement
id: RegexTicketElement-xxxxxx
displayName:
comment:
properties:
mandatory: false
ticketKey:
transformMatchPattern:
transformReplacePattern:
valueRef: