Searched refs:resourceSetStore (Results 1 - 18 of 18) sorted by relevance

/forgerock/openam-v13/openam-uma/src/test/java/org/forgerock/openam/uma/rest/
H A DResourceSetServiceTest.java71 private ResourceSetStore resourceSetStore; field in class:ResourceSetServiceTest
79 resourceSetStore = mock(ResourceSetStore.class);
87 given(resourceSetStoreFactory.create("REALM")).willReturn(resourceSetStore);
102 given(resourceSetStore.read(eq(resourceSetId), any(ResourceSetSharedFilter.class)))
129 given(resourceSetStore.read(eq(resourceSetId), any(ResourceSetSharedFilter.class)))
175 given(resourceSetStore.query(any(QueryFilter.class))).willReturn(queriedResourceSets);
219 given(resourceSetStore.query(resourceSetQuery)).willReturn(queriedResourceSets);
262 given(resourceSetStore.query(resourceSetQuery)).willReturn(queriedResourceSets);
267 given(resourceSetStore.query(QueryFilter.and(
345 given(resourceSetStore
[all...]
H A DPolicyGraphTest.java102 private ResourceSetStore resourceSetStore; field in class:PolicyGraphTest
111 given(resourceSetStoreFactory.create(anyString())).willReturn(resourceSetStore);
226 given(resourceSetStore.read(anyString(), anyString()))
260 given(resourceSetStore.read(anyString(), anyString()))
H A DUmaPolicyServiceImplTest.java100 private ResourceSetStore resourceSetStore; field in class:UmaPolicyServiceImplTest
139 resourceSetStore = mock(ResourceSetStore.class);
144 given(resourceSetStoreFactory.create(anyString())).willReturn(resourceSetStore);
145 given(resourceSetStore.read("RESOURCE_SET_ID", RESOURCE_OWNER_ID)).willReturn(resourceSet);
146 given(resourceSetStore.read(eq("RESOURCE_SET_ID"),
148 given(resourceSetStore.query(QueryFilter.and(
151 doThrow(org.forgerock.oauth2.core.exceptions.NotFoundException.class).when(resourceSetStore).read("OTHER_ID", RESOURCE_OWNER_ID);
152 doThrow(org.forgerock.oauth2.core.exceptions.ServerException.class).when(resourceSetStore).read("FAILING_ID", RESOURCE_OWNER_ID);
153 doThrow(org.forgerock.oauth2.core.exceptions.ServerException.class).when(resourceSetStore).query(QueryFilter.and(
H A DUmaPolicyServiceImplDelegationTest.java105 private ResourceSetStore resourceSetStore; field in class:UmaPolicyServiceImplDelegationTest
130 given(resourceSetStoreFactory.create(anyString())).willReturn(resourceSetStore);
344 given(resourceSetStore.read(resourceSetId, resourceOwner)).willReturn(resourceSet);
345 given(resourceSetStore.query(QueryFilter.and(
/forgerock/openam/openam-uma/src/test/java/org/forgerock/openam/uma/rest/
H A DResourceSetServiceTest.java74 private ResourceSetStore resourceSetStore; field in class:ResourceSetServiceTest
83 resourceSetStore = mock(ResourceSetStore.class);
91 given(resourceSetStoreFactory.create("/REALM")).willReturn(resourceSetStore);
113 given(resourceSetStore.read(eq(resourceSetId), any(ResourceSetSharedFilter.class)))
140 given(resourceSetStore.read(eq(resourceSetId), any(ResourceSetSharedFilter.class)))
187 given(resourceSetStore.query(any(QueryFilter.class))).willReturn(queriedResourceSets);
230 given(resourceSetStore.query(resourceSetQuery)).willReturn(queriedResourceSets);
273 given(resourceSetStore.query(resourceSetQuery)).willReturn(queriedResourceSets);
278 given(resourceSetStore.query(QueryFilter.and(
356 given(resourceSetStore
[all...]
H A DPolicyGraphTest.java102 private ResourceSetStore resourceSetStore; field in class:PolicyGraphTest
111 given(resourceSetStoreFactory.create(anyString())).willReturn(resourceSetStore);
226 given(resourceSetStore.read(anyString(), anyString()))
260 given(resourceSetStore.read(anyString(), anyString()))
H A DUmaPolicyServiceImplTest.java104 private ResourceSetStore resourceSetStore; field in class:UmaPolicyServiceImplTest
144 resourceSetStore = mock(ResourceSetStore.class);
149 given(resourceSetStoreFactory.create(anyString())).willReturn(resourceSetStore);
150 given(resourceSetStore.read("RESOURCE_SET_ID", RESOURCE_OWNER_ID)).willReturn(resourceSet);
151 given(resourceSetStore.read(eq("RESOURCE_SET_ID"),
153 given(resourceSetStore.query(QueryFilter.and(
156 doThrow(org.forgerock.oauth2.core.exceptions.NotFoundException.class).when(resourceSetStore).read("OTHER_ID", RESOURCE_OWNER_ID);
157 doThrow(org.forgerock.oauth2.core.exceptions.ServerException.class).when(resourceSetStore).read("FAILING_ID", RESOURCE_OWNER_ID);
158 doThrow(org.forgerock.oauth2.core.exceptions.ServerException.class).when(resourceSetStore).query(QueryFilter.and(
H A DUmaPolicyServiceImplDelegationTest.java107 private ResourceSetStore resourceSetStore; field in class:UmaPolicyServiceImplDelegationTest
133 given(resourceSetStoreFactory.create(anyString())).willReturn(resourceSetStore);
351 given(resourceSetStore.read(resourceSetId, resourceOwner)).willReturn(resourceSet);
352 given(resourceSetStore.query(QueryFilter.and(
/forgerock/openam-v13/openam-uma/src/test/java/org/forgerock/openam/uma/
H A DPermissionRequestEndpointTest.java61 private ResourceSetStore resourceSetStore; field in class:PermissionRequestEndpointTest
71 resourceSetStore = mock(ResourceSetStore.class);
79 given(providerSettings.getResourceSetStore()).willReturn(resourceSetStore);
116 given(resourceSetStore.read("RESOURCE_SET_ID", "RESOURCE_OWNER_ID")).willReturn(resourceSetDescription);
191 given(resourceSetStore.read("RESOURCE_SET_ID", "RESOURCE_OWNER_ID")).willReturn(resourceSetDescription);
216 given(resourceSetStore.read("RESOURCE_SET_ID", "RESOURCE_OWNER_ID")).willReturn(resourceSetDescription);
241 doThrow(NotFoundException.class).when(resourceSetStore).read("RESOURCE_SET_ID", "RESOURCE_OWNER_ID");
265 doThrow(ServerException.class).when(resourceSetStore).read("RESOURCE_SET_ID", "RESOURCE_OWNER_ID");
H A DAuthorizationRequestEndpointTest.java104 private ResourceSetStore resourceSetStore; field in class:AuthorizationRequestEndpointTest
171 resourceSetStore = mock(ResourceSetStore.class);
175 given(resourceSetStore.query(QueryFilter.equalTo(ResourceSetTokenField.RESOURCE_SET_ID, RS_ID)))
190 given(oauth2ProviderSettings.getResourceSetStore()).willReturn(resourceSetStore);
/forgerock/openam/openam-uma/src/test/java/org/forgerock/openam/uma/
H A DPermissionRequestEndpointTest.java59 private ResourceSetStore resourceSetStore; field in class:PermissionRequestEndpointTest
69 resourceSetStore = mock(ResourceSetStore.class);
77 given(providerSettings.getResourceSetStore()).willReturn(resourceSetStore);
114 given(resourceSetStore.read("RESOURCE_SET_ID", "RESOURCE_OWNER_ID")).willReturn(resourceSetDescription);
189 given(resourceSetStore.read("RESOURCE_SET_ID", "RESOURCE_OWNER_ID")).willReturn(resourceSetDescription);
214 given(resourceSetStore.read("RESOURCE_SET_ID", "RESOURCE_OWNER_ID")).willReturn(resourceSetDescription);
239 doThrow(NotFoundException.class).when(resourceSetStore).read("RESOURCE_SET_ID", "RESOURCE_OWNER_ID");
263 doThrow(ServerException.class).when(resourceSetStore).read("RESOURCE_SET_ID", "RESOURCE_OWNER_ID");
H A DAuthorizationRequestEndpointTest.java98 private ResourceSetStore resourceSetStore; field in class:AuthorizationRequestEndpointTest
165 resourceSetStore = mock(ResourceSetStore.class);
169 given(resourceSetStore.query(QueryFilter.equalTo(ResourceSetTokenField.RESOURCE_SET_ID, RS_ID)))
184 given(oauth2ProviderSettings.getResourceSetStore()).willReturn(resourceSetStore);
/forgerock/openam-v13/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/
H A DOpenAMOAuth2ProviderSettingsFactory.java118 ResourceSetStore resourceSetStore = resourceSetStoreFactory.create(realm);
119 providerSettings = new OpenAMOAuth2ProviderSettings(realm, resourceSetStore, cookieExtractor);
H A DOpenAMOAuth2ProviderSettings.java106 private final ResourceSetStore resourceSetStore; field in class:OpenAMOAuth2ProviderSettings
115 * @param resourceSetStore An instance of the ResourceSetStore for the current realm.
118 public OpenAMOAuth2ProviderSettings(String realm, ResourceSetStore resourceSetStore, argument
122 this.resourceSetStore = resourceSetStore;
803 return resourceSetStore;
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/oauth2/core/
H A DOAuth2ProviderSettingsFactory.java142 ResourceSetStore resourceSetStore = resourceSetStoreFactory.create(realm);
146 resourceSetStore, serviceConfigManagerFactory);
H A DRealmOAuth2ProviderSettings.java95 private final ResourceSetStore resourceSetStore; field in class:RealmOAuth2ProviderSettings
105 * @param resourceSetStore An instance of the ResourceSetStore for the current realm.
108 public RealmOAuth2ProviderSettings(OpenAMSettings settings, String realm, ResourceSetStore resourceSetStore, argument
112 this.resourceSetStore = resourceSetStore;
791 return resourceSetStore;
/forgerock/openam-v13/openam-uma/src/main/java/org/forgerock/openam/uma/rest/
H A DUmaPolicyApplicationListener.java328 ResourceSetStore resourceSetStore = resourceSetStoreFactory.create(DNMapper.orgNameToRealmName(realm));
331 Set<ResourceSetDescription> results = resourceSetStore.query(queryFilter);
333 resourceSetStore.delete(resourceSet.getId(), resourceSet.getResourceOwnerId());
/forgerock/openam/openam-uma/src/main/java/org/forgerock/openam/uma/rest/
H A DUmaPolicyApplicationListener.java341 ResourceSetStore resourceSetStore = resourceSetStoreFactory.create(DNMapper.orgNameToRealmName(realm));
344 Set<ResourceSetDescription> results = resourceSetStore.query(queryFilter);
346 resourceSetStore.delete(resourceSet.getId(), resourceSet.getResourceOwnerId());

Completed in 55 milliseconds