Skip to content

Commit

Permalink
feat(core)!: auto-approve error
Browse files Browse the repository at this point in the history
Added error that caused automatic approval failure of the application.
  • Loading branch information
sarkapalkovicova committed Feb 8, 2023
1 parent 15335a6 commit b9508a4
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ static public Application createNew(Vo vo, Group group, ApplicationType type, St
app.setExtSourceLoa(extSourceLoa);
app.setObjectType("Application");
app.setUser(user);
app.setAutoApproveError(null);
return app;
}

Expand Down Expand Up @@ -202,6 +203,24 @@ public final native void setFederationInfo(String fedInfo) /*-{
this.fedInfo = fedInfo;
}-*/;

/**
* Get error that occurred during the automatic approval of the application.
*
* @return error
*/
public final String getAutoApproveError() {
return JsUtils.getNativePropertyString(this, "autoApproveError");
}

/**
* Set error that occurred during the automatic approval of the application.
*
* @param autoApproveError error
*/
public final native void setAutoApproveError(String autoApproveError) /*-{
this.autoApproveError = autoApproveError;
}-*/;

/**
* Get name of used external authz system.
*
Expand Down

0 comments on commit b9508a4

Please sign in to comment.