Skip to content

Commit

Permalink
Add method to remove DisallowedNextLinks attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
marecabo committed Feb 13, 2024
1 parent f403824 commit 2d7c09d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1018,4 +1018,8 @@ public static boolean addDisallowedNextLinks(Link link, String mode, List<Id<Lin
DisallowedNextLinks disallowedNextLinks = getOrCreateDisallowedNextLinks(link);
return disallowedNextLinks.addDisallowedLinkSequence(mode, linkIds);
}

public static void removeDisallowedNextLinks(Link link) {
link.getAttributes().removeAttribute(DISALLOWED_NEXT_LINKS_ATTRIBUTE);
}
}

0 comments on commit 2d7c09d

Please sign in to comment.