SyncDelegate.js revision 90929d4c6b284dd318f4a78c2aa407afb7423747
/**
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2014-2015 ForgeRock AS.
*/
/*global define */
/*jslint evil: true */
"jquery",
"underscore",
var params = {
_action: "performAction",
};
if (sourceId) {
} else {
}
if(linkType) {
}
if (targetId) {
}
}
return obj.serviceCall({
type: "POST"
});
};
throw "Unexpected value passed to deleteLinks: " + ordinal;
}
if (!id) {
} else {
return obj.serviceCall({
"url": "?_queryId=links-for-" + ordinal + "&linkType=" + linkType + "&" + ordinal + "=" + encodeURIComponent(id)
var i, deletePromises = [];
"type": "DELETE",
"headers": {
}
}));
}
});
}
};
var result = "",
object = {};
try {
result = (eval(p.condition.source) || p.condition.source.length === 0) ? "UPDATE": "DO NOT UPDATE"; // references to "object" variable expected within this string
} catch (e) {
result = "ERROR WITH SCRIPT";
}
}
return result;
};
var sampleData = null,
source = {};
} else {
}
try {
sampleData = eval(p.transform.source); // references to "source" variable expected within this string
} catch (e) {
sampleData = "ERROR WITH SCRIPT";
}
}
sampleData = p["default"];
}
}
return [p.target, sampleData];
};
.map(function (p) {
})
.object()
.value();
};
url = "",
doServiceCall = function(){
return obj.serviceCall({
"type": "GET",
"serviceUrl": serviceUrl,
"url": url,
"errorsHandlers": {
"missing": {
status: 404
}
}
}).done(function (mappingDetails) {
});
};
if(mapping){
}
"context" : "endpoint/mappingDetails",
"type" : "text/javascript",
"file" : "ui/mappingDetails.js"
}).then(function(){
});
}
});
return promise;
};
return obj;
});