Package org.uberfire.client.authz
Interface WorkbenchController
-
- All Known Implementing Classes:
DefaultWorkbenchController
public interface WorkbenchControllerAn interface for checking access to workbench resources (perspectives, screens, editors, ...) using a fluent styled API.Example usage:
Button deleteButton; WorkbenchController workbenchController; PerspectiveActivity perspective1; workbenchController.perspective(perspective1).delete() .granted(() -> deleteButton.setEnabled(true)) .denied(() -> deleteButton.setEnabled(false))
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActivityCheckeditor(String editorId)Creates a brand new instance for checking actions overWorkbenchEditorActivityinstances.ActivityCheckeditor(WorkbenchClientEditorActivity editor)Creates a brand new instance for checking actions overWorkbenchClientEditorActivityinstances.ActivityCheckeditor(WorkbenchEditorActivity editor)Creates a brand new instance for checking actions overWorkbenchEditorActivityinstances.ActivityCheckeditors()Creates a brand new instance for checking global perspective actions actions.PerspectiveCheckperspective(String perspectiveId)Creates a brand new instance for checking actions overPerspectiveActivityinstances.PerspectiveCheckperspective(PerspectiveActivity perspective)Creates a brand new instance for checking actions overPerspectiveActivityinstances.PerspectiveCheckperspectives()Creates a brand new instance for checking global perspective actions.ActivityCheckpopupScreen(String popupId)Creates a brand new instance for checking actions overPopupActivityinstances.ActivityCheckpopupScreen(PopupActivity popup)Creates a brand new instance for checking actions overPopupActivityinstances.ActivityCheckpopupScreens()Creates a brand new instance for checking global popup screen actions.ActivityCheckscreen(String screenId)Creates a brand new instance for checking actions overWorkbenchScreenActivityinstances.ActivityCheckscreen(WorkbenchScreenActivity screen)Creates a brand new instance for checking actions overWorkbenchScreenActivityinstances.ActivityCheckscreens()Creates a brand new instance for checking global screen actions.ActivityChecksplashScreen(String splashId)Creates a brand new instance for checking actions overSplashScreenActivityinstances.ActivityChecksplashScreen(SplashScreenActivity splash)Creates a brand new instance for checking actions overSplashScreenActivityinstances.ActivityChecksplashScreens()Creates a brand new instance for checking global splash screen actions.
-
-
-
Method Detail
-
perspectives
PerspectiveCheck perspectives()
Creates a brand new instance for checking global perspective actions.
-
screens
ActivityCheck screens()
Creates a brand new instance for checking global screen actions.
-
popupScreens
ActivityCheck popupScreens()
Creates a brand new instance for checking global popup screen actions.- Returns:
- A handler for dealing with the perspective check API.
-
splashScreens
ActivityCheck splashScreens()
Creates a brand new instance for checking global splash screen actions.- Returns:
- A handler for dealing with the perspective check API.
-
editors
ActivityCheck editors()
Creates a brand new instance for checking global perspective actions actions.- Returns:
- A handler for dealing with the perspective check API.
-
perspective
PerspectiveCheck perspective(PerspectiveActivity perspective)
Creates a brand new instance for checking actions overPerspectiveActivityinstances.
-
screen
ActivityCheck screen(WorkbenchScreenActivity screen)
Creates a brand new instance for checking actions overWorkbenchScreenActivityinstances.
-
popupScreen
ActivityCheck popupScreen(PopupActivity popup)
Creates a brand new instance for checking actions overPopupActivityinstances.
-
editor
ActivityCheck editor(WorkbenchEditorActivity editor)
Creates a brand new instance for checking actions overWorkbenchEditorActivityinstances.
-
editor
ActivityCheck editor(WorkbenchClientEditorActivity editor)
Creates a brand new instance for checking actions overWorkbenchClientEditorActivityinstances.
-
splashScreen
ActivityCheck splashScreen(SplashScreenActivity splash)
Creates a brand new instance for checking actions overSplashScreenActivityinstances.
-
perspective
PerspectiveCheck perspective(String perspectiveId)
Creates a brand new instance for checking actions overPerspectiveActivityinstances.
-
screen
ActivityCheck screen(String screenId)
Creates a brand new instance for checking actions overWorkbenchScreenActivityinstances.
-
popupScreen
ActivityCheck popupScreen(String popupId)
Creates a brand new instance for checking actions overPopupActivityinstances.
-
editor
ActivityCheck editor(String editorId)
Creates a brand new instance for checking actions overWorkbenchEditorActivityinstances.
-
splashScreen
ActivityCheck splashScreen(String splashId)
Creates a brand new instance for checking actions overSplashScreenActivityinstances.
-
-