Skip to content

Commit

Permalink
Deprecate AccessDecisionManager methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoyanchev committed Oct 29, 2024
1 parent b4b97e3 commit 97780da
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* Flow security integration with Spring Security
*
* @author Scott Andrews
* @author Rossen Stoyanchev
*/
@SuppressWarnings("deprecation")
public class SecurityFlowExecutionListener implements FlowExecutionListener {
Expand All @@ -62,15 +63,21 @@ public void setAuthorizationManagerInitializer(Function<SecurityRule, Authorizat
/**
* Get the access decision manager that makes flow authorization decisions.
* @return the decision manager
* @deprecated in favor of using an {@code AuthorizationManager} by setting
* {@link #setAuthorizationManagerInitializer(Function)} instead
*/
@Deprecated(since = "3.0.1", forRemoval = true)
public AccessDecisionManager getAccessDecisionManager() {
return this.accessDecisionManager;
}

/**
* Set the access decision manager that makes flow authorization decisions.
* @param accessDecisionManager the decision manager to user
* @deprecated in favor of using an {@code AuthorizationManager} by setting
* {@link #setAuthorizationManagerInitializer(Function)} instead
*/
@Deprecated(since = "3.0.1", forRemoval = true)
public void setAccessDecisionManager(AccessDecisionManager accessDecisionManager) {
this.accessDecisionManager = accessDecisionManager;
}
Expand Down

0 comments on commit 97780da

Please sign in to comment.