Interface ExperimentalActivitiesAuthorizationManager


  • public interface ExperimentalActivitiesAuthorizationManager
    Handles authorization management for any activity marked as experimental
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean authorizeActivity​(Object activity)
      Determines if the experimental framework enables rendering a given activity
      boolean authorizeActivityClass​(Class<?> activityClass)
      Determines if the experimental framework enables rendering a given Class
      boolean authorizeActivityId​(String activityId)
      Determines if the experimental framework enables rendering a the activity identified by the activityId param.
      void init()
      Initializes the manager
      void securePart​(org.uberfire.workbench.model.PartDefinition part, org.uberfire.workbench.model.PanelDefinition panel)
      Checks if the PartDefinition place points to an experimental activity and replaces it to a ConditionalPlaceRequest
    • 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 the PartDefinition place points to an experimental activity and replaces it to a ConditionalPlaceRequest
        Parameters:
        part - The PartDefinition to check
        panel - The PanelDefinition that owns the plart