-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace searchShadowOwner with equivalent search
The original searchShadowOwner execution was not cacheable in global nor in local repository caches, resulting in excessive number of search operations e.g. when authorizations were present. Now the method is replaced by equivalent searchObjects call at the level of RepositoryService, so that caching should be employed. (Note that the translation to regular search operation was there internally in SqaleRepositoryService implementation perhaps from the day one.)
- Loading branch information
Showing
10 changed files
with
191 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
model/model-intest/src/test/resources/security/role-many-shadow-owner-autz.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<!-- | ||
~ Copyright (c) 2014 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
<role oid="c8c99194-3e5c-439b-bf98-c71146d3e1b5" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"> | ||
<name>many-shadow-owner-autz</name> | ||
<documentation>Testing MID-8363: repeated resolution of shadow owner</documentation> | ||
<authorization> | ||
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action> | ||
<object> | ||
<type>ShadowType</type> | ||
<owner> | ||
<special>self</special> | ||
</owner> | ||
</object> | ||
<item>name</item> | ||
</authorization> | ||
<authorization> | ||
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action> | ||
<object> | ||
<type>ShadowType</type> | ||
<owner> | ||
<special>self</special> | ||
</owner> | ||
</object> | ||
<item>resourceRef</item> | ||
</authorization> | ||
<authorization> | ||
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action> | ||
<object> | ||
<type>ShadowType</type> | ||
<owner> | ||
<special>self</special> | ||
</owner> | ||
</object> | ||
<item>objectClass</item> | ||
</authorization> | ||
<authorization> | ||
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action> | ||
<object> | ||
<type>ShadowType</type> | ||
<owner> | ||
<special>self</special> | ||
</owner> | ||
</object> | ||
<item>kind</item> | ||
</authorization> | ||
<authorization> | ||
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action> | ||
<object> | ||
<type>ShadowType</type> | ||
<owner> | ||
<special>self</special> | ||
</owner> | ||
</object> | ||
<item>intent</item> | ||
</authorization> | ||
<authorization> | ||
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action> | ||
<object> | ||
<type>ShadowType</type> | ||
<owner> | ||
<special>self</special> | ||
</owner> | ||
</object> | ||
<item>attributes</item> | ||
</authorization> | ||
<authorization> | ||
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action> | ||
<object> | ||
<type>ShadowType</type> | ||
<owner> | ||
<special>self</special> | ||
</owner> | ||
</object> | ||
<item>activation</item> | ||
</authorization> | ||
<authorization> | ||
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action> | ||
<object> | ||
<type>ShadowType</type> | ||
<owner> | ||
<special>self</special> | ||
</owner> | ||
</object> | ||
<item>credentials</item> | ||
</authorization> | ||
<authorization> | ||
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action> | ||
<object> | ||
<type>ShadowType</type> | ||
<owner> | ||
<special>self</special> | ||
</owner> | ||
</object> | ||
<item>description</item> | ||
</authorization> | ||
<authorization> | ||
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action> | ||
<object> | ||
<type>ShadowType</type> | ||
<owner> | ||
<special>self</special> | ||
</owner> | ||
</object> | ||
<item>documentation</item> | ||
</authorization> | ||
</role> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.