Community
Participate
Working Groups
We need developer-friendly entry points for to call our functionality, it should be as simple as: 1) `RestrictionVerdict verdict = new Passage().ask(identifier)` - to understand the restriction verdict without actual feature usage, a kind of "what-if". This is synchronous `query` method, we should think about supporting `bulk` queries for multiple feature identifiers. 2) `new Passage().use(identifier)` - to start using the feature with all the AccessManager cycle applied. This is synchronous `command` method that can potentially pause or even block the execution of the current scenario according to the RestrictionVerdict. We should also think about supporting `bulk` commands for multiple feature identifiers and additional hints like "prefer UI". These new methods should be carefully evaluated to replace all the other approaches we supporting at the moment like `org.eclipse.passage.lic.jface.actions.LicensedAction` and `org.eclipse.passage.lic.internal.e4.ui.restrictions.WorkbenchRestrictionExecutor`.
PR: https://github.com/eclipse-passage/passage/pull/171