Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Evolveum/midpoint
- Loading branch information
Showing
13 changed files
with
824 additions
and
726 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
45 changes: 45 additions & 0 deletions
45
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/self/PageSelfProfile.java
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,45 @@ | ||
/* | ||
* Copyright (c) 2010-2015 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.web.page.self; | ||
|
||
import com.evolveum.midpoint.gui.api.page.PageBase; | ||
|
||
import com.evolveum.midpoint.gui.api.util.WebComponentUtil; | ||
|
||
import org.apache.wicket.model.IModel; | ||
import org.apache.wicket.model.Model; | ||
import org.apache.wicket.request.mapper.parameter.PageParameters; | ||
|
||
import com.evolveum.midpoint.gui.api.GuiStyleConstants; | ||
import com.evolveum.midpoint.gui.api.util.WebModelServiceUtils; | ||
import com.evolveum.midpoint.security.api.AuthorizationConstants; | ||
import com.evolveum.midpoint.util.logging.Trace; | ||
import com.evolveum.midpoint.util.logging.TraceManager; | ||
import com.evolveum.midpoint.web.application.AuthorizationAction; | ||
import com.evolveum.midpoint.web.application.PageDescriptor; | ||
import com.evolveum.midpoint.web.component.breadcrumbs.Breadcrumb; | ||
import com.evolveum.midpoint.web.page.admin.roles.PageRole; | ||
|
||
@PageDescriptor(url = {"/self/profile"}, action = { | ||
@AuthorizationAction(actionUri = PageSelf.AUTH_SELF_ALL_URI, | ||
label = PageSelf.AUTH_SELF_ALL_LABEL, | ||
description = PageSelf.AUTH_SELF_ALL_DESCRIPTION), | ||
@AuthorizationAction(actionUri = AuthorizationConstants.AUTZ_UI_SELF_PROFILE_URL, | ||
label = "PageRoleSelfProfile.auth.profile.label", | ||
description = "PageRoleSelfProfile.auth.profile.description")}) | ||
public class PageSelfProfile extends PageBase { | ||
|
||
public PageSelfProfile() { | ||
getRequestCycle().setResponsePage(WebComponentUtil.resolveSelfPage()); | ||
} | ||
|
||
public PageSelfProfile(PageParameters parameters) { | ||
super(parameters); | ||
getRequestCycle().setResponsePage(WebComponentUtil.resolveSelfPage()); | ||
} | ||
|
||
} |
1,416 changes: 708 additions & 708 deletions
1,416
gui/admin-gui/src/main/resources/initial-objects/000-system-configuration.xml
Large diffs are not rendered by default.
Oops, something went wrong.
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
34 changes: 34 additions & 0 deletions
34
infra/prism-api/src/main/java/com/evolveum/midpoint/prism/ConfigurableVisitor.java
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,34 @@ | ||
/* | ||
* Copyright (c) 2020 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.prism; | ||
|
||
import com.evolveum.midpoint.util.annotation.Experimental; | ||
|
||
/** | ||
* Visitor with configurable behavior. | ||
*/ | ||
@Experimental | ||
public interface ConfigurableVisitor<T extends Visitable<T>> extends Visitor<T> { | ||
|
||
/** | ||
* Should we visit also objects that are embedded in references? | ||
*/ | ||
boolean shouldVisitEmbeddedObjects(); | ||
|
||
/** | ||
* Helper method. | ||
*/ | ||
static boolean shouldVisitEmbeddedObjects(Visitor<?> visitor) { | ||
//noinspection SimplifiableIfStatement | ||
if (visitor instanceof ConfigurableVisitor) { | ||
return ((ConfigurableVisitor<?>) visitor).shouldVisitEmbeddedObjects(); | ||
} else { | ||
return false; // This is the behavior before 60328c40b2b99c6cf41ab6ce90145fae941d07bd (March 24th, 2020) | ||
} | ||
} | ||
} |
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
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