Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
addind of mapper for report export configuration type
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
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