SyncDelegate.js revision e26e5073e1266868172d72453c97f413fe2fb603
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2014-2015 ForgeRock AS. All rights reserved.
*
* 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
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*/
/*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;
});