Skip to content

Commit

Permalink
SIS Import Options: Support clear_sis_stickiness option.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpellicer committed Oct 4, 2021
1 parent d8708ce commit 7cad24c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ public enum ImportType {
private final ImportType importType;

public CreateSisImportOptions(String accountId, String filePath, ImportType importType, String diffingDataSetIdentifier, InputStream is) {
this(accountId, filePath, importType, diffingDataSetIdentifier, is, false);
this(accountId, filePath, importType, diffingDataSetIdentifier, is, false, false);
}

public CreateSisImportOptions(String accountId, String filePath, ImportType importType, String diffingDataSetIdentifier, InputStream is, boolean overrideSisStickiness) {
this(accountId, filePath, importType, diffingDataSetIdentifier, is, overrideSisStickiness, false);
}

public CreateSisImportOptions(String accountId, String filePath, ImportType importType, String diffingDataSetIdentifier, InputStream is, boolean overrideSisStickiness, boolean clearSisStickiness) {
this.accountId = accountId;
this.importType = importType;
this.filePath = filePath;
Expand All @@ -36,6 +40,9 @@ public CreateSisImportOptions(String accountId, String filePath, ImportType impo
if (overrideSisStickiness) {
addSingleItem("override_sis_stickiness", Boolean.toString(overrideSisStickiness));
}
if (clearSisStickiness) {
addSingleItem("clear_sis_stickiness", Boolean.TRUE.toString());
}
}

public String getAccountId() {
Expand Down

0 comments on commit 7cad24c

Please sign in to comment.