Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into feature/service-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Feb 14, 2020
2 parents 3a3d933 + 8994a8e commit ea3a95a
Show file tree
Hide file tree
Showing 809 changed files with 49,238 additions and 60,329 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -25,3 +25,4 @@ testing/schrodingertest/build
test-output/

_mess
.checkstyle
4 changes: 2 additions & 2 deletions README
Expand Up @@ -36,11 +36,11 @@ The most important features of midPoint are:

For more information please go to:

http://midpoint.evolveum.com/
https://midpoint.evolveum.com/

For bugtracking system please go to:

http://jira.evolveum.com/
https://jira.evolveum.com/

MidPoint source code is maintained on github:

Expand Down
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -11,11 +11,11 @@ The most important features of midPoint are:
- Organizational structure management
- Credential Management
- Request approval
- Entitlement Management
- Entitlement Management

Read more about these features at https://evolveum.com/midpoint/about-midpoint/

Other features:
Other features:

- User provisioning and deprovisioning
- Administration GUI
Expand All @@ -38,19 +38,19 @@ Other features:
- High availability (HA) support

For more information about midPoint identity manager please go to:
http://midpoint.evolveum.com/
https://midpoint.evolveum.com/

For bugtracking system please go to:
http://jira.evolveum.com/
https://jira.evolveum.com/

MidPoint source code is maintained on github:
https://github.com/Evolveum/midpoint
https://github.com/Evolveum/midpoint

Latest source code can be obtained from our Git repository using one of the
Latest source code can be obtained from our Git repository using one of the
following repository locations:
https://github.com/Evolveum/midpoint.git

git@github.com:Evolveum/midpoint.git

This project is dual-licensed under Apache License 2.0
This project is dual-licensed under Apache License 2.0
and European Union Public License. See LICENSE file for details.
4 changes: 2 additions & 2 deletions build-tools/pom.xml
Expand Up @@ -49,12 +49,12 @@
<repository>
<id>evolveum</id>
<name>Evolveum Public Releases</name>
<url>http://nexus.evolveum.com/nexus/content/groups/public</url>
<url>https://nexus.evolveum.com/nexus/content/groups/public</url>
</repository>
<repository>
<id>evolveum-snapshots</id>
<name>Evolveum Snapshots</name>
<url>http://nexus.evolveum.com/nexus/content/repositories/snapshots/</url>
<url>https://nexus.evolveum.com/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>

Expand Down
12 changes: 0 additions & 12 deletions dist/javadoc/pom.xml
Expand Up @@ -80,18 +80,6 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
Expand Down
34 changes: 15 additions & 19 deletions dist/src/main/bin/midpoint.sh
Expand Up @@ -100,14 +100,12 @@ fi

# ----- Execute The Requested Command -----------------------------------------

#if [ $have_tty -eq 1 ]; then
# if [ ! -z "$PID_FILE" ]; then
# echo "Using PID_FILE: $PID_FILE"
# fi
#fi

if [ "$1" = "start" ] ; then
if [ ! -z "$PID_FILE" ]; then
if ! which "$_RUNJAVA" &> /dev/null; then
echo "$_RUNJAVA not found (or not executable). Start aborted."
exit 1
fi
if [ ! -z "$PID_FILE" ]; then
if [ -f "$PID_FILE" ]; then
if [ -s "$PID_FILE" ]; then
echo "Existing PID file found during start."
Expand Down Expand Up @@ -137,7 +135,7 @@ if [ "$1" = "start" ] ; then
fi
else
rm -f "$PID_FILE" >/dev/null 2>&1
if [ $? != 0 ]; then
if [ $? != 0 ]; then
if [ ! -w "$PID_FILE" ]; then
echo "Unable to remove or write to empty PID file. Start aborted."
exit 1
Expand All @@ -150,19 +148,17 @@ if [ $? != 0 ]; then
shift
touch "$BOOT_OUT"

echo "Starting midPoint..."
echo "MIDPOINT_HOME=$MIDPOINT_HOME"

cd
eval $_NOHUP "\"$_RUNJAVA\"" -jar $LOGGING_MANAGER $JAVA_OPTS \
$SCRIPT_PATH../lib/midpoint.war \
>> "$BOOT_OUT" 2>&1 "&"
echo "Starting midPoint..."
echo "MIDPOINT_HOME=$MIDPOINT_HOME"

