Cross Reference:
xref
: /
forgerock
/
openidm-v4
/
openidm-zip
/
src
/
main
/
resources
/
samples
/
sample7
/
script
/
setScimDisplayName.js
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
setScimDisplayName.js revision 759cbe36aeb56cbe1e788d90fbaa7f1a7e797f5d
/*global source */
(
function
() {
var
GN
=
source
.
firstName
,
FN
=
source
.
lastName
,
UID
=
source
.
name
,
displayName
=
""
;
if
(
GN
!==
null
) {
displayName
=
GN
+
" "
; }
if
(
FN
!==
null
) {
displayName
=
displayName
+
FN
; }
if
(
GN
===
null
&&
FN
===
null
) {
displayName
=
UID
; }
displayName
.
replace
(/(^\s*)|(\s*$)/g,
""
);
return
displayName
;
}());