-
Notifications
You must be signed in to change notification settings - Fork 188
/
GuiProfileCompiler.java
472 lines (415 loc) · 25.1 KB
/
GuiProfileCompiler.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
/*
* Copyright (c) 2018-2019 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.model.impl.security;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.namespace.QName;
import com.evolveum.midpoint.model.api.authentication.GuiProfiledPrincipal;
import com.evolveum.midpoint.xml.ns._public.common.common_3.*;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import com.evolveum.midpoint.model.api.authentication.CompiledObjectCollectionView;
import com.evolveum.midpoint.model.api.authentication.CompiledGuiProfile;
import com.evolveum.midpoint.model.api.context.EvaluatedAssignment;
import com.evolveum.midpoint.model.api.context.EvaluatedAssignmentTarget;
import com.evolveum.midpoint.model.api.util.DeputyUtils;
import com.evolveum.midpoint.model.common.SystemObjectCache;
import com.evolveum.midpoint.model.impl.controller.CollectionProcessor;
import com.evolveum.midpoint.model.impl.lens.AssignmentCollector;
import com.evolveum.midpoint.model.impl.util.ModelImplUtils;
import com.evolveum.midpoint.prism.PrismContext;
import com.evolveum.midpoint.prism.PrismObject;
import com.evolveum.midpoint.repo.api.RepositoryService;
import com.evolveum.midpoint.repo.common.ObjectResolver;
import com.evolveum.midpoint.schema.RelationRegistry;
import com.evolveum.midpoint.schema.constants.ObjectTypes;
import com.evolveum.midpoint.schema.result.OperationResult;
import com.evolveum.midpoint.schema.util.MiscSchemaUtil;
import com.evolveum.midpoint.security.api.Authorization;
import com.evolveum.midpoint.security.api.AuthorizationTransformer;
import com.evolveum.midpoint.security.api.DelegatorWithOtherPrivilegesLimitations;
import com.evolveum.midpoint.task.api.Task;
import com.evolveum.midpoint.util.QNameUtil;
import com.evolveum.midpoint.util.exception.CommunicationException;
import com.evolveum.midpoint.util.exception.ConfigurationException;
import com.evolveum.midpoint.util.exception.ExpressionEvaluationException;
import com.evolveum.midpoint.util.exception.ObjectNotFoundException;
import com.evolveum.midpoint.util.exception.SchemaException;
import com.evolveum.midpoint.util.exception.SecurityViolationException;
import com.evolveum.midpoint.util.logging.Trace;
import com.evolveum.midpoint.util.logging.TraceManager;
/**
* Compiles user interface profile for a particular user. The profile contains essential information needed to efficiently render
* user interface pages for specified user.
*
* This methods in this component may be quite costly to invoke. Therefore it should NOT be invoked for every request.
* The methods are supposed to be invoked once (or several times) during user's session. The result of this method should be
* cached in web session (in principal).
*
* @author Radovan semancik
*/
@Component
public class GuiProfileCompiler {
private static final Trace LOGGER = TraceManager.getTrace(GuiProfileCompiler.class);
@Autowired private SecurityHelper securityHelper;
@Autowired private SystemObjectCache systemObjectCache;
@Autowired private RelationRegistry relationRegistry;
@Autowired private PrismContext prismContext;
@Autowired private CollectionProcessor collectionProcessor;
@Autowired @Qualifier("modelObjectResolver") private ObjectResolver objectResolver;
@Autowired private AssignmentCollector assignmentCollector;
@Autowired
@Qualifier("cacheRepositoryService")
private RepositoryService repositoryService;
public void compileUserProfile(GuiProfiledPrincipal principal, PrismObject<SystemConfigurationType> systemConfiguration, AuthorizationTransformer authorizationTransformer, Task task, OperationResult result)
throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException,
ExpressionEvaluationException, ObjectNotFoundException {
principal.setApplicableSecurityPolicy(securityHelper.locateSecurityPolicy(principal.getFocus().asPrismObject(), systemConfiguration, task, result));
List<AdminGuiConfigurationType> adminGuiConfigurations = new ArrayList<>();
collect(adminGuiConfigurations, principal, authorizationTransformer, task, result);
CompiledGuiProfile compiledGuiProfile = compileUserProfile(adminGuiConfigurations, systemConfiguration, task, result);
principal.setCompiledGuiProfile(compiledGuiProfile);
}
private void collect(List<AdminGuiConfigurationType> adminGuiConfigurations, GuiProfiledPrincipal principal, AuthorizationTransformer authorizationTransformer, Task task, OperationResult result) throws SchemaException {
FocusType focusType = principal.getFocus();
Collection<? extends EvaluatedAssignment<? extends FocusType>> evaluatedAssignments = assignmentCollector.collect(focusType.asPrismObject(), true, task, result);
Collection<Authorization> authorizations = principal.getAuthorities();
for (EvaluatedAssignment<? extends FocusType> assignment : evaluatedAssignments) {
if (assignment.isValid()) {
addAuthorizations(authorizations, assignment.getAuthorizations(), authorizationTransformer);
adminGuiConfigurations.addAll(assignment.getAdminGuiConfigurations());
}
for (EvaluatedAssignmentTarget target : assignment.getRoles().getNonNegativeValues()) {
if (target.isValid() && target.getTarget().asObjectable() instanceof UserType
&& DeputyUtils.isDelegationPath(target.getAssignmentPath(), relationRegistry)) {
List<OtherPrivilegesLimitationType> limitations = DeputyUtils.extractLimitations(target.getAssignmentPath());
principal.addDelegatorWithOtherPrivilegesLimitations(new DelegatorWithOtherPrivilegesLimitations(
(UserType) target.getTarget().asObjectable(), limitations));
}
}
}
if (focusType instanceof UserType && ((UserType)focusType).getAdminGuiConfiguration() != null) {
// config from the user object should go last (to be applied as the last one)
adminGuiConfigurations.add(((UserType)focusType).getAdminGuiConfiguration());
}
}
private void addAuthorizations(Collection<Authorization> targetCollection, Collection<Authorization> sourceCollection, AuthorizationTransformer authorizationTransformer) {
if (sourceCollection == null) {
return;
}
for (Authorization autz: sourceCollection) {
if (authorizationTransformer == null) {
targetCollection.add(autz);
} else {
Collection<Authorization> transformedAutzs = authorizationTransformer.transform(autz);
if (transformedAutzs != null) {
targetCollection.addAll(transformedAutzs);
}
}
}
}
public CompiledGuiProfile compileUserProfile(@NotNull List<AdminGuiConfigurationType> adminGuiConfigurations,
PrismObject<SystemConfigurationType> systemConfiguration, Task task, OperationResult result)
throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException,
ExpressionEvaluationException, ObjectNotFoundException {
AdminGuiConfigurationType globalAdminGuiConfig = null;
if (systemConfiguration != null) {
globalAdminGuiConfig = systemConfiguration.asObjectable().getAdminGuiConfiguration();
}
// if there's no admin config at all, return null (to preserve original behavior)
if (adminGuiConfigurations.isEmpty() && globalAdminGuiConfig == null) {
return null;
}
CompiledGuiProfile composite = new CompiledGuiProfile();
if (globalAdminGuiConfig != null) {
applyAdminGuiConfiguration(composite, globalAdminGuiConfig, task, result);
}
for (AdminGuiConfigurationType adminGuiConfiguration: adminGuiConfigurations) {
applyAdminGuiConfiguration(composite, adminGuiConfiguration, task, result);
}
return composite;
}
private void applyAdminGuiConfiguration(CompiledGuiProfile composite, AdminGuiConfigurationType adminGuiConfiguration, Task task, OperationResult result)
throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException,
ExpressionEvaluationException, ObjectNotFoundException {
if (adminGuiConfiguration == null) {
return;
}
adminGuiConfiguration.getAdditionalMenuLink().forEach(additionalMenuLink -> composite.getAdditionalMenuLink().add(additionalMenuLink.clone()));
adminGuiConfiguration.getUserDashboardLink().forEach(userDashboardLink -> composite.getUserDashboardLink().add(userDashboardLink.clone()));
if (adminGuiConfiguration.getDefaultTimezone() != null) {
composite.setDefaultTimezone(adminGuiConfiguration.getDefaultTimezone());
}
if (adminGuiConfiguration.getPreferredDataLanguage() != null) {
composite.setPreferredDataLanguage(adminGuiConfiguration.getPreferredDataLanguage());
}
if (adminGuiConfiguration.isEnableExperimentalFeatures() != null) {
composite.setEnableExperimentalFeatures(adminGuiConfiguration.isEnableExperimentalFeatures());
}
if (adminGuiConfiguration.getDefaultExportSettings() != null) {
composite.setDefaultExportSettings(adminGuiConfiguration.getDefaultExportSettings().clone());
}
if (adminGuiConfiguration.getDisplayFormats() != null){
composite.setDisplayFormats(adminGuiConfiguration.getDisplayFormats().clone());
}
applyViews(composite, adminGuiConfiguration.getObjectLists(), task, result); // Compatibility, deprecated
applyViews(composite, adminGuiConfiguration.getObjectCollectionViews(), task, result);
if (adminGuiConfiguration.getObjectForms() != null) {
if (composite.getObjectForms() == null) {
composite.setObjectForms(adminGuiConfiguration.getObjectForms().clone());
} else {
for (ObjectFormType objectForm: adminGuiConfiguration.getObjectForms().getObjectForm()) {
joinForms(composite.getObjectForms(), objectForm.clone());
}
}
}
if (adminGuiConfiguration.getObjectDetails() != null) {
if (composite.getObjectDetails() == null) {
composite.setObjectDetails(adminGuiConfiguration.getObjectDetails().clone());
} else {
for (GuiObjectDetailsPageType objectDetails: adminGuiConfiguration.getObjectDetails().getObjectDetailsPage()) {
joinObjectDetails(composite.getObjectDetails(), objectDetails);
}
}
}
if (adminGuiConfiguration.getUserDashboard() != null) {
if (composite.getUserDashboard() == null) {
composite.setUserDashboard(adminGuiConfiguration.getUserDashboard().clone());
} else {
for (DashboardWidgetType widget: adminGuiConfiguration.getUserDashboard().getWidget()) {
mergeWidget(composite, widget);
}
}
}
for (UserInterfaceFeatureType feature: adminGuiConfiguration.getFeature()) {
mergeFeature(composite, feature.clone());
}
if (adminGuiConfiguration.getFeedbackMessagesHook() != null) {
composite.setFeedbackMessagesHook(adminGuiConfiguration.getFeedbackMessagesHook().clone());
}
if (adminGuiConfiguration.getRoleManagement() != null &&
adminGuiConfiguration.getRoleManagement().getAssignmentApprovalRequestLimit() != null) {
if (composite.getRoleManagement() != null && composite.getRoleManagement().getAssignmentApprovalRequestLimit() != null) {
// the greater value wins (so it is possible to give an exception to selected users)
Integer newValue = Math.max(
adminGuiConfiguration.getRoleManagement().getAssignmentApprovalRequestLimit(),
composite.getRoleManagement().getAssignmentApprovalRequestLimit());
composite.getRoleManagement().setAssignmentApprovalRequestLimit(newValue);
} else {
if (composite.getRoleManagement() == null) {
composite.setRoleManagement(new AdminGuiConfigurationRoleManagementType());
}
composite.getRoleManagement().setAssignmentApprovalRequestLimit(
adminGuiConfiguration.getRoleManagement().getAssignmentApprovalRequestLimit());
}
}
}
private void applyViews(CompiledGuiProfile composite, GuiObjectListViewsType viewsType, Task task, OperationResult result)
throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException,
ExpressionEvaluationException, ObjectNotFoundException {
if (viewsType == null) {
return;
}
if (viewsType.getDefault() != null) {
if (composite.getDefaultObjectCollectionView() == null) {
composite.setDefaultObjectCollectionView(new CompiledObjectCollectionView());
}
compileView(composite.getDefaultObjectCollectionView(), viewsType.getDefault(), task, result);
}
for (GuiObjectListViewType objectCollectionView : viewsType.getObjectList()) { // Compatibility, legacy
applyView(composite, objectCollectionView, task, result);
}
for (GuiObjectListViewType objectCollectionView : viewsType.getObjectCollectionView()) {
applyView(composite, objectCollectionView, task, result);
}
}
private void applyView(CompiledGuiProfile composite, GuiObjectListViewType objectListViewType, Task task, OperationResult result) {
try {
CompiledObjectCollectionView existingView = findOrCreateMatchingView(composite, objectListViewType);
compileView(existingView, objectListViewType, task, result);
} catch (Throwable e) {
// Do not let any error stop processing here. This code is used during user login. An error here can stop login procedure. We do not
// want that. E.g. wrong adminGuiConfig may prohibit login on administrator, therefore ruining any chance of fixing the situation.
// This is also handled somewhere up the call stack. But we want to handle it also here. Otherwise an error in one collection would
// mean that entire configuration processing will be stopped. We do not want that. We want to skip processing of just that one wrong view.
LOGGER.error("Error compiling user profile, view '{}': {}", determineViewIdentifier(objectListViewType), e.getMessage(), e);
}
}
private CompiledObjectCollectionView findOrCreateMatchingView(CompiledGuiProfile composite, GuiObjectListViewType objectListViewType) {
QName objectType = objectListViewType.getType();
String viewIdentifier = determineViewIdentifier(objectListViewType);
CompiledObjectCollectionView existingView = composite.findObjectCollectionView(objectType, viewIdentifier);
if (existingView == null) {
existingView = new CompiledObjectCollectionView(objectType, viewIdentifier);
composite.getObjectCollectionViews().add(existingView);
}
return existingView;
}
private String determineViewIdentifier(GuiObjectListViewType objectListViewType) {
String viewIdentifier = objectListViewType.getIdentifier();
if (viewIdentifier != null) {
return viewIdentifier;
}
String viewName = objectListViewType.getName();
if (viewName != null) {
// legacy, deprecated
return viewName;
}
CollectionRefSpecificationType collection = objectListViewType.getCollection();
if (collection == null) {
return objectListViewType.getType() != null ? objectListViewType.getType().getLocalPart() : null;
}
ObjectReferenceType collectionRef = collection.getCollectionRef();
if (collectionRef == null) {
return objectListViewType.getType() != null ? objectListViewType.getType().getLocalPart() : null;
}
return collectionRef.getOid();
}
public void compileView(CompiledObjectCollectionView existingView, GuiObjectListViewType objectListViewType, Task task, OperationResult result)
throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException,
ExpressionEvaluationException, ObjectNotFoundException {
// compileActions(existingView, objectListViewType);
// compileAdditionalPanels(existingView, objectListViewType);
// compileColumns(existingView, objectListViewType);
// compileDisplay(existingView, objectListViewType);
// compileDistinct(existingView, objectListViewType);
// compileSorting(existingView, objectListViewType);
// compileCounting(existingView, objectListViewType);
// compileDisplayOrder(existingView, objectListViewType);
// compileSearchBox(existingView, objectListViewType);
// compileRefreshInterval(existingView, objectListViewType);
collectionProcessor.compileView(existingView, objectListViewType);
compileCollection(existingView, objectListViewType, task, result);
}
private void compileCollection(CompiledObjectCollectionView existingView, GuiObjectListViewType objectListViewType, Task task, OperationResult result)
throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException,
ExpressionEvaluationException, ObjectNotFoundException {
CollectionRefSpecificationType collectionSpec = objectListViewType.getCollection();
if (collectionSpec == null) {
ObjectReferenceType collectionRef = objectListViewType.getCollectionRef();
if (collectionRef == null) {
return;
}
// Legacy, deprecated
collectionSpec = new CollectionRefSpecificationType();
collectionSpec.setCollectionRef(collectionRef.clone());
}
if (existingView.getCollection() != null) {
LOGGER.debug("Redefining collection in view {}", existingView.getViewIdentifier());
}
existingView.setCollection(collectionSpec);
compileCollection(existingView, collectionSpec, task, result);
}
private void compileCollection(CompiledObjectCollectionView existingView, CollectionRefSpecificationType collectionSpec, Task task, OperationResult result)
throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException,
ExpressionEvaluationException, ObjectNotFoundException {
QName targetObjectType = existingView.getObjectType();
Class<? extends ObjectType> targetTypeClass = ObjectType.class;
if (targetObjectType != null) {
targetTypeClass = ObjectTypes.getObjectTypeFromTypeQName(targetObjectType).getClassDefinition();
}
collectionProcessor.compileObjectCollectionView(existingView, collectionSpec, targetTypeClass, task, result);
}
private void joinForms(ObjectFormsType objectForms, ObjectFormType newForm) {
objectForms.getObjectForm().removeIf(currentForm -> isTheSameObjectForm(currentForm, newForm));
objectForms.getObjectForm().add(newForm.clone().id(null));
}
private void joinObjectDetails(GuiObjectDetailsSetType objectDetailsSet, GuiObjectDetailsPageType newObjectDetails) {
objectDetailsSet.getObjectDetailsPage().removeIf(currentDetails -> isTheSameObjectType(currentDetails, newObjectDetails));
objectDetailsSet.getObjectDetailsPage().add(newObjectDetails.clone());
}
private boolean isTheSameObjectType(AbstractObjectTypeConfigurationType oldConf, AbstractObjectTypeConfigurationType newConf) {
return QNameUtil.match(oldConf.getType(), newConf.getType());
}
private boolean isTheSameObjectForm(ObjectFormType oldForm, ObjectFormType newForm){
if (!isTheSameObjectType(oldForm,newForm)) {
return false;
}
if (oldForm.isIncludeDefaultForms() != null &&
newForm.isIncludeDefaultForms() != null){
return true;
}
if (oldForm.getFormSpecification() == null && newForm.getFormSpecification() == null) {
String oldFormPanelUri = oldForm.getFormSpecification().getPanelUri();
String newFormPanelUri = newForm.getFormSpecification().getPanelUri();
if (oldFormPanelUri != null && oldFormPanelUri.equals(newFormPanelUri)) {
return true;
}
String oldFormPanelClass = oldForm.getFormSpecification().getPanelClass();
String newFormPanelClass = newForm.getFormSpecification().getPanelClass();
if (oldFormPanelClass != null && oldFormPanelClass.equals(newFormPanelClass)) {
return true;
}
String oldFormRefOid = oldForm.getFormSpecification().getFormRef() == null ?
null : oldForm.getFormSpecification().getFormRef().getOid();
String newFormRefOid = newForm.getFormSpecification().getFormRef() == null ?
null : newForm.getFormSpecification().getFormRef().getOid();
if (oldFormRefOid != null && oldFormRefOid.equals(newFormRefOid)) {
return true;
}
}
return false;
}
private void mergeWidget(CompiledGuiProfile composite, DashboardWidgetType newWidget) {
String newWidgetIdentifier = newWidget.getIdentifier();
DashboardWidgetType compositeWidget = composite.findUserDashboardWidget(newWidgetIdentifier);
if (compositeWidget == null) {
composite.getUserDashboard().getWidget().add(newWidget.clone());
} else {
mergeWidget(compositeWidget, newWidget);
}
}
private void mergeWidget(DashboardWidgetType compositeWidget, DashboardWidgetType newWidget) {
mergeFeature(compositeWidget, newWidget, UserInterfaceElementVisibilityType.VACANT);
// merge other widget properties (in the future)
}
private void mergeFeature(CompiledGuiProfile composite, UserInterfaceFeatureType newFeature) {
String newIdentifier = newFeature.getIdentifier();
UserInterfaceFeatureType compositeFeature = composite.findFeature(newIdentifier);
if (compositeFeature == null) {
composite.getFeatures().add(newFeature.clone());
} else {
mergeFeature(compositeFeature, newFeature, UserInterfaceElementVisibilityType.AUTOMATIC);
}
}
private <T extends UserInterfaceFeatureType> void mergeFeature(T compositeFeature, T newFeature, UserInterfaceElementVisibilityType defaultVisibility) {
UserInterfaceElementVisibilityType newCompositeVisibility = mergeVisibility(compositeFeature.getVisibility(), newFeature.getVisibility(), defaultVisibility);
compositeFeature.setVisibility(newCompositeVisibility);
}
private UserInterfaceElementVisibilityType mergeVisibility(
UserInterfaceElementVisibilityType compositeVisibility, UserInterfaceElementVisibilityType newVisibility, UserInterfaceElementVisibilityType defaultVisibility) {
if (compositeVisibility == null) {
compositeVisibility = defaultVisibility;
}
if (newVisibility == null) {
newVisibility = defaultVisibility;
}
if (compositeVisibility == UserInterfaceElementVisibilityType.HIDDEN || newVisibility == UserInterfaceElementVisibilityType.HIDDEN) {
return UserInterfaceElementVisibilityType.HIDDEN;
}
if (compositeVisibility == UserInterfaceElementVisibilityType.VISIBLE || newVisibility == UserInterfaceElementVisibilityType.VISIBLE) {
return UserInterfaceElementVisibilityType.VISIBLE;
}
if (compositeVisibility == UserInterfaceElementVisibilityType.AUTOMATIC || newVisibility == UserInterfaceElementVisibilityType.AUTOMATIC) {
return UserInterfaceElementVisibilityType.AUTOMATIC;
}
return UserInterfaceElementVisibilityType.VACANT;
}
public CompiledGuiProfile getGlobalCompiledGuiProfile(Task task, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException {
PrismObject<SystemConfigurationType> systemConfiguration = systemObjectCache.getSystemConfiguration(parentResult);
if (systemConfiguration == null) {
return null;
}
List<AdminGuiConfigurationType> adminGuiConfigurations = new ArrayList<>();
CompiledGuiProfile compiledGuiProfile = compileUserProfile(adminGuiConfigurations, systemConfiguration, task, parentResult);
// TODO: cache compiled profile
return compiledGuiProfile;
}
}