Skip to content

Commit

Permalink
Merge pull request #39 from oxctl/clear_sis_stickiness
Browse files Browse the repository at this point in the history
SIS Import Options: Support clear_sis_stickiness option.
  • Loading branch information
nicholaswilson100 committed Oct 4, 2021
2 parents d8708ce + 7cad24c commit ae70ba2
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 ae70ba2

Please sign in to comment.