Cross Reference:
xref
: /
forgerock
/
openidm-v4
/
openidm-zip
/
src
/
main
/
resources
/
samples
/
sample7
/
script
/
setScimMeta.js
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
setScimMeta.js revision 759cbe36aeb56cbe1e788d90fbaa7f1a7e797f5d
/*global target */
var
meta
=
target
.
meta
,
currentDate
=
new
Date
(),
newMeta
= {};
if
(
typeof
meta
!==
'object'
) {
java
.
lang
.
System
.
out
.
println
(
"Need to create new object"
);
newMeta
.
lastModified
=
currentDate
.
toDateString
();
newMeta
.
created
=
currentDate
.
toDateString
();
}
else
{
newMeta
.
lastModified
=
currentDate
.
toDateString
();
}
target
.
meta
=
newMeta
;