cd
eval $_NOHUP "\"$_RUNJAVA\"" -jar $LOGGING_MANAGER $JAVA_OPTS \
$SCRIPT_PATH../lib/midpoint.war \
>> "$BOOT_OUT" 2>&1 "&"

if [ ! -z "$PID_FILE" ]; then
echo $! > "$PID_FILE"
fi

if [ ! -z "$PID_FILE" ]; then
echo $! > "$PID_FILE"
fi

elif [ "$1" = "stop" ] ; then

Expand Down
14 changes: 3 additions & 11 deletions gui/admin-gui/pom.xml
Expand Up @@ -32,6 +32,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -84,6 +85,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
Expand All @@ -96,6 +98,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -767,17 +770,6 @@

<!-- end connectors -->

<!-- logging bridges to slf4j -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<scope>runtime</scope>
</dependency>
<!-- Jasper reports -->
<dependency>
<groupId>net.sf.jasperreports</groupId>
Expand Down
@@ -1,17 +1,8 @@
<!--
~ Copyright (c) 2010-2018 Evolveum
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
-->

<wicket:panel xmlns:wicket="http://wicket.apache.org">
Expand Down
@@ -1,17 +1,8 @@
<!--
~ Copyright (c) 2010-2018 Evolveum
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
-->

<wicket:panel xmlns:wicket="http://wicket.apache.org">
Expand Down
@@ -0,0 +1,92 @@
/*
* Copyright (c) 2010-2018 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.gui.api.component;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import javax.xml.namespace.QName;

import com.evolveum.midpoint.schema.constants.ObjectTypes;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentHolderType;

import org.apache.commons.collections4.CollectionUtils;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.extensions.markup.html.tabs.ITab;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.model.IModel;

import com.evolveum.midpoint.gui.api.component.tabs.CountablePanelTab;
import com.evolveum.midpoint.web.component.util.SelectableBean;
import com.evolveum.midpoint.web.component.util.VisibleBehaviour;
import com.evolveum.midpoint.web.page.admin.roles.AvailableRelationDto;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType;

/**
* @author honchar
*/
public abstract class ChooseArchetypeMemberPopup<O extends AssignmentHolderType> extends ChooseMemberPopup<O, ArchetypeType> {
private static final long serialVersionUID = 1L;

public ChooseArchetypeMemberPopup(String id, AvailableRelationDto availableRelationList){
super(id, availableRelationList);
}

@Override
protected List<ITab> createAssignmentTabs() {
List<ITab> tabs = new ArrayList<>();//super.createAssignmentTabs();
tabs.add(new CountablePanelTab(getPageBase().createStringResource("chooseMemberForOrgPopup.otherTypesLabel"),
new VisibleBehaviour(() -> getAvailableObjectTypes() != null)) {

private static final long serialVersionUID = 1L;

@Override
public WebMarkupContainer createPanel(String panelId) {
return new MultiTypesMemberPopupTabPanel<O>(panelId, availableRelationList, getArchetypeRefList()){
private static final long serialVersionUID = 1L;

@Override
protected void onSelectionPerformed(AjaxRequestTarget target, IModel<SelectableBean<O>> rowModel){
tabLabelPanelUpdate(target);
}

@Override
protected ArchetypeType getAbstractRoleTypeObject(){
return ChooseArchetypeMemberPopup.this.getAssignmentTargetRefObject();
}

@Override
protected List<ObjectTypes> getSupportedTypesList() {
return getAvailableObjectTypes().stream().map(type -> ObjectTypes.getObjectTypeFromTypeQName(type)).collect(Collectors.toList());
}

@Override
protected ObjectTypes getObjectType() {
if (CollectionUtils.isNotEmpty(getSupportedTypesList())) {
return getSupportedTypesList().get(0);
}
return super.getObjectType();
}
};
}

@Override
public String getCount() {
return Integer.toString(getTabPanelSelectedCount(getPanel()));
}
});
return tabs;
}

@Override
protected QName getDefaultTargetType() {
return ArchetypeType.COMPLEX_TYPE;
}

}
@@ -1,17 +1,8 @@
<!--
~ Copyright (c) 2010-2018 Evolveum
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
-->

<wicket:panel xmlns:wicket="http://wicket.apache.org">
Expand Down

0 comments on commit ea3a95a

Please sign in to comment.