policyInit.js revision 840ef3491e7195592c40c520f4fd748ef00e27ed
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross/**
e9458b1a7a19a63aa4c179f9ab20f4d50681c168Jens Elkner * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross *
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross * Copyright (c) 2014 ForgeRock AS. All Rights Reserved
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu *
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross * The contents of this file are subject to the terms
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross * of the Common Development and Distribution License
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross * (the License). You may not use this file except in
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross * compliance with the License.
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross *
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross * You can obtain a copy of the License at
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross * http://forgerock.org/license/CDDLv1.0.html
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross * See the License for the specific language governing
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross * permission and limitations under the License.
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder *
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross * When distributing Covered Code, include this CDDL
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder * Header Notice in each file and include the License file
54ea981a0503c396c2923a1c06421c6235baf27fChristian Maeder * at http://forgerock.org/license/CDDLv1.0.html
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder * If applicable, add the following below the CDDL Header,
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder * with the fields enclosed by brackets [] replaced by
0d1890b1abcf0679acda01bd4231ee3324cff86aChristian Maeder * your own identifying information:
6f449482b2ca9189ac5fe5d3b2e1cb8de6e10cbcMarkus Gross * "Portions Copyrighted [year] [name of copyright owner]"
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder */
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder
6f449482b2ca9189ac5fe5d3b2e1cb8de6e10cbcMarkus Gross/*global require, define*/
6f449482b2ca9189ac5fe5d3b2e1cb8de6e10cbcMarkus Grossdefine([
c208973c890b8f993297720fd0247bc7481d4304Christian Maeder "text!templates/policy/ActionsTemplate.html",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "text!templates/policy/AddNewResourceTemplate.html",
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder "text!templates/policy/BaseTemplate.html",
55c5e901b5c3466300009135585bc70bd576dcb6Christian Maeder "text!templates/policy/EditApplicationTemplate.html",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "text!templates/policy/EditEnvironmentTemplate.html",
addeb8164414bdefad8f4c5b4c5bdb8a45231253Markus Gross "text!templates/policy/EditPolicyTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "text!templates/policy/EditSubjectTemplate.html",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "text!templates/policy/ManageApplicationsTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "text!templates/policy/ManageRulesTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "text!templates/policy/ManagePoliciesTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "text!templates/policy/OperatorRulesTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "text!templates/policy/ResourcesListTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "text!templates/policy/ReviewApplicationStepTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "text!templates/policy/ReviewPolicyStepTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "text!configuration.json"
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross], function () {
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross /* an unfortunate need to duplicate the file names here, but I haven't
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross yet found a way to fool requirejs into doing dynamic dependencies */
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross var staticFiles = [
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/ActionsTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/AddNewResourceTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/BaseTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/EditApplicationTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/EditEnvironmentTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/EditPolicyTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/EditSubjectTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/ManageApplicationsTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/ManageRulesTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/ManagePoliciesTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/OperatorRulesTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/ResourcesListTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/ReviewApplicationStepTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "templates/policy/ReviewPolicyStepTemplate.html",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "configuration.json"
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross ],
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross deps = arguments;
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross return function (server) {
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross _.each(staticFiles, function (file, i) {
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross server.respondWith(
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "GET",
e49fd57c63845c7806860a9736ad09f6d44dbaedChristian Maeder new RegExp(file.replace(/([\/\.\-])/g, "\\$1") + "$"),
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross [
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross 200,
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder { },
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder deps[i]
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder ]
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder );
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder });
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder server.respondWith(
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "GET",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "/openam/json/applications?_queryFilter=true&_pageSize=10&_sortKeys=name&_pagedResultsOffset=0",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder [
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross 200,
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross {
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross "Date": "Wed, 27 Aug 2014 10:31:54 GMT",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "Cache-Control": "no-cache",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "Server": "Apache-Coyote/1.1",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "Content-Length": "5433",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Content-Type": "application/json;charset=UTF-8"
0d1890b1abcf0679acda01bd4231ee3324cff86aChristian Maeder },
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "{\"result\":[{\"name\":\"aqqaaqaq\",\"resources\":[],\"actions\":{\"TRANSFER\":true},\"description\":null,\"creationDate\":1404293533315,\"lastModifiedDate\":1404298029098,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"AnyUser\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"AttributeLookup\"],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"banking\"},{\"name\":\"calendar\",\"resources\":[\"http://calendar.sun.com/my/*\",\"http://calendar.sun.com/*\",\"http://calendar.sun.com/*/calendars?calId=*\",\"http://calendar.sun.com/admin\"],\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"description\":null,\"creationDate\":1403298037961,\"lastModifiedDate\":1403298037961,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"User\",\"NOT\",\"Role\",\"Group\",\"OR\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"Time\",\"NOT\",\"AND\",\"OR\"],\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"iPlanetAMWebAgentService\"},{\"name\":\"crestPolicyService\",\"resources\":[\"http://*\",\"https://*\"],\"actions\":{\"UPDATE\":true,\"QUERY\":true,\"PATCH\":true,\"CREATE\":true,\"DELETE\":true,\"READ\":true,\"ACTION\":true},\"description\":null,\"creationDate\":1403298037999,\"lastModifiedDate\":1403298037999,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"User\",\"NOT\",\"AND\",\"Attribute\",\"Role\",\"Group\",\"OR\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"Time\",\"NOT\",\"IP\",\"AND\",\"DNSName\",\"OR\"],\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"crestPolicyService\"},{\"name\":\"demodemo\",\"resources\":[\"tftyt\",\"ytrytr\"],\"actions\":{\"UPDATE\":true,\"CREATE\":true},\"description\":\"fdsf\",\"creationDate\":1403613457461,\"lastModifiedDate\":1404211810777,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"AND\",\"Attribute\",\"AnyUser\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"NOT\"],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"openProvisioning\"},{\"name\":\"hahaha\",\"resources\":[],\"actions\":{},\"description\":null,\"creationDate\":1404298013580,\"lastModifiedDate\":1406714271482,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"AttributeLookup\"],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"webservices\"},{\"name\":\"iPlanetAMWebAgentService\",\"resources\":[\"qwerrtty\",\"*\"],\"actions\":{\"GET\":false,\"DELETE\":false,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"description\":null,\"creationDate\":1403298038042,\"lastModifiedDate\":1404317273958,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"User\",\"NOT\",\"AND\",\"Attribute\",\"Role\",\"Group\",\"OR\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"Time\",\"NOT\",\"IP\",\"AND\",\"DNSName\",\"OR\"],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"iPlanetAMWebAgentService\"},{\"name\":\"im\",\"resources\":[\"http://im.sun.com/register\",\"http://im.sun.com/im.jnlp\"],\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"description\":null,\"creationDate\":1403298037984,\"lastModifiedDate\":1406714256207,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"User\",\"Role\",\"Group\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"Time\",\"IP\",\"DNSName\"],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"iPlanetAMWebAgentService\"},{\"name\":\"openProvisioning\",\"resources\":[\"/*\"],\"actions\":{\"UPDATE\":true,\"CREATE\":true,\"DELETE\":true,\"READ\":true},\"description\":null,\"creationDate\":1403298038021,\"lastModifiedDate\":1403298038021,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[],\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"openProvisioning\"},{\"name\":\"paycheck\",\"resources\":[\"http://paycheck.sun.com:8081/*/private\",\"http://paycheck.sun.com:8081/*\",\"http://paycheck.sun.com:8081/*/users/*\"],\"actions\":{\"OPTIONS\":false,\"HEAD\":true,\"PUT\":false},\"description\":null,\"creationDate\":1403298038032,\"lastModifiedDate\":1406808544428,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"User\",\"AND\",\"Role\",\"Group\",\"OR\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"NOT\",\"IP\",\"AND\",\"DNSName\",\"OR\"],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"iPlanetAMWebAgentService\"},{\"name\":\"sunAMDelegationService\",\"resources\":[\"sms://*\"],\"actions\":{\"MODIFY\":true,\"READ\":true,\"DELEGATE\":true},\"description\":null,\"creationDate\":1403298038075,\"lastModifiedDate\":1403298038075,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"User\",\"Group\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[],\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"sunAMDelegationService\"}],\"resultCount\":10,\"pagedResultsCookie\":null,\"remainingPagedResults\":6}"
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder ]
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder );
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder
0d1890b1abcf0679acda01bd4231ee3324cff86aChristian Maeder server.respondWith(
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "GET",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "/openam/json/applications?_queryFilter=true&_pageSize=10&_sortKeys=-name&_pagedResultsOffset=0",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder [
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder 200,
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross {
40f116697627649720a9d7bd456025925e799408Markus Gross "Date": "Wed, 27 Aug 2014 10:31:59 GMT",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Cache-Control": "no-cache",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Server": "Apache-Coyote/1.1",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Content-Length": "5389",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Content-Type": "application/json;charset=UTF-8"
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross },
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "{\"result\":[{\"name\":\"yayayagfgfdg\",\"resources\":[\"gfd\",\"rgdf\"],\"actions\":{\"TRANSFER\":true},\"description\":\"hjdsfds\",\"creationDate\":1403298250851,\"lastModifiedDate\":1406714294704,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"AnyUser\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"banking\"},{\"name\":\"weew\",\"resources\":[],\"actions\":{},\"description\":\"erewr\",\"creationDate\":1408112298749,\"lastModifiedDate\":1408112298749,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"NOT\",\"OR\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"NOT\",\"OR\"],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"webservices\"},{\"name\":\"teststst\",\"resources\":[\"qwqwew\",\"dfgfdg\"],\"actions\":{\"TRANSFER\":true},\"description\":\"eererre\",\"creationDate\":1403599507259,\"lastModifiedDate\":1406707688551,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"NOT\",\"Attribute\",\"NONE\",\"Group\",\"AnyUser\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"NOT\",\"IP\",\"OR\"],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"banking\"},{\"name\":\"sunIdentityServerLibertyPPService\",\"resources\":[\"*\"],\"actions\":{\"QUERY_interactForConsent\":false,\"QUERY_interactForValue\":false,\"MODIFY_interactForValue\":false,\"QUERY_deny\":false,\"MODIFY_deny\":false,\"MODIFY_interactForConsent\":false,\"MODIFY_allow\":true,\"QUERY_allow\":true},\"description\":null,\"creationDate\":1403298038012,\"lastModifiedDate\":1403298038012,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"User\",\"NOT\",\"AND\",\"Attribute\",\"Role\",\"Group\",\"OR\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"Time\",\"NOT\",\"IP\",\"AND\",\"DNSName\",\"OR\"],\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"sunIdentityServerLibertyPPService\"},{\"name\":\"sunIdentityServerDiscoveryService\",\"resources\":[\"http://*\",\"https://*\"],\"actions\":{\"LOOKUP\":true,\"UPDATE\":true},\"description\":null,\"creationDate\":1403298038063,\"lastModifiedDate\":1403298038063,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"User\",\"NOT\",\"AND\",\"Attribute\",\"Role\",\"Group\",\"OR\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"Time\",\"NOT\",\"IP\",\"AND\",\"DNSName\",\"OR\"],\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"sunIdentityServerDiscoveryService\"},{\"name\":\"sunBank\",\"resources\":[\"*\"],\"actions\":{\"TRANSFER\":true},\"description\":null,\"creationDate\":1403298038052,\"lastModifiedDate\":1403298038052,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"NOT\",\"com.sun.identity.admin.model.BankingViewSubject\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"NumericAttribute\",\"Time\",\"NOT\",\"IP\",\"AND\",\"OR\"],\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"banking\"},{\"name\":\"sunAMDelegationService\",\"resources\":[\"sms://*\"],\"actions\":{\"MODIFY\":true,\"READ\":true,\"DELEGATE\":true},\"description\":null,\"creationDate\":1403298038075,\"lastModifiedDate\":1403298038075,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"User\",\"Group\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[],\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"sunAMDelegationService\"},{\"name\":\"paycheck\",\"resources\":[\"http://paycheck.sun.com:8081/*/private\",\"http://paycheck.sun.com:8081/*\",\"http://paycheck.sun.com:8081/*/users/*\"],\"actions\":{\"OPTIONS\":false,\"HEAD\":true,\"PUT\":false},\"description\":null,\"creationDate\":1403298038032,\"lastModifiedDate\":1406808544428,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"User\",\"AND\",\"Role\",\"Group\",\"OR\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"NOT\",\"IP\",\"AND\",\"DNSName\",\"OR\"],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"iPlanetAMWebAgentService\"},{\"name\":\"openProvisioning\",\"resources\":[\"/*\"],\"actions\":{\"UPDATE\":true,\"CREATE\":true,\"DELETE\":true,\"READ\":true},\"description\":null,\"creationDate\":1403298038021,\"lastModifiedDate\":1403298038021,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[],\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"openProvisioning\"},{\"name\":\"im\",\"resources\":[\"http://im.sun.com/register\",\"http://im.sun.com/im.jnlp\"],\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"description\":null,\"creationDate\":1403298037984,\"lastModifiedDate\":1406714256207,\"entitlementCombiner\":\"DenyOverride\",\"subjects\":[\"User\",\"Role\",\"Group\"],\"attributeNames\":[],\"realm\":\"/\",\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"conditions\":[\"Time\",\"IP\",\"DNSName\"],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"iPlanetAMWebAgentService\"}],\"resultCount\":10,\"pagedResultsCookie\":null,\"remainingPagedResults\":6}"
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder ]
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross );
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross server.respondWith(
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross "GET",
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross "/openam/json/applicationtypes/iPlanetAMWebAgentService",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross [
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross 200,
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross {
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Date": "Thu, 18 Sep 2014 18:39:20 GMT",
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross "Cache-Control": "no-cache",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Server": "Apache-Coyote/1.1",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "ETag": ""1411065560848"",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "Content-Length": "415",
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross "Content-API-Version": "protocol=1.0,resource=1.0",
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross "Content-Type": "application/json;charset=UTF-8"
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder },
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "{\"name\":\"iPlanetAMWebAgentService\",\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"PUT\":true,\"HEAD\":true},\"saveIndex\":\"org.forgerock.openam.entitlement.indextree.TreeSaveIndex\",\"searchIndex\":\"org.forgerock.openam.entitlement.indextree.TreeSearchIndex\",\"applicationClassName\":\"com.sun.identity.entitlement.Application\",\"resourceComparator\":\"com.sun.identity.entitlement.URLResourceName\"}"
0d1890b1abcf0679acda01bd4231ee3324cff86aChristian Maeder ]
0d1890b1abcf0679acda01bd4231ee3324cff86aChristian Maeder );
0d1890b1abcf0679acda01bd4231ee3324cff86aChristian Maeder
0d1890b1abcf0679acda01bd4231ee3324cff86aChristian Maeder server.respondWith(
0d1890b1abcf0679acda01bd4231ee3324cff86aChristian Maeder "GET",
0d1890b1abcf0679acda01bd4231ee3324cff86aChristian Maeder "/openam/json/conditiontypes?_queryID=&_fields=title,logical,config",
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder [
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder 200,
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder {
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder "Date": "Mon, 11 Aug 2014 10:03:41 GMT",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "Cache-Control": "no-cache",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Server": "Apache-Coyote/1.1",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Content-Length": "1715",
40f116697627649720a9d7bd456025925e799408Markus Gross "Content-Type": "application/json;charset=UTF-8"
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder },
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "{\"result\":[{\"title\":\"AND\",\"logical\":true,\"config\":{\"type\":\"object\",\"properties\":{\"conditions\":{\"type\":\"array\",\"items\":{\"type\":\"any\"}}}}},{\"title\":\"AttributeLookup\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"key\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"}}}},{\"title\":\"DNSName\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"domainNameMask\":{\"type\":\"string\"}}}},{\"title\":\"IP\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"startIp\":{\"type\":\"string\"},\"endIp\":{\"type\":\"string\"}}}},{\"title\":\"NOT\",\"logical\":true,\"config\":{\"type\":\"object\",\"properties\":{\"condition\":{\"type\":\"object\",\"properties\":{}}}}},{\"title\":\"NumericAttribute\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"attributeName\":{\"type\":\"string\"},\"operator\":{\"type\":\"string\",\"enum\":[\"LESS_THAN\",\"LESS_THAN_OR_EQUAL\",\"EQUAL\",\"GREATER_THAN_OR_EQUAL\",\"GREATER_THAN\"]},\"value\":{\"type\":\"number\"}}}},{\"title\":\"OR\",\"logical\":true,\"config\":{\"type\":\"object\",\"properties\":{\"conditions\":{\"type\":\"array\",\"items\":{\"type\":\"any\"}}}}},{\"title\":\"Policy\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"className\":{\"type\":\"string\"},\"properties\":{\"type\":\"object\"}}}},{\"title\":\"StringAttribute\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"attributeName\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"},\"caseSensitive\":{\"type\":\"boolean\",\"required\":true}}}},{\"title\":\"Time\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"startTime\":{\"type\":\"string\"},\"endTime\":{\"type\":\"string\"},\"startDay\":{\"type\":\"string\"},\"endDay\":{\"type\":\"string\"},\"startDate\":{\"type\":\"string\"},\"endDate\":{\"type\":\"string\"},\"enforcementTimeZone\":{\"type\":\"string\"}}}}],\"resultCount\":10,\"pagedResultsCookie\":null,\"remainingPagedResults\":-1}"
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder ]
40f116697627649720a9d7bd456025925e799408Markus Gross );
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder server.respondWith(
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "GET",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "/openam/json/subjecttypes?_queryID=&_fields=title,logical,config",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder [
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder 200,
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder {
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "Date": "Mon, 11 Aug 2014 10:03:41 GMT",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Cache-Control": "no-cache",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Server": "Apache-Coyote/1.1",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Content-Length": "1209",
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "Content-Type": "application/json;charset=UTF-8"
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross },
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross "{\"result\":[{\"title\":\"AND\",\"logical\":true,\"config\":{\"type\":\"object\",\"properties\":{\"subjects\":{\"type\":\"array\",\"items\":{\"type\":\"any\"}}}}},{\"title\":\"AnyUser\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{}}},{\"title\":\"Attribute\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"value\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"}}}},{\"title\":\"Group\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}}}},{\"title\":\"NONE\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{}}},{\"title\":\"NOT\",\"logical\":true,\"config\":{\"type\":\"object\",\"properties\":{\"subject\":{\"type\":\"object\",\"properties\":{}}}}},{\"title\":\"OR\",\"logical\":true,\"config\":{\"type\":\"object\",\"properties\":{\"subjects\":{\"type\":\"array\",\"items\":{\"type\":\"any\"}}}}},{\"title\":\"Policy\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"className\":{\"type\":\"string\"},\"values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}}},{\"title\":\"Role\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}}}},{\"title\":\"User\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}}}}],\"resultCount\":10,\"pagedResultsCookie\":null,\"remainingPagedResults\":-1}"
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross ]
71704748bda66fdb9dedfd86d6b0d5bd3e84e9c2Markus Gross );
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder
0d1890b1abcf0679acda01bd4231ee3324cff86aChristian Maeder server.respondWith(
0d0278c34a374b29c2d6c58b39b8b56e283d48e8Christian Maeder "GET",
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross "/openam/json/decisioncombiners/?_queryId=&_fields=title",
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross [
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross 200,
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross {
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross "Date": "Mon, 11 Aug 2014 10:03:41 GMT",
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross "Cache-Control": "no-cache",
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross "Server": "Apache-Coyote/1.1",
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross "Content-Length": "106",
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross "Content-Type": "application/json;charset=UTF-8"
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross },
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "{\"result\":[{\"title\":\"DenyOverride\"}],\"resultCount\":1,\"pagedResultsCookie\":null,\"remainingPagedResults\":-1}"
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross ]
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross );
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross server.respondWith(
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross "GET",
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross "/openam/json/applications/iPlanetAMWebAgentService",
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross [
f8eff59ab34565ab064b86ac7edc2d8bab498e1aMarkus Gross 200,
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross {
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross "Date": "Mon, 11 Aug 2014 10:03:41 GMT",
a74c301a1777a7c11f8d2e027cdbbab56e6fea10Markus Gross "Cache-Control": "no-cache",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "Server": "Apache-Coyote/1.1",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "ETag": ""1404317273958"",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "Content-Length": "587",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "Content-Type": "application/json;charset=UTF-8"
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross },
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "{\"name\":\"iPlanetAMWebAgentService\",\"resources\":[\"qwerrtty\",\"*\"],\"actions\":{\"GET\":false,\"DELETE\":false,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"realm\":\"/\",\"description\":null,\"creationDate\":1403298038042,\"lastModifiedDate\":1404317273958,\"attributeNames\":[],\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"iPlanetAMWebAgentService\",\"conditions\":[\"Time\",\"NOT\",\"IP\",\"AND\",\"DNSName\",\"OR\"],\"subjects\":[\"User\",\"NOT\",\"AND\",\"Attribute\",\"Role\",\"Group\",\"OR\"],\"entitlementCombiner\":\"DenyOverride\"}"
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross ]
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross );
7bb4a5dbdc5e29315aaa89fbeb7e41f6946cadd9Markus Gross
d24317c8197e565e60c8f41309de246249c1e57eChristian Maeder server.respondWith(
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "GET",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "/openam/json/policies/qwwqqw",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross [
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross 200,
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross {
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "Date": "Mon, 11 Aug 2014 10:05:39 GMT",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "Cache-Control": "no-cache",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "Server": "Apache-Coyote/1.1",
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "ETag": ""1407503016553"",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "Content-Length": "442",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "Content-Type": "application/json;charset=UTF-8"
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder },
cb677b28797cf29452620f58606e174ab93ac426Christian Maeder "{\"name\":\"qwwqqw\",\"active\":true,\"description\":\"rewr\",\"resources\":[\"rerew\"],\"applicationName\":\"sunIdentityServerLibertyPPService\",\"actionValues\":{\"QUERY_deny\":false,\"MODIFY_deny\":false},\"resourceAttributes\":[],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModified\":\"2014-08-08T13:03:36Z\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":\"2014-07-30T10:09:45Z\"}"
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross ]
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross );
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross server.respondWith(
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "GET",
7bb4a5dbdc5e29315aaa89fbeb7e41f6946cadd9Markus Gross "/openam/json/applications/sunIdentityServerLibertyPPService",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross [
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross 200,
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross {
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "Date": "Mon, 11 Aug 2014 10:05:08 GMT",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "Cache-Control": "no-cache",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "Server": "Apache-Coyote/1.1",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "ETag": ""1403298038012"",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "Content-Length": "739",
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "Content-Type": "application/json;charset=UTF-8"
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross },
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross "{\"name\":\"sunIdentityServerLibertyPPService\",\"resources\":[\"*\"],\"actions\":{\"QUERY_interactForConsent\":false,\"QUERY_interactForValue\":false,\"MODIFY_interactForValue\":false,\"QUERY_deny\":false,\"MODIFY_deny\":false,\"MODIFY_interactForConsent\":false,\"MODIFY_allow\":true,\"QUERY_allow\":true},\"realm\":\"/\",\"description\":null,\"creationDate\":1403298038012,\"lastModifiedDate\":1403298038012,\"attributeNames\":[],\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"sunIdentityServerLibertyPPService\",\"conditions\":[\"Time\",\"NOT\",\"IP\",\"AND\",\"DNSName\",\"OR\"],\"subjects\":[\"User\",\"NOT\",\"AND\",\"Attribute\",\"Role\",\"Group\",\"OR\"],\"entitlementCombiner\":\"DenyOverride\"}"
cd6354cc2af5958c304c84e65707435293c5ccc7Markus Gross ]
37b6827bfa49c2fe7e2c74ee7f29fec7be4c5a19Markus Gross );
server.respondWith(
"GET",
"/openam/json/policies?_queryFilter=applicationName%20eq%20%22sunIdentityServerLibertyPPService%22&_pageSize=10&_sortKeys=name&_pagedResultsOffset=0",
[
200,
{
"Date": "Wed, 27 Aug 2014 10:53:59 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"Content-Length": "1494",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"result\":[{\"name\":\"anotherxamplePolicy\",\"active\":true,\"description\":\"descr\",\"resources\":[\"http://www.example.com:80/*\"],\"applicationName\":\"sunIdentityServerLibertyPPService\",\"actionValues\":{\"QUERY_interactForValue\":false,\"MODIFY_interactForValue\":false},\"subject\":{\"type\":\"User\",\"subjectName\":\"Bob Bob\"},\"resourceAttributes\":[],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModified\":\"2014-07-30T10:32:58Z\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":\"2014-07-09T11:21:49Z\"},{\"name\":\"anotherxamplePolicy111\",\"active\":true,\"description\":\"4\",\"resources\":[\"http://www.example.com:80/*\"],\"applicationName\":\"sunIdentityServerLibertyPPService\",\"actionValues\":{},\"subject\":{\"type\":\"User\",\"subjectName\":\"Bob Bob\"},\"resourceAttributes\":[],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModified\":\"2014-07-29T15:21:19Z\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":\"2014-07-29T15:21:19Z\"},{\"name\":\"qwwqqw\",\"active\":true,\"description\":\"rewr\",\"resources\":[\"rerew\",\"dedeed\"],\"applicationName\":\"sunIdentityServerLibertyPPService\",\"actionValues\":{\"QUERY_deny\":false,\"MODIFY_deny\":false},\"resourceAttributes\":[],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModified\":\"2014-08-20T14:37:30Z\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":\"2014-07-30T10:09:45Z\"}],\"resultCount\":3,\"pagedResultsCookie\":null,\"remainingPagedResults\":0}"
]
);
server.respondWith(
"GET",
"/openam/json/policies?_queryFilter=applicationName%20eq%20%22sunIdentityServerLibertyPPService%22&_pageSize=10&_sortKeys=-name&_pagedResultsOffset=0",
[
200,
{
"Date": "Wed, 27 Aug 2014 10:55:36 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"Content-Length": "1494",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"result\":[{\"name\":\"qwwqqw\",\"active\":true,\"description\":\"rewr\",\"resources\":[\"rerew\",\"dedeed\"],\"applicationName\":\"sunIdentityServerLibertyPPService\",\"actionValues\":{\"QUERY_deny\":false,\"MODIFY_deny\":false},\"resourceAttributes\":[],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModified\":\"2014-08-20T14:37:30Z\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":\"2014-07-30T10:09:45Z\"},{\"name\":\"anotherxamplePolicy111\",\"active\":true,\"description\":\"4\",\"resources\":[\"http://www.example.com:80/*\"],\"applicationName\":\"sunIdentityServerLibertyPPService\",\"actionValues\":{},\"subject\":{\"type\":\"User\",\"subjectName\":\"Bob Bob\"},\"resourceAttributes\":[],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModified\":\"2014-07-29T15:21:19Z\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":\"2014-07-29T15:21:19Z\"},{\"name\":\"anotherxamplePolicy\",\"active\":true,\"description\":\"descr\",\"resources\":[\"http://www.example.com:80/*\"],\"applicationName\":\"sunIdentityServerLibertyPPService\",\"actionValues\":{\"QUERY_interactForValue\":false,\"MODIFY_interactForValue\":false},\"subject\":{\"type\":\"User\",\"subjectName\":\"Bob Bob\"},\"resourceAttributes\":[],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModified\":\"2014-07-30T10:32:58Z\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":\"2014-07-09T11:21:49Z\"}],\"resultCount\":3,\"pagedResultsCookie\":null,\"remainingPagedResults\":0}"
]
);
};
});