-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/ninja-audit' into support-4.4
- Loading branch information
Showing
32 changed files
with
328 additions
and
174 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
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
46 changes: 46 additions & 0 deletions
46
.../src/main/java/com/evolveum/midpoint/ninja/action/audit/BaseAuditImportExportOptions.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,46 @@ | ||
/* | ||
* Copyright (C) 2010-2021 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.ninja.action.audit; | ||
|
||
import com.beust.jcommander.Parameter; | ||
|
||
import com.evolveum.midpoint.ninja.util.FileReference; | ||
import com.evolveum.midpoint.ninja.util.FileReferenceConverter; | ||
|
||
public class BaseAuditImportExportOptions { | ||
|
||
public static final String P_FILTER = "-f"; | ||
public static final String P_FILTER_LONG = "--filter"; | ||
|
||
public static final String P_ZIP = "-z"; | ||
public static final String P_ZIP_LONG = "--zip"; | ||
|
||
public static final String P_MULTI_THREAD = "-l"; | ||
public static final String P_MULTI_THREAD_LONG = "--multi-thread"; | ||
|
||
@Parameter(names = { P_FILTER, P_FILTER_LONG }, descriptionKey = "base.filter", | ||
converter = FileReferenceConverter.class, validateWith = FileReferenceConverter.class) | ||
private FileReference filter; | ||
|
||
@Parameter(names = { P_ZIP, P_ZIP_LONG }, descriptionKey = "baseImportExport.zip") | ||
private boolean zip; | ||
|
||
@Parameter(names = { P_MULTI_THREAD, P_MULTI_THREAD_LONG }, descriptionKey = "baseImportExport.multiThread") | ||
private int multiThread = 1; | ||
|
||
public FileReference getFilter() { | ||
return filter; | ||
} | ||
|
||
public boolean isZip() { | ||
return zip; | ||
} | ||
|
||
public int getMultiThread() { | ||
return multiThread; | ||
} | ||
} |
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
Oops, something went wrong.