Interface ExperimentalActivitiesAuthorizationManager
-
public interface ExperimentalActivitiesAuthorizationManagerHandles authorization management for any activity marked as experimental
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanauthorizeActivity(Object activity)Determines if the experimental framework enables rendering a given activitybooleanauthorizeActivityClass(Class<?> activityClass)Determines if the experimental framework enables rendering a given ClassbooleanauthorizeActivityId(String activityId)Determines if the experimental framework enables rendering a the activity identified by the activityId param.voidinit()Initializes the managervoidsecurePart(org.uberfire.workbench.model.PartDefinition part, org.uberfire.workbench.model.PanelDefinition panel)Checks if thePartDefinitionplace points to an experimental activity and replaces it to aConditionalPlaceRequest
-
-
-
Method Detail
-
init
void init()
Initializes the manager
-
authorizeActivity
boolean authorizeActivity(Object activity)
Determines if the experimental framework enables rendering a given activity- Parameters:
activity- The activity to check- Returns:
- true or false depending on the settings.
-
authorizeActivityClass
boolean authorizeActivityClass(Class<?> activityClass)
Determines if the experimental framework enables rendering a given Class- Parameters:
activityClass- The Class to check- Returns:
- true or false depending on the settings.
-
authorizeActivityId
boolean authorizeActivityId(String activityId)
Determines if the experimental framework enables rendering a the activity identified by the activityId param.- Parameters:
activityId- the activity identifier- Returns:
- true or false depending on the settings.
-
securePart
void securePart(org.uberfire.workbench.model.PartDefinition part, org.uberfire.workbench.model.PanelDefinition panel)Checks if thePartDefinitionplace points to an experimental activity and replaces it to aConditionalPlaceRequest- Parameters:
part- ThePartDefinitionto checkpanel- ThePanelDefinitionthat owns the plart
-
-