mapIn.put("fromDate", UtilDateTime.nowTimestamp());
mapIn.put("createdDate", UtilDateTime.nowTimestamp());
mapIn.put("lastModifiedDate", UtilDateTime.nowTimestamp());
mapIn.put("createdByUserLogin", userLogin.get("userLoginId"));
mapIn.put("lastModifiedByUserLogin", userLogin.get("userLoginId"));
delegator.create("ContentAssoc", mapIn);
}
} else {
// Only deactive if currently published
if (isPublished) {
Map thisResults = dispatcher.runSync("deactivateAssocs", mapIn);