Expands to a version of the expansion of the concatenation of the enclosed tokens where the first matching instance of the regular expression specified by regex is replaced by the string specified by replace-with.
See http://java.sun.com/j2se/1.4/docs/api/java/util/regex/Pattern.html and http://java.sun.com/j2se/1.4/docs/api/java/util/regex/Matcher.html#replaceAll(java.lang.String)
The pattern options CASE_INSENSITIVE, DOTALL, and UNICODE_CASE are used but can be reversed using the appropriate embedded escapes.
<!-- change Full Name for "Surname, Given-Names" to "Given-Names Surname" --> <token-replace-first regex="^(.*), (.*)$" replace-with="$2 $1"> <token-attr name="Full Name"/> </token-replace-first>
Element |
Description |
---|---|
The values of an entitlement granted in the current operation. |
|
The association value from the current operation. |
|
The values of an attribute in the current operation or current object in the source data store. |
|
Decodes base64 data into a string. |
|
Encodes a string into base64 data. |
|
A Unicode character. |
|
The object class name from the current operation |
|
Converts a date/time from one format to another. |
|
The values of an attribute of current object in the destination data store. |
|
A value derived from the destination DN from the current operation. |
|
The unqualified RDN derived from the destination DN from the current operation. |
|
Reads an XML document. |
|
The values of a granted entitlement of the current object. |
|
Converts a string for use in a destination DN. |
|
Converts a string for use in a source DN. |
|
Generates a random password. |
|
The value of a global variable. |
|
Joins a node-set into a string. |
|
The value of a local variable. |
|
Converts a string to lowercase. |
|
Maps a string through a mapping table. |
|
The value of the named password. |
|
The values of an attribute in the current operation. |
|
The value of an operation property. |
|
The name of the current operation. |
|
Parses or converts a DN. |
|
The value of the password in the current operation. |
|
Queries the source or destination data store. |
|
The values of an attribute removed in the current operation. |
|
The values of an entitlement revoked in the current operation. |
|
Replaces all instances of a substring within a string. |
|
Replaces a single instance of a substring within a string. |
|
Resolves a DN to an association key or an association key to a DN. |
|
Splits a string into a node set. |
|
The values of an attribute of the current object in the source data store. |
|
A value derived from the source DN from the current operation. |
|
The unqualified RDN derived from source DN from the current operation. |
|
Substring of a string. |
|
Constant text. |
|
The current date/time. |
|
Generates a unique name. |
|
A DN relative to the one matched by if-src-dn. |
|
Converts a string to uppercase. |
|
Parses XML. |
|
Serializes XML. |
|
The result of an XPath expression. |
Attribute |
Possible Values |
Default Value |
---|---|---|
notrace |
true | false True if this element should not be traced during execution of the policy. |
false |
regex |
CDATA Regular expression that matches the substring to replace. |
#REQUIRED |
replace-with |
CDATA Regular expression that specifies the replacement string. |
#REQUIRED |
( token-added-entitlement | token-association | token-attr | token-base64-decode | token-base64-encode | token-char | token-class-name | token-convert-time | token-dest-attr | token-dest-dn | token-dest-name | token-document | token-entitlement | token-escape-for-dest-dn | token-escape-for-src-dn | token-generate-password | token-global-variable | token-join | token-local-variable | token-lower-case | token-named-password | token-map | token-op-attr | token-op-property | token-operation | token-parse-dn | token-password | token-removed-attr | token-removed-entitlement | token-replace-all | token-replace-first | token-resolve | token-src-attr | token-src-dn | token-src-name | token-substring | token-text | token-time | token-unique-name | token-unmatched-src-dn | token-upper-case | token-xml-parse | token-xml-serialize | token-xpath ) +
Element |
Description |
---|---|
Association argument. |
|
Component argument. |
|
DN argument. |
|
Node set argument. |
|
Password argument. |
|
String argument. |
|
Value argument. |
|
Decode base64 data into a string. |
|
Encode a string into base64 data. |
|
Convert a data/time from one format to another format. |
|
Convert a string for use in the destination DN. |
|
Convert a string for use in a source DN. |
|
Join a node set into a string. |
|
Convert a string to lowercase. |
|
Map a string through a mapping table. |
|
Parses or converts a DN. |
|
Replaces all instances of a substring with a string. |
|
Replaces a single instance of a substring within a string. |
|
Splits a string into a node set. |
|
Substring of a string. |
|
Converts a string to uppercase. |
|
Parses XML. |
|
Serializes XML. |