Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
9 changed files
with
91 additions
and
16 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
29 changes: 29 additions & 0 deletions
29
...n/java/com/evolveum/midpoint/repo/sql/helpers/mapper/ReportExportConfigurationMapper.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,29 @@ | ||
/* | ||
* Copyright (c) 2010-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.repo.sql.helpers.mapper; | ||
|
||
import com.evolveum.midpoint.repo.sql.data.common.enums.RExportType; | ||
import com.evolveum.midpoint.repo.sql.helpers.modify.MapperContext; | ||
import com.evolveum.midpoint.repo.sql.util.RUtil; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ExportConfigurationType; | ||
|
||
import javax.xml.namespace.QName; | ||
|
||
/** | ||
* @author lskublik | ||
*/ | ||
public class ReportExportConfigurationMapper implements Mapper<ExportConfigurationType, RExportType> { | ||
|
||
@Override | ||
public RExportType map(ExportConfigurationType input, MapperContext context) { | ||
if (input.getType() == null) { | ||
return null; | ||
} | ||
return RExportType.valueOf(input.getType().name()); | ||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
...ger/src/main/java/com/evolveum/midpoint/schrodinger/component/common/SearchItemField.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,24 @@ | ||
package com.evolveum.midpoint.schrodinger.component.common; | ||
|
||
import com.codeborne.selenide.Condition; | ||
import com.codeborne.selenide.SelenideElement; | ||
|
||
import com.evolveum.midpoint.schrodinger.MidPoint; | ||
import com.evolveum.midpoint.schrodinger.component.Component; | ||
import com.evolveum.midpoint.schrodinger.util.Schrodinger; | ||
|
||
public class SearchItemField<T> extends Component<T> { | ||
|
||
public SearchItemField(T parent, SelenideElement parentElement) { | ||
super(parent, parentElement); | ||
} | ||
|
||
public T inputValue(String input) { | ||
SelenideElement inputField = getParentElement().parent().$x(".//input[@" + Schrodinger.DATA_S_ID + "='input']") | ||
.waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S); | ||
if(!input.equals(inputField.getValue())) { | ||
inputField.setValue(input); | ||
} | ||
return getParent(); | ||
} | ||
} |
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