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