Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Evolveum/midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Jun 16, 2016
2 parents 001a475 + 4081a25 commit 154eee5
Show file tree
Hide file tree
Showing 21 changed files with 69 additions and 5 deletions.
Expand Up @@ -220,6 +220,11 @@ public WebMarkupContainer getPanel(String panelId) {
}
});
}
int i = tabbedPanel.getSelectedTab();
if (i < 0 || i > tabs.size()) {
i = 0;
}
tabbedPanel.setSelectedTab(i);
}

@SuppressWarnings("unchecked")
Expand Down Expand Up @@ -301,7 +306,6 @@ private void saveChanges() {

configurationPropertiesModel.reset();
updateConfigurationTabs();
TabbedPanel<ITab> tabbedPanel = getConfigurationTabbedPanel();
tabbedPanel.setSelectedTab(tabbedPanel.getSelectedTab());

}
}
Expand Up @@ -45,6 +45,7 @@
import com.evolveum.midpoint.web.page.admin.configuration.component.EmptyOnChangeAjaxFormUpdatingBehavior;
import com.evolveum.midpoint.web.page.admin.resources.PageResourceWizard;
import com.evolveum.midpoint.web.session.UserProfileStorage;
import com.evolveum.midpoint.web.util.ExpressionUtil;
import com.evolveum.midpoint.web.util.InfoTooltipBehavior;
import com.evolveum.midpoint.xml.ns._public.common.common_3.*;
import com.evolveum.prism.xml.ns._public.types_3.ItemPathType;
Expand Down Expand Up @@ -1039,6 +1040,20 @@ private void removeEmptyContainers(@NotNull PrismObject<ResourceType> resourcePr
}
}
replace(objectType.getProtected(), newProtectedList);

// iterator expressions
if (objectType.getIteration() != null) {
IterationSpecificationType it = objectType.getIteration();
if (ExpressionUtil.isEmpty(it.getTokenExpression())) {
it.setTokenExpression(null);
}
if (ExpressionUtil.isEmpty(it.getPreIterationCondition())) {
it.setPreIterationCondition(null);
}
if (ExpressionUtil.isEmpty(it.getPostIterationCondition())) {
it.setPostIterationCondition(null);
}
}
}
}
}
Expand Down
Expand Up @@ -413,7 +413,10 @@ private AccountCallableResult<List<SimpleAccountDto>> loadAccounts() throws Exce
Collection<SelectorOptions<GetOperationOptions>> options =
SelectorOptions.createCollection(ShadowType.F_RESOURCE, getOpts);


SelectorOptions<GetOperationOptions> resolveNamesOptions = new SelectorOptions(GetOperationOptions.createResolveNames());
resolveNamesOptions.getOptions().setNoFetch(Boolean.TRUE);
options.add(resolveNamesOptions);

List<ObjectReferenceType> references = user.asObjectable().getLinkRef();
for (ObjectReferenceType reference : references) {
PrismObject<ShadowType> account = WebModelServiceUtils.loadObject(ShadowType.class, reference.getOid(),
Expand Down
Expand Up @@ -34,6 +34,7 @@
<mapping>
<name>Org-org mapping</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>extension/ext:orgpath</path>
</source>
Expand Down Expand Up @@ -113,6 +114,7 @@
<mapping>
<name>Org metarole assignment</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>orgType</path>
</source>
Expand Down
Expand Up @@ -26,6 +26,7 @@
<mapping>
<name>Responsibility metarole assignment</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>extension/ext:responsibility</path>
</source>
Expand Down
Expand Up @@ -25,6 +25,7 @@

<mapping>
<!-- This mapping is NOT initial so if will in fact FORCE fullname consistency -->
<strength>strong</strength>
<source>
<path>$user/givenName</path>
</source>
Expand All @@ -49,6 +50,7 @@
</mapping>
<mapping>
<description>A hack to avoid feedback to HR feed - deleting accounts because they are not assigned</description>
<strength>strong</strength>
<source>
<c:path xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">employeeType</c:path>
</source>
Expand All @@ -69,6 +71,7 @@
</condition>
</mapping>
<mapping>
<strength>strong</strength>
<source>
<c:path xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">employeeType</c:path>
</source>
Expand All @@ -87,6 +90,7 @@
</condition>
</mapping>
<mapping>
<strength>strong</strength>
<source>
<c:path xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">employeeType</c:path>
</source>
Expand All @@ -105,6 +109,7 @@
</condition>
</mapping>
<mapping>
<strength>strong</strength>
<source>
<c:path xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">employeeType</c:path>
</source>
Expand Down Expand Up @@ -141,6 +146,7 @@
the user.
</description>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>extension/ext:orgpath</path>
</source>
Expand Down Expand Up @@ -211,6 +217,7 @@
<mapping>
<name>responsibility role assignment</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>extension/ext:responsibility</path>
</source>
Expand Down
1 change: 1 addition & 0 deletions samples/demo-rs/object-template-org.xml
Expand Up @@ -24,6 +24,7 @@
<name>Org Template</name>

<mapping>
<strength>strong</strength>
<source>
<path>orgType</path>
</source>
Expand Down
2 changes: 2 additions & 0 deletions samples/demo-rs/object-template-user.xml
Expand Up @@ -54,6 +54,7 @@
</mapping>

<mapping>
<strength>strong</strength>
<source>
<path>employeeType</path>
</source>
Expand All @@ -74,6 +75,7 @@
</mapping>

<mapping>
<strength>strong</strength>
<source>
<path>employeeType</path>
</source>
Expand Down
2 changes: 2 additions & 0 deletions samples/demo/orgs-objectTemplate.xml
Expand Up @@ -16,6 +16,7 @@
when using Projects & Orgs you need to disable 'projects-objectTemplate.xml' and enable 'orgs-objectTemplate.xml' -->
<mapping>
<description>A hack to avoid feedback to HR feed - deleting accounts because they are not assigned</description>
<strength>strong</strength>
<source>
<c:path>orgType</c:path>
</source>
Expand All @@ -35,6 +36,7 @@
</mapping>
<mapping>
<description>A hack to avoid feedback to HR feed - deleting accounts because they are not assigned</description>
<strength>strong</strength>
<source>
<c:path>orgType</c:path>
</source>
Expand Down
5 changes: 4 additions & 1 deletion samples/demo/user-template.xml
Expand Up @@ -45,6 +45,7 @@

<mapping>
<description>A hack to avoid feedback to HR feed - deleting accounts because they are not assigned</description>
<strength>strong</strength>
<source>
<path>employeeType</path>
</source>
Expand All @@ -68,6 +69,7 @@
</mapping>

<mapping>
<strength>strong</strength>
<source>
<path>employeeType</path>
</source>
Expand All @@ -89,6 +91,7 @@
</mapping>

<mapping>
<strength>strong</strength>
<source>
<path>employeeType</path>
</source>
Expand All @@ -111,7 +114,7 @@

<!-- moved to HR Feed resource
<mapping>
<strength>weak</strength>
<strength>weak</strength>
<expression>
<value>ENABLED</value>
</expression>
Expand Down
1 change: 1 addition & 0 deletions samples/objects/object-template-org.xml
Expand Up @@ -26,6 +26,7 @@
<mapping>
<name>Org-org mapping</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>extension/ext:orgpath</path>
</source>
Expand Down
1 change: 1 addition & 0 deletions samples/objects/object-template-role.xml
Expand Up @@ -32,6 +32,7 @@
<mapping>
<name>Responsibility metarole assignment</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>extension/ext:responsibility</path>
</source>
Expand Down
1 change: 1 addition & 0 deletions samples/objects/object-template-user-nickname.xml
Expand Up @@ -25,6 +25,7 @@

<mapping>
<!-- This mapping is NOT initial so if will in fact FORCE fullname consistency -->
<strength>strong</strength>
<source>
<path>$user/givenName</path>
</source>
Expand Down
2 changes: 2 additions & 0 deletions samples/objects/object-template-user.xml
Expand Up @@ -25,6 +25,7 @@

<mapping>
<!-- This mapping is NOT initial so if will in fact FORCE fullname consistency -->
<strength>strong</strength>
<source>
<path>$user/givenName</path>
</source>
Expand All @@ -50,6 +51,7 @@

<mapping>
<name>basic role</name>
<strength>strong</strength>
<expression>
<assignmentTargetSearch>
<targetType>c:RoleType</targetType>
Expand Down
3 changes: 3 additions & 0 deletions samples/objects/user-template-complex.xml
Expand Up @@ -25,6 +25,7 @@
<name>Complex User Template</name>
<mapping>
<!-- This expression is NOT initial so if will in fact FORCE fullname consistency -->
<strength>strong</strength>
<source>
<path>$user/givenName</path>
</source>
Expand All @@ -46,6 +47,7 @@

<!-- Unconditional automatic assignment of OpenDJ resource -->
<mapping>
<strength>strong</strength>
<expression>
<value>
<assignment>
Expand All @@ -62,6 +64,7 @@

<!-- RB-RBAC functionality. The Pirate role is automatically assigned based on the value of employeeType property -->
<mapping>
<strength>strong</strength>
<source>
<path>employeeType</path>
</source>
Expand Down
1 change: 1 addition & 0 deletions samples/resources/ad/ad-resource-groups-advanced.xml
Expand Up @@ -438,6 +438,7 @@
<mapping>
<name>Metarole assignment</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<expression>
<assignmentTargetSearch>
<targetType>c:RoleType</targetType>
Expand Down
6 changes: 6 additions & 0 deletions samples/resources/sap/assignment/object-template-org.xml
Expand Up @@ -14,6 +14,7 @@
<mapping>
<name>SAP Role (ActivityGroup) metarole assignment</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>orgType</path>
</source>
Expand All @@ -36,6 +37,7 @@
<mapping>
<name>Parent for SAP Roles</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>orgType</path>
</source>
Expand All @@ -60,6 +62,7 @@
<mapping>
<name>SAP Group metarole assignment</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>orgType</path>
</source>
Expand All @@ -82,6 +85,7 @@
<mapping>
<name>Parent for SAP Groups</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>orgType</path>
</source>
Expand All @@ -106,6 +110,7 @@
<mapping>
<name>SAP Profile metarole assignment</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>orgType</path>
</source>
Expand All @@ -128,6 +133,7 @@
<mapping>
<name>Parent for SAP Profiles</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>orgType</path>
</source>
Expand Down
4 changes: 4 additions & 0 deletions samples/resources/sap/assignment/object-template-user.xml
Expand Up @@ -60,6 +60,7 @@
<!--<mapping>-->
<!--<name>End user role for all CDO users</name>-->
<!--<authoritative>true</authoritative>-->
<!--<strength>strong</strength>-->
<!--<source>-->
<!--<path>employeeType</path>-->
<!--</source>-->
Expand All @@ -84,6 +85,7 @@
<mapping>
<name>User - SAP Role mapping</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<c:name>sapRole</c:name>
<c:path xmlns:ext="http://xml.uniba.sk/cdoext">extension/sapRoles</c:path>
Expand Down Expand Up @@ -134,6 +136,7 @@
<mapping>
<name>User - SAP Profile mapping</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<c:name>sapProfile</c:name>
<c:path xmlns:ext="http://xml.uniba.sk/cdoext">extension/sapProfiles</c:path>
Expand Down Expand Up @@ -184,6 +187,7 @@
<mapping>
<name>User - SAP Group mapping</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<c:name>sapGroup</c:name>
<c:path xmlns:ext="http://xml.uniba.sk/cdoext">extension/sapGroups</c:path>
Expand Down
3 changes: 3 additions & 0 deletions samples/resources/sap/object-template-role.xml
Expand Up @@ -12,6 +12,7 @@
<mapping>
<name>SAP ActivityGroup metarole assignment</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>roleType</path>
</source>
Expand All @@ -34,6 +35,7 @@
<mapping>
<name>SAP Group metarole assignment</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>roleType</path>
</source>
Expand All @@ -56,6 +58,7 @@
<mapping>
<name>SAP Group metarole assignment</name>
<authoritative>true</authoritative>
<strength>strong</strength>
<source>
<path>roleType</path>
</source>
Expand Down
Expand Up @@ -29,7 +29,7 @@
<source>
<path>orgType</path>
</source>
<source>
<source>
<path>name</path>
</source>
<expression>
Expand Down

0 comments on commit 154eee5

Please sign in to comment